Add MiMo V2.5#1219
Open
kernelpool wants to merge 7 commits intoml-explore:mainfrom
Open
Conversation
|
牛逼 |
chanunc
pushed a commit
to chanunc/local-llm-mac-studio
that referenced
this pull request
Apr 30, 2026
Adds Xiaomi's `MiMoV2ForCausalLM` to the stack via vllm-mlx, with the architecture file vendored from open PR ml-explore/mlx-lm#1219 (single 556-line `mimo_v2.py` drop-in; mlx-lm 0.31.3 only ships `mimo.py` and `mimo_v2_flash.py`). The Ling thread-local-stream + inline-gen patches that are already in the venv are sufficient — no MiMo-specific patches needed. Loads cleanly. Tool-call format is Hermes-style XML (same body as Qwen3-coder, wrapped in `<tool_call>` tags) so `--tool-call-parser qwen3_coder` + `--reasoning-parser qwen3` is the right combo. OpenCode bench result: not viable as an agent backbone in this stack. Browse: 1/3 runs emit invalid tool call, 2/3 hit the 8K output cap reasoning into oblivion. Search: 0/3 runs ever call a tool — model burns all 8192 output tokens in `<think>` and never exits to a tool call. Raw `/v1/chat/completions` with a single tool *does* emit valid tool calls cleanly, so the issue is the heavily-pruned 130-expert variant choking on OpenCode's 10-tool catalog with thinking-on, not the server config. Adds MiMo as a ⚠ / ⛔ row in the cross-model OpenCode end-to-end table with the failure mode in the notes column. Full deployment guide and caveats in `docs/models/model-summary-mimo-v2.5.md`. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Tested on Mac Studio M3 Ultra 512 GB, mlx-lm installed from this branch. Quantized MiMo-V2-Flash to 8-bit via
Forward pass works, generation is coherent. Architecture instantiates cleanly from MiMo-V2-Flash's config (313 GB BF16 source). Thanks for the contribution @kernelpool — great to have MiMo on Apple Silicon! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Models
MiMo-V2.5-Pro (distributed)
MiMo-V2.5 (single node)