XiaomiMiMo/MiMo-V2.6-Pro-RL — model analysis
Summary
- Size: The model consists of about 1 trillion numbers (parameters). Its saved files total about 566GB.
- Structure: A mixture-of-experts (MoE) model that, for each input, selects only 8 of its 384 experts. Of about 1 trillion parameters in total, about 42.9 billion are used per computation step. About 98% of the parameters are assigned to the experts and about 2% to the part that reads context (attention).
- Japanese text: In Japanese, one token holds about 1.5 characters. In English, one token holds about 4.3 characters. For the same number of characters, Japanese needs about 2.9 times as many tokens as English. Of its 151,675 vocabulary entries, 27,206 contain kana or kanji.
- Context length: The limit written in the config (max_position_embeddings) is 1,048,576 tokens, roughly 1,500,000 Japanese characters or 4,500,000 English characters at the same ratio as the fixed texts above.
- Skew in values: Values inside the model flow in groups of 6,144. Position 2999 was among the positions where outliers (extremely large values) appear most often, in all 70 layers. Position 2999 also appeared in the tally of positions where normalization-layer weights take extreme values (75 of 141 normalization layers). This kind of skew is generally considered a cause of accuracy loss when a model is compressed (quantized).
One line: MoE (8 of 384 experts active) · mimo_v2 · 70 layers · 1.02T params · 42.93B active · GQA (16:1) · context 1,048,576 · vocab 152,576
Basic information
- Model: XiaomiMiMo/MiMo-V2.6-Pro-RL (revision
73875d00b30a, config.json) - License: mit
- Declared base_model: none
- Storage dtypes: MXFP4 1.00T, F8_E4M3 13.38B, BF16 10.65B, F32 857.09K
- MXFP4: 4-bit values packed two per byte (U8), with one scale byte per 32 values. The count above is the number of values before packing and excludes the scales
Architecture (stage 0)
Parameters by part
Counted from the tensor shapes in the safetensors headers (measured).
| Part | Parameters | Share |
|---|---|---|
| Experts | 1,000,190,509,056 | 97.65% |
| Attention | 18,717,089,280 | 1.83% |
| MTP (multi-token prediction) | 1,934,715,264 | 0.19% |
| Vision / audio etc. | 1,007,547,392 | 0.10% |
| Output head | 937,426,944 | 0.09% |
| Embedding | 937,426,944 | 0.09% |
| FFN (dense) | 301,989,888 | 0.03% |
| Router | 162,817,920 | 0.02% |
| Other | 26,214,400 | 0.00% |
| Normalization | 866,304 | 0.00% |
Structure
Values from config.json.
| Item | Value |
|---|---|
| model_type / architectures | mimo_v2 / MiMoV2ForCausalLM |
| Layers | 70 |
| Hidden size | 6,144 |
| FFN intermediate size (intermediate_size) | 16,384 |
| Attention type | GQA (16:1) |
| Heads / KV heads / head dim | 128 / 8 / 192 |
| V head dim (v_head_dim) | 128 |
| Sliding window | 128 (use_sliding_window=—) |
| Layer types (layer_types) | — |
| RoPE θ | 10,000,000 |
| RoPE scaling | {'partial_rotary_factor': 0.334, 'rope_theta': 10000000, 'rope_type': 'default', 'type': 'default'} |
| Partial rotary (partial_rotary_factor) | 0.334 |
| Context length (max_position_embeddings) | 1,048,576 |
| Tied input/output embeddings | No |
| Activation | silu |
| Normalization ε | — |
MoE configuration
Expert counts come from both config and tensor names (MTP layers excluded). Active parameters = total − MTP − expert part + expert part × active ÷ experts (computed).
| Item | Value |
|---|---|
| Experts (config) | 384 |
| Experts counted from tensor names (count: layers) | 384:69 layers |
| Active experts per token | 8 |
| Expert intermediate size (moe_intermediate_size) | 2,048 |
| Shared experts | — |
| MoE layers | 69 |
| Leading dense layers (first_k_dense_replace) | — |
| Expert parameters | 1.00T |
| Active parameters | 42.93B |
| MTP parameters (excluded from active) | 1.93B |
config vs. actual tensors
Values in config.json side by side with the actual tensor shapes (measured).
| Item | config | Actual | Match | Source of actual |
|---|---|---|---|---|
| vocab_size | 152,576 | 152,576 | Yes | model.embed_tokens.weight |
| hidden_size | 6,144 | 6,144 | Yes | model.embed_tokens.weight |
| num_hidden_layers | 70 | 70 | Yes | largest layer index + 1 (excluding MTP layers) |
| (num_attention_heads + num_key_value_heads) × head_dim + num_key_value_heads × v_head_dim | 27,136 | 27,136 | Yes | model.layers.0.self_attn.qkv_proj.weight |
| intermediate_size | 16,384 | 16,384 | Yes | model.layers.0.mlp.gate_proj.weight |
| moe_intermediate_size | 2,048 | 2,048 | Yes | model.layers.1.mlp.experts.0.gate_proj.weight |
| tie_word_embeddings (no output-head tensor) | No | No | Yes | tensor list |
| num_experts | 384 | 384 | Yes | tensor names |
Tokenizer
Results of tokenizing the fixed Japanese and English texts (see conditions) without special tokens (measured). "Tokens splitting a character" is the share of tokens that decode to a broken character (U+FFFD) on their own.
| Text | Characters | Tokens | Chars/token | Bytes/token | Tokens splitting a character | Round-trips exactly |
|---|---|---|---|---|---|---|
| Japanese | 449 | 307 | 1.463 | 4.381 | 5.2% | Yes |
| English | 1,201 | 282 | 4.259 | 4.358 | 0.0% | Yes |
Of 151,675 vocabulary entries, 27,206 (17.94%) contain at least one kana or kanji character and 18,299 contain two or more (loaded with tokenizers).
Special tokens and chat format
20 special tokens. BOS: None, EOS: <|im_end|>. Chat template: present (3867 characters, sha256 prefix 11ea52e156de).
Thinking tags: Yes, tool calls: Yes, FIM: No, image tokens: Yes (found by searching special-token names and the template text).
List of special tokens
<|endoftext|>, <|im_start|>, <|im_end|>, <|object_ref_start|>, <|object_ref_end|>, <|box_start|>, <|box_end|>, <|quad_start|>, <|quad_end|>, <|vision_start|>, <|vision_end|>, <|vision_pad|>, <|image_pad|>, <|video_pad|>, <|audio_pad|>, <|mimo_video_start|>, <|mimo_video_end|>, <|mimo_audio_eod|>, <|mimo_audio_start|>, <|mimo_audio_end|>
Weights (stage 1)
Analyzed 80,467 of 160,040 tensors (compute time 16.1 min). Each tensor was converted to fp32 for computation. Tensors excluded from analysis: FP8 scale (not a weight) (85), MXFP4 scale (not a weight) (79488). The 36 tensors of the MTP (multi-token prediction) part were analyzed but kept out of the per-layer trends, outlier channels, normalization-layer dimensions, embedding rows, expert similarity and extremes below, so that only the main layers are counted. Weights stored in FP8 (85) were restored to fp32 by multiplying by their 128×128 block scales before computation. Weights stored in MXFP4 (79,488) were restored to fp32 by multiplying by their per-32 scales before computation.
Trends across layers
RMS is the root mean square of the elements. max|w| ÷ RMS is how many times larger the largest element is than a typical one. Excess kurtosis measures tail heaviness and is 0 for a normal distribution (all measured). The figures use weights with 2 or more dimensions (matrices) only; 1-D biases and similar are left out.
Matrices with the largest values (main-model weights with 2 or more dimensions): max|w| ÷ RMS 1150.403 (model.layers.13.mlp.experts.167.down_proj.weight), excess kurtosis 1.740e+05 (model.layers.13.mlp.experts.239.down_proj.weight), outlier share 1.069% (model.layers.10.mlp.experts.280.gate_proj.weight).
Outliers and outlier channels
An outlier is an element exceeding 6 times the standard deviation of its matrix. For each matrix that takes the hidden dimension as input, the columns with the most outliers (top 16) were collected, and the number of layers in which each column appeared was counted (measured).
| Hidden-dimension column | Layers it appeared in (of 70) |
|---|---|
| 2999 | 70 |
| 643 | 67 |
| 3335 | 67 |
| 5576 | 67 |
| 408 | 66 |
| 1765 | 66 |
| 3975 | 66 |
| 2908 | 65 |
| 2239 | 64 |
| 5090 | 64 |
Normalization-layer weights
For each of the 141 normalization layers whose length equals the hidden size (6,144), the dimensions farthest from the median (top 16) were collected, and the number of normalization layers in which each dimension appeared was counted (measured).
| Dimension | Normalization layers it appeared in |
|---|---|
| 5741 | 96 |
| 643 | 82 |
| 1765 | 78 |
| 2999 | 75 |
| 3335 | 67 |
| 5090 | 66 |
| 1262 | 65 |
| 1637 | 65 |
| 4274 | 59 |
| 5590 | 58 |
Dimensions shared with the top 10 outlier channels above: 643, 1765, 2999, 3335, 5090.
Effective rank
Stable rank = (Frobenius norm)² ÷ (largest singular value)², divided by the matrix's shorter side to scale it to 0–1. The largest singular value is approximated by power iteration (30 steps) (estimated).
Stable rank ÷ shorter side by part:
| Part | Matrices | Min | Median | Max | Matrix with the minimum |
|---|---|---|---|---|---|
| Experts | 79488 | 4.9796e-04 | 0.0395 | 0.3071 | model.layers.2.mlp.experts.294.gate_proj.weight |
| Vision / audio etc. | 186 | 0.0044 | 0.0544 | 0.1409 | audio_encoder.projection.mlp.0.weight |
| Attention | 140 | 2.1416e-04 | 0.0181 | 0.0429 | model.layers.13.self_attn.qkv_proj.weight |
| Router | 69 | 0.0075 | 0.0093 | 0.0299 | model.layers.27.mlp.gate.weight |
| Other | 20 | 0.0059 | 0.0271 | 0.032 | speech_embeddings.0.weight |
| MTP (multi-token prediction) | 18 | 0.0034 | 0.0042 | 0.0407 | model.mtp.layers.0.mlp.up_proj.weight |
| FFN (dense) | 3 | 3.9010e-04 | 3.9566e-04 | 5.0111e-04 | model.layers.0.mlp.down_proj.weight |
| Output head | 1 | 0.0102 | 0.0102 | 0.0102 | lm_head.weight |
| Embedding | 1 | 0.0125 | 0.0125 | 0.0125 | model.embed_tokens.weight |
Embedding rows
Distribution of the length (norm) of each vocabulary entry's embedding row, and the rows with the smallest norms (bottom 0.1%) (measured).
lm_head.weight (152,576 rows)
| Min | Bottom 0.1% | Bottom 1% | Median | Top 1% | Max |
|---|---|---|---|---|---|
| 0.4009 | 0.5379 | 0.541 | 0.934 | 1.6282 | 3.2937 |
Rows with small norms (153 rows in the bottom 0.1%, the 20 smallest): 151643:'<|endoftext|>'(0.4009), 37524:' و'(0.4192), 14925:' �'(0.4286), 47742:' và'(0.4444), 47809:' क'(0.4519), 91550:'mathrm'(0.4639), 7587:' и'(0.4664), 123822:' ו'(0.4704), 12961:' ا'(0.4706), 98207:' \t\t\n'(0.4738), 23364:' م'(0.4746), 124758:'และ'(0.4758), 76841:' در'(0.4764), 68158:' स'(0.477), 81768:' به'(0.4823), 3837:','(0.4827), 68785:'،'(0.4854), 91217:' म'(0.4856), 1773:'。'(0.4865), 124202:'ใน'(0.487)
model.embed_tokens.weight (152,576 rows)
| Min | Bottom 0.1% | Bottom 1% | Median | Top 1% | Max |
|---|---|---|---|---|---|
| 7.1821e-04 | 7.3133e-04 | 7.4263e-04 | 1.5132 | 1.6444 | 2.5998 |
Rows with small norms (153 rows in the bottom 0.1%, the 20 smallest): 137222:'เช่นกัน'(7.1821e-04), 131675:'ตี'(7.2122e-04), 138389:'ฝั'(7.2158e-04), 125279:'บัน'(7.2160e-04), 152509:''(7.2169e-04), 134438:'ทันที'(7.2284e-04), 152199:''(7.2288e-04), 125181:'เรียน'(7.2299e-04), 152498:''(7.2317e-04), 152171:''(7.2419e-04), 151956:''(7.2427e-04), 136472:'ที่พัก'(7.2433e-04), 135289:'ตัวอย่าง'(7.2488e-04), 128898:'น้อย'(7.2504e-04), 141214:'สี่'(7.2543e-04), 138395:'หนี'(7.2551e-04), 151159:'שּׁ'(7.2556e-04), 152119:''(7.2573e-04), 152417:''(7.2578e-04), 127136:'รู้สึก'(7.2579e-04)
A small norm does not mean that the token is unimportant or untrained.
Similarity between experts
For matrices of the same kind in the same layer, the cosine similarity between experts was estimated with a 32×32 random projection (estimated). Mean over all layers: 0.0357.
Measurement conditions
- mbscope 0.2.11 (result schema v1), Python 3.14.4, torch 2.13.0+cu130, safetensors 0.8.0, huggingface_hub 0.36.2, tokenizers 0.21.4, transformers 4.49.0
- Estimation criteria: outlier_sigma=6.0, embed_low_pct=0.1, power_iters=30, sketch_dim=32, top_channels=16, seed=20261002
- FP8 (F8_E4M3) weights were restored to fp32 by multiplying by the matching _scale_inv (block scales) before computation
- MXFP4 weights were read as E2M1 with the low 4 bits of each byte as the first value, then multiplied by the matching _scale (one per 32 values, E8M0: 2^(value−127)) to restore fp32 before computation
- Input texts: ja: Natsume Sōseki, I Am a Cat, opening (Aozora Bunko 789_ruby_5639; source: Natsume Sōseki Zenshū 1, Chikuma Bunko), sha256 prefix
5d6b40f79b6a/ en: Jane Austen, Pride and Prejudice, opening of Chapter 1 (Project Gutenberg eBook #1342), sha256 prefix0a714a270435 - Computed on GPU NVIDIA GeForce RTX 3090 (CUDA 13.0, TF32 off) in fp32
- Measured with mbscope 0.2.9. The measurements were re-aggregated with mbscope 0.2.11 without re-measuring
Comments
…