Instructions to use Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero 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("Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero") config = load_config("Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero") # 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
- Pi
How to use Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
MiMo-V2.6-Flash-MOPD-MLX-LeanZero
This is an MLX build of XiaomiMiMo/MiMo-V2.6-Flash-MOPD for Apple silicon. LeanZero made it from Xiaomi's official weights at revision 5220c3f513065a0426be5e094571cbed0983386e.
It keeps Xiaomi's routed experts exactly as published (MXFP4). Xiaomi ships attention q, k and v and the first dense layer as FP8; this build dequantizes them to BF16. Everything else is stored as Xiaomi stores it.
It is 166.16 GiB on disk, more than one 128 GB Mac can hold. We run it split over two M5 Max Mac Studios on Thunderbolt 5. We're sharing it free of charge, as is, under Xiaomi's MIT licence.
Where the weights come from
We downloaded the official repository and checked every one of its 154 files against Xiaomi's published hashes. Our converter then wrote the MLX layout, and a separate verifier compared the result with Xiaomi's tensors: 479 checks, 0 failures. Nothing else went into the weights: no fine-tuning, no merging, no other model, no calibration data.
| part | size | how it is stored |
|---|---|---|
| routed experts | 149.81 GiB | Xiaomi's MXFP4 bytes (group 32), unchanged |
| attention (q, k, v, o) | 8.35 GiB | BF16. Xiaomi ships q, k and v as FP8 with block scales, and we dequantize them to BF16; the largest relative error against a float32 dequant is 0.00171. o is BF16 as shipped. |
| token embedding, output head | 1.16 GiB each | BF16, identical to Xiaomi's |
| first dense layer | part of 0.47 GiB | BF16, dequantized from Xiaomi's FP8 |
| router, norms | part of 0.47 GiB | identical to Xiaomi's |
| vision encoder | 1.36 GiB | BF16, identical to Xiaomi's (364 of 364 tensors) |
model_mtp.safetensors, dflash/ |
1.11 + 2.73 GiB | Xiaomi's drafter files, byte for byte |
The audio encoder and speech embeddings are not included. The chat template, tokenizer files, generation_config.json and preprocessor_config.json are Xiaomi's files at the same revision. PROVENANCE.json lists the sha256 of the source weight and drafter files.
Why there is no 6-bit or 8-bit version: Xiaomi publishes the experts, 90% of the model, at 4 bits, so a wider format adds bytes but no information. The experts alone would be 229 GiB or more at 6 bits. That leaves no room in two 128 GB Macs for the other 16 GiB of weights or for any context.
The drafter files
model_mtp.safetensors and dflash/ are included for engines that use them.
Elzi's two-Mac split can use the MTP layers as draft heads. In our test with vision on, the split crashed while checking drafted tokens (an engine bug), so they are off by default and were off for the run below.
We don't use dflash/. An operation-level test on MLX 0.32.2 showed that exact DFlash verification would not be faster than plain decoding at long context.
dflash/mask_embedding.pt is Xiaomi's PyTorch pickle file; load it only with code you trust.
Running it
This build uses the layout of the MLX engine in Elzi, our desktop agent app (language_model.* keys, model type mimo_v2). Stock mlx-lm 0.32.2 has no mimo_v2 model, so it can't load it. We haven't tested other MLX loaders.
What we ran:
- Elzi's two-Mac tensor split, about 106 GiB per Mac.
iogpu.wired_limit_mbraised to 118000 on both Macs.
The run below used an Elzi Staging build that includes a fix for the two Macs falling out of step. That fix shipped in Elzi 4.1.29.
Gauntlet
On 25 November 2026 this build scored 0.7077 in one run of LeanZero's Gauntlet agentic coding benchmark (sb-7.2). It ran as a single agent from the Benchmark view of Elzi 4.1.28 (Staging).
The setup:
- two Mac Studios with M5 Max and 128 GB each, joined by one Thunderbolt 5 cable, with the model tensor-split across both
- 393,216 tokens of context, thinking on at the engine's default (no reasoning effort was set, so not the benchmark's medium effort)
The agent made 130 of its 150 allowed model calls and stopped on its own after 3 h 21 min. The calls generated 377,262 tokens. Nineteen requests carried images.
How the score came out:
- Before its caps, the run scored 0.9741.
- Four failed checks on the 3D scene the model built (
t_coast_identity,t_coast_reality,q_overview_legibility,q_inspector_framing) cap the score at 0.709. The run finished under that cap. - Two failed backend recovery checks (
r_b6_outbox_atomic,r_notifier_exactly_once) would have capped it at 0.869. - The run used the benchmark's starter files.
- The run is on the public board: run page.
Our run and two other runs of MiMo-V2.6-Flash on the leanzero.net/agentic-benchmarks board:
| run | setup | Gauntlet sb-7.2 |
|---|---|---|
| this build (run) | two M5 Max 128 GB Macs, MLX tensor split, 393,216 context | 0.7077 |
| EigenLabs/MiMo-V2.6-Flash-MOPD-MLX-4bit-mtp (run) | M3 Ultra 96 GB + M5 Max 128 GB, MLX, 524,288 context | 0.6644 |
xiaomi/mimo-v2.6-flash-20260921 via OpenRouter (run) |
cloud. It is a September checkpoint, not necessarily the same weights as MOPD; graded by an earlier sb-7.2 scorer that its page says may understate | 0.7909 |
Our run and the EigenLabs run used the benchmark's call-budget wrap-up nudge, which tells the model to finish as its calls run low; the cloud run did not. The board also has an mlx-community MiMo-V2.6-Flash RL build at 0.5894.
Each row is a single run, and runs of this benchmark vary a lot from one to the next. The table shows what happened in these runs; it does not rank the builds.
Licence
Xiaomi publishes MiMo-V2.6-Flash-MOPD under the MIT licence (declared in its model card; the repository has no separate LICENSE file). We changed the file layout and the storage format of the attention q, k and v and the first dense layer, as described above.
- Downloads last month
- -
4-bit
Model tree for Mihai-LeanZero/MiMo-V2.6-Flash-MOPD-MLX-LeanZero
Base model
XiaomiMiMo/MiMo-V2.6-Flash-MOPD