Instructions to use moonbox-dev/MiMo-V2.6-Distill-Qwen-9B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-dev/MiMo-V2.6-Distill-Qwen-9B-MLX with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("moonbox-dev/MiMo-V2.6-Distill-Qwen-9B-MLX") config = load_config("moonbox-dev/MiMo-V2.6-Distill-Qwen-9B-MLX") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
MiMo-V2.6 9B MLX
MLX builds of MiMo-V2.6 9B (Xiaomi MiMo's fine-tune of Qwen3.5 9B), made by Moonbox for Apple Silicon
Macs. Each build is a folder and a complete mlx-vlm model: weights,
config.json, the publisher's tokenizer, chat template and processor settings; 8bit/ also holds mtp/, a
multi-token-prediction drafter: the original ships none, so it is Qwen3.5 9B's own MTP layer (the base model's),
which speeds the 8-bit build up with the same greedy output. These files are not an official Xiaomi release.
Files
The last column is how far each build is from the original bf16 model (see "Quality" below for what was measured).
| Precision | File | Size | sha256 | Against the original |
|---|---|---|---|---|
| 8bit | 8bit/chat_template.jinja |
3.9 kB | 59a64ebb4df6 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/config.json |
3.8 kB | 9c703b466703 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/generation_config.json |
0.1 kB | aaed5b26f1ca |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/model-00001-of-00004.safetensors |
2.80 GB | 4b50eeeec718 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/model-00002-of-00004.safetensors |
2.67 GB | 95966addb29d |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/model-00003-of-00004.safetensors |
2.78 GB | f4ec54901e96 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/model-00004-of-00004.safetensors |
2.17 GB | 98d8ba7cdaec |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/model.safetensors.index.json |
0.1 MB | e94262314c82 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/mtp/config.json |
2.2 kB | 38df66a4898d |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/mtp/model.safetensors |
486.6 MB | 17abe1cfaa77 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/preprocessor_config.json |
0.4 kB | 3a159dfec997 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/processor_config.json |
1.0 kB | 45fc17c8dd24 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/tokenizer.json |
20.0 MB | a5cd9732badc |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/tokenizer_config.json |
1.2 kB | 7d884d6eaf81 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/video_preprocessor_config.json |
0.4 kB | 7768af27c1fa |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 8bit | 8bit/vocab.json |
6.7 MB | ce99b4cb2983 |
KL 0.0022 nats (p95 0.0058), top-1 agreement 97.3 %, perplexity 11.88 vs 11.88 |
| 6bit | 6bit/chat_template.jinja |
3.9 kB | 59a64ebb4df6 |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/config.json |
3.8 kB | 0f5a0a38c981 |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/generation_config.json |
0.1 kB | aaed5b26f1ca |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/model-00001-of-00004.safetensors |
2.14 GB | 2060ef662274 |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/model-00002-of-00004.safetensors |
2.04 GB | 850d64b9bade |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/model-00003-of-00004.safetensors |
2.13 GB | 4740e4f3006e |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/model-00004-of-00004.safetensors |
1.87 GB | 62755c770218 |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/model.safetensors.index.json |
0.1 MB | 3716617990a5 |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/preprocessor_config.json |
0.4 kB | 3a159dfec997 |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/processor_config.json |
1.0 kB | 45fc17c8dd24 |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/tokenizer.json |
20.0 MB | a5cd9732badc |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/tokenizer_config.json |
1.2 kB | 7d884d6eaf81 |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/video_preprocessor_config.json |
0.4 kB | 7768af27c1fa |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 6bit | 6bit/vocab.json |
6.7 MB | ce99b4cb2983 |
KL 0.012 nats (p95 0.032), top-1 agreement 94.1 %, perplexity 11.95 vs 11.88 |
| 4bit | 4bit/chat_template.jinja |
3.9 kB | 59a64ebb4df6 |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/config.json |
66.1 kB | 7bbd30a6843b |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/generation_config.json |
0.1 kB | aaed5b26f1ca |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/model-00001-of-00004.safetensors |
1.80 GB | cb478adfde82 |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/model-00002-of-00004.safetensors |
1.67 GB | a325d6ba6c0b |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/model-00003-of-00004.safetensors |
2.11 GB | da2c02281e68 |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/model-00004-of-00004.safetensors |
2.17 GB | 98d8ba7cdaec |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/model.safetensors.index.json |
0.1 MB | c64b8dffd759 |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/preprocessor_config.json |
0.4 kB | 3a159dfec997 |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/processor_config.json |
1.0 kB | 45fc17c8dd24 |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/tokenizer.json |
20.0 MB | a5cd9732badc |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/tokenizer_config.json |
1.2 kB | 7d884d6eaf81 |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/video_preprocessor_config.json |
0.4 kB | 7768af27c1fa |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
| 4bit | 4bit/vocab.json |
6.7 MB | ce99b4cb2983 |
KL 0.035 nats (p95 0.11), top-1 agreement 90.1 %, perplexity 12.06 vs 11.88 (dynamic) |
MiMo-V2.6 9B (Xiaomi MiMo's supervised fine-tune of Qwen3.5 9B for coding, agent tasks, visual coding and
cybersecurity; Qwen3.5 9B's architecture: 24 Gated DeltaNet and 8 gated-attention layers, a 27-layer vision tower)
converted to MLX for Apple Silicon, in three builds. Each folder is a complete mlx-vlm model: weights, config.json,
the publisher's tokenizer, chat template and image processor settings.
These files were converted by Moonbox from
XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B (revision
1f09ddcc). They are not an official Xiaomi release. They keep the vision tower (bfloat16), so pictures work.
How to run
With mlx-vlm 0.7.4 or later:
from huggingface_hub import snapshot_download
from mlx_vlm import load, generate
folder = snapshot_download("moonbox-dev/MiMo-V2.6-Distill-Qwen-9B-MLX", allow_patterns="6bit/*") + "/6bit"
model, processor = load(folder)
msgs = [{"role": "user", "content": "Write a one-line Python lambda that squares a number."}]
prompt = processor.tokenizer.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True,
enable_thinking=False)
print(generate(model, processor, prompt, max_tokens=256, temperature=0.6, top_p=0.95, top_k=20).text)
or python -m mlx_vlm.generate --model <folder> --prompt "..." --image picture.png.
- Chat template. The publisher's MiMo-V2.6 template, not Qwen3.5's: no newlines between turns or inside the
markup, tools declared in a system turn of their own, a tool's result as a
toolturn, every earlier assistant turn'sreasoning_contentrendered again. Thinking is on unlessenable_thinking=False(which closes an empty<think></think>); with it on, the model opens<think>itself. Tool calls are Qwen's XML without newlines (<tool_call><function=name><parameter=city>Lisbon</parameter></function></tool_call>). The publisher's sampling (generation_config): temperature 0.6, top_p 0.95, top_k 20. - One sequence at a time. With mlx-vlm 0.7.4 the full-attention layers give a row of a batch other values than the same row alone; run one prompt at a time.
- Memory and speed on a 24 GB MacBook Air (M5), measured through Moonbox's server (greedy, thinking off, a
4.4K-token prompt and a 768 x 512 picture): the 8-bit peaks at 12.3 GB and decodes
21.6 tokens a second with the drafter in
8bit/mtp/(14.6 without, the same greedy text); the 6-bit peaks at 9.7 GB and decodes 17.9; the 4-bit peaks at 9.3 GB and decodes 19.0. Prefill is about 625-650 tokens a second at 4K tokens for all three. - Speculative decoding. The original checkpoint has no multi-token-prediction (MTP) layer, although its config
names one.
8bit/mtp/is Qwen3.5 9B's own MTP layer (fromQwen/Qwen3.5-9B, revisionc2022362, Apache-2.0), split by mlx-vlm's splitter (load_drafter(folder + "/mtp"), thendraft_model=..., draft_kind="mtp"instream_generate): with the 8-bit it gives the same greedy text, faster. The 6-bit and 4-bit don't carry it: with the 6-bit it is slower than none (12.8 vs 17.9 tokens a second), with the 4-bit it gains little (22.0 vs 19.0 on a short answer, nothing with a picture) for 0.5 GB more memory.
The three builds
MLX affine quantization of the language model's linear layers, embedding and head; the vision tower, norms,
convolutions and the DeltaNet decay parameters are the publisher's (bfloat16, A_log float32).
| Build | Size | Layout | Mean KL (nats) | Top-1 agreement | Perplexity |
|---|---|---|---|---|---|
8bit |
10.9 GB (+0.49 GB mtp/) |
8 bits, group 64 | 0.0022 | 97.3 % | 11.88 |
6bit |
8.2 GB | 6 bits, group 64 | 0.012 | 94.1 % | 11.95 |
4bit |
7.8 GB | dynamic: attention 8 bits, head 6, embedding 4, MLPs 4 bits in groups of 32 with the down projections at 6 in a third of the layers | 0.035 | 90.1 % | 12.06 |
Against the bf16 original (perplexity 11.88), teacher-forced through mlx-vlm's own layers, on 16,368 positions of
English prose, Python and chat transcripts in the model's own template. The mark this lab uses is top-1 90 % (KL 0.01
ideal): the 8-bit is within both; the 6-bit and the dynamic 4-bit within the top-1 mark. A plain 4-bit build (6.0 GB;
the layout of the community's plain 4-bit MLX conversions) is at KL 0.146 and 81.1 %, mlx-vlm's mixed_4_6 (the
layout of the community's mixed-4-6 builds) at 0.119 and 83.7 %, and plain 5-bit at 0.039 and 89.9 %. Plain 8-bit
and 6-bit conversions with group 64 hold the same layout as ours.
How these were made
From MiMo-V2.6 9B at revision 1f09ddcc1a, by Moonbox's Qwen3.5-architecture converter
(lab/zoo/qwen3-8-27b/convert.py, with the dynamic 4-bit recipes of lab/zoo/ornith-1-5-9b/convert.py, in
Moonbox's repository): mlx-vlm's own sanitize and layout, tensor by tensor, MLX affine quantization; the vision tower stays
bfloat16 in every build. Each build was checked against the original before upload (teacher-forced, layer by layer
through mlx-vlm's own layers); the sha256 column above is what the files must hash to.
License
MIT, as the original model card declares. These files are a derivative of the original model and carry its
licence; the original is a fine-tune of Qwen/Qwen3.5-9B (Apache License
2.0), and 8bit/mtp/ is Qwen3.5 9B's own multi-token-prediction layer, converted, under the Apache License 2.0. The
original model card, its use restrictions included, follows unchanged.
Original model card
MiMo-V2.6-Distill-Qwen-9B
MiMo-V2.6-Distill-Qwen-9B is a 9B agentic model developed by Xiaomi MiMo through supervised fine-tuning of Qwen3.5-9B on MiMo-generated data. It covers coding, general-purpose agent tasks, visual coding, and cybersecurity. We release this SFT checkpoint as a starting point for open research in agentic reinforcement learning.
Evaluation
Results for the released SFT checkpoint, as reported in the MiMo-V2.6 technical report.
| Domain | Benchmark | Metric | Qwen3.5-9B | MiMo-V2.6-Distill-Qwen-9B (SFT) |
|---|---|---|---|---|
| Code | SWE Verified | avg@3 | 60.0 | 61.1 |
| Code | SWE Pro | avg@3 | 32.0 | 44.6 |
| Code | MiMo Code (mini)† | avg@3 | 19.5 | 51.6 |
| Cyber | MiMo Cyber (mini)† | avg@3 | 5.7 | 31.3 |
| General | AutomationBench v1.0.6 | avg@1 | 5.0 | 30.3 |
| General | Terminal Bench 2.1 | avg@1 | 27.0 | 37.1 |
| General | Toolathlon-Verified | avg@1 | 25.9 | 35.2 |
| General | OfficeQA | avg@1 | 9.0 | 19.5 |
| General | JobBench | avg@1 | 2.6 | 18.3 |
| General | MiMo General (mini)† | avg@1 | 28.5 | 62.2 |
| Visual | MiMo Visual Coding (mini)† | avg@1 | 61.7 | 64.0 |
† Internal evaluation sets.
Training Data
The weighted SFT data mixture contains 77.4B total tokens, including 27.2B loss-bearing tokens.
| Domain | Total tokens (B) | Token share (%) | Loss-bearing tokens (B) |
|---|---|---|---|
| Code | 23.2 | 29.9 | 7.3 |
| Cyber | 11.0 | 14.2 | 4.8 |
| General | 22.0 | 28.5 | 5.7 |
| Visual | 21.2 | 27.4 | 9.4 |
| Total | 77.4 | 100.0 | 27.2 |
Quickstart
For text generation, use a recent SGLang build with Qwen3.5 support. The checkpoint includes its tokenizer and MiMo v2.6 chat template.
sglang serve \
--model-path XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B \
--reasoning-parser mimo \
--host 0.0.0.0 \
--port 30000
Query the endpoint with thinking explicitly enabled:
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:30000/v1",
api_key="EMPTY",
)
response = client.chat.completions.create(
model="XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B",
messages=[
{"role": "user", "content": "What is 15% of 240?"}
],
max_tokens=2048,
extra_body={"chat_template_kwargs": {"enable_thinking": True}},
)
message = response.choices[0].message
print("Thinking:", getattr(message, "reasoning_content", "") or "")
print("Answer:", message.content or "")
Citation
@misc{mimo2026v26,
title={MiMo-V2.6: Scaling Reinforcement Learning Towards Self-Improvement},
author={{Xiaomi MiMo Team}},
year={2026},
howpublished={\url{https://huggingface.co/XiaomiMiMo/MiMo-V2.6-Pro-RL}},
}
Use Restrictions
You are solely responsible for your use of XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B and any outputs, actions, or consequences arising therefrom, and you agree not to use the XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B or any derivatives thereof:
- For any unlawful, fraudulent, or malicious purpose, or in any manner that violates any applicable laws or regulations;
- To infringe upon the intellectual property rights, privacy rights, publicity rights, or other lawful rights or interests of any third party;
- To exploit, harm, harass, defame, unlawfully discriminate against, or otherwise adversely affect any individual or group, including minors or vulnerable persons;
- For any military purpose or application;
- To engage in or facilitate malicious cyber activities, including but not limited to malware, ransomware, phishing, credential theft, or unauthorized access, or any activity intended to compromise or unlawfully control computer systems, networks, or encryption systems;
- To access, collect, process, disclose, or disseminate personal data or other protected information without appropriate authorization or lawful basis; or to access, interact with, scrape, or automate any third-party platform or service in violation of any applicable laws, policies, or authorization requirements;
- To use the XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B in a manner that autonomously executes high-risk actions without appropriate human oversight or authorization.
This notice is an informational reminder only and does not amend the applicable model licence or impose additional licence conditions. The permissions granted under that licence remain unaffected. Nothing in this notice restricts uses permitted by applicable law, including applicable exceptions and limitations.
Usage enquiries and complaints
mimo-legal@xiaomi.com. For information on submitting a complaint, please visit the https://mimo.xiaomi.com.
Quantized
Model tree for moonbox-dev/MiMo-V2.6-Distill-Qwen-9B-MLX
Base model
Qwen/Qwen3.5-9B-Base