NyxKrage / moondream3-hf

huggingface.co
Total runs: 247
24-hour runs: 0
7-day runs: 152
30-day runs: 152
Model's Last Updated: November 12 2025
image-text-to-text

Introduction of moondream3-hf

Model Details of moondream3-hf

Moondream 3 HF

Moondream 3 HF is a reimplementation of the Moondream 3 (Preview) model using the standard Hugging Face Transformers architecture conventions.

Overview
  • Multimodal vision-language model with a mixture-of-experts (MoE) text backbone
  • Architecture and weights correspond to Moondream 3 (Preview) (approximately 9B parameters, 2B active)
  • Implemented as standard Transformers components:
    • Moondream3ForConditionalGeneration
    • Moondream3Model , Moondream3TextModel , Moondream3VisionModel
    • Moondream3Processor , Moondream3ImageProcessor , Moondream3Config

The purpose of this repository is to make Moondream 3 interoperable with the Hugging Face ecosystem so it can be used directly with the Transformers API, including generate() , Trainer , and PEFT integrations.

Example usage

Example for running multimodal inference with the moondream3-hf implementation:

import torch
from PIL import Image
from transformers import AutoProcessor, AutoModelForCausalLM

DEVICE="cuda:0"

model = AutoModelForCausalLM.from_pretrained("NyxKrage/moondream3-hf", dtype="bfloat16", device_map=DEVICE, trust_remote_code=True)
processor = AutoProcessor.from_pretrained("NyxKrage/moondream3-hf", use_fast=False, trust_remote_code=True)


image1 = Image.open("image1.jpg")
image2 = Image.open("image2.jpg")
text = [processor.apply_chat_template("", tokenize=False)] * 2
inputs = processor(text=text, images=[
    image1,
    image2,
])
inputs = {k: v.to(DEVICE) for k,v in inputs.items()}

model.eval()

with torch.no_grad():
    outputs = model.generate(
        **inputs,
        use_cache=True,
    )
    outputs = [
        out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs["input_ids"], outputs)
    ]
    for output in outputs:
        print(processor.decode(output))

The chat_template uses Hugging Face’s Jinja format and accepts either a single string or a sequence of messages ( user [, assistant] ).

Training

The model can be trained using trl and supports peft and bitsandbytes out of the box.
Included in the repo is also an implementation which replaces the MoE layers with a grouped_gemm implementation which has been adapted from github:woct0rdho/transformers-qwen3-moe-fused , and can be used by importing Moondream3ForConditionalGeneration from modeling_moondream3_fusedmoe.py instead.

Prompting modes

The chat template supports multiple task types via text prefixes:

Mode Template prefix Example input
Query query: query: What is happening in this image?
Caption caption:[short/normal/long] caption: long
Detect detect: detect: dog
Point point: point: red car

If no prefix is provided, the default mode is query: .

This reimplementation aims to provide interoperability and ease of experimentation within the Hugging Face ecosystem. It is not an official release.

License

The model weights remain under the Business Source License 1.1 with an Additional Use Grant (No Third-Party Service) , identical to the original Moondream 3 Preview license .

This allows research, personal, and most commercial use, but prohibits offering hosted or resold access that competes with M87 Labs’ paid services.

All new implementation code in this repository is released under the Apache 2.0 License .

Credits
  • Original model and research: M87 Labs / Moondream AI
  • Hugging Face–compatible reimplementation: NyxKrage
  • Based on the public Moondream 3 Preview release

Runs of NyxKrage moondream3-hf on huggingface.co

247
Total runs
0
24-hour runs
131
3-day runs
152
7-day runs
152
30-day runs

More Information About moondream3-hf huggingface.co Model

More moondream3-hf license Visit here:

https://choosealicense.com/licenses/other

moondream3-hf huggingface.co

moondream3-hf huggingface.co is an AI model on huggingface.co that provides moondream3-hf's model effect (), which can be used instantly with this NyxKrage moondream3-hf model. huggingface.co supports a free trial of the moondream3-hf model, and also provides paid use of the moondream3-hf. Support call moondream3-hf model through api, including Node.js, Python, http.

moondream3-hf huggingface.co Url

https://huggingface.co/NyxKrage/moondream3-hf

NyxKrage moondream3-hf online free

moondream3-hf huggingface.co is an online trial and call api platform, which integrates moondream3-hf's modeling effects, including api services, and provides a free online trial of moondream3-hf, you can try moondream3-hf online for free by clicking the link below.

NyxKrage moondream3-hf online free url in huggingface.co:

https://huggingface.co/NyxKrage/moondream3-hf

moondream3-hf install

moondream3-hf is an open source model from GitHub that offers a free installation service, and any user can find moondream3-hf on GitHub to install. At the same time, huggingface.co provides the effect of moondream3-hf install, users can directly use moondream3-hf installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

moondream3-hf install url in huggingface.co:

https://huggingface.co/NyxKrage/moondream3-hf

Url of moondream3-hf

moondream3-hf huggingface.co Url

Provider of moondream3-hf huggingface.co

NyxKrage
ORGANIZATIONS

Other API from NyxKrage