Token IDsto [B, 1, 152576]
decode · cached positions · keys read · kept between calls: 60 window layers keep at most 127 positions of 2,560 values each · 10 global layers keep 1,001 positions of 2,560 values each · per sequence, 45,132,800 values in all, 19,507,200 of them in the window layers
Parameters1,021,248,126,336
1,021,248,126,336 parameters in MiMo-V2.6-Pro
| Component | Calculation | Parameters |
|---|---|---|
| Token embedding | 152,576 × 6,144 | 937,426,944 |
| Layers | 1,019,373,266,304 | |
| Final RMSNorm | 6,144 | |
| Vocabulary projection | 6,144 × 152,576 | 937,426,944 |
| Model total | 1,021,248,126,336 | |
Counted from the pinned configuration and code, with each byte of a 4-bit expert weight as the two values it packs. The total matches the checkpoint’s tensors, apart from the vision and audio encoders, the audio tokenizer, the speculative decoders and the quantisation scales.
Sources
Direct evidence
The released configuration: 70 layers of width 6,144; hybrid_layer_pattern marks 60 sliding-window layers (1) and 10 global ones (0, at 0-based layers 0, 7, 15, 23, 31, 39, 47, 55, 62 and 69); moe_layer_freq is 0 at layer 0 only; 128 query and 8 key–value heads in both kinds, 192 query–key and 128 value features a head; a sliding window of 128 with a sink bias in the window layers only; attention_value_scale 0.612; partial_rotary_factor 0.334 with θ 10,000,000 (global) and 10,000 (window); 384 experts of 2,048, 8 used, sigmoid scores, noaux_tc with one group, no shared expert; a dense MLP of 16,384; RMSNorm ε 10⁻⁵; vocabulary 152,576; untied head; 1,048,576 positions.
config.json 1–441 ↗ · XiaomiMiMo/MiMo-V2.6-Pro-RL @ b61f21852680
Excerpt
{
"add_full_attention_sink_bias": false,
"add_swa_attention_sink_bias": true,
"architectures": [
"MiMoV2ForCausalLM"
],
"attention_bias": false,
"attention_chunk_size": 128,
"attention_dropout": 0.0,
"attention_projection_layout": "fused_qkv",
"attention_value_scale": 0.612,
"audio_config": {
"add_post_norm": true,
"audio_channels": 20,
"audio_segment_size": 6000,
"group_size": 4,
"input_full_attention": true,
"input_local_attn_heads": 16,
"input_local_dim": 1024,
"input_local_head_dim": 64,
"input_local_hidden_dropout": 0.0,
"input_local_intermediate_size": 4096,
"input_local_layers": 6,
"out_hidden_size": 6144,
"partial_rotary_factor": 1.0,
"projection_layers": 2,
"rope_theta": 640000,
"speech_vocab_size": "1280",
"speech_zeroemb_idx": "1024"
},
"audio_end_token_id": 151674,
"audio_start_token_id": 151673,
"audio_token_id": 151669,
"auto_map": {
"AutoConfig": "configuration_mimo_v2.MiMoV2Config",
"AutoModel": "modeling_mimo_v2.MiMoV2Model",
"AutoModelForCausalLM": "modeling_mimo_v2.MiMoV2ForCausalLM"
},
"moe_router_dtype": "bfloat16",
"bos_token_id": null,
"dtype": "bfloat16",
"eos_token_id": 151645,
"head_dim": 192,
"hidden_act": "silu",
"hidden_size": 6144,
"hybrid_block_size": null,
"hybrid_layer_pattern": [
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0
],
"image_token_id": 151655,
"initializer_range": 0.02,
"intermediate_size": 16384,
"layernorm_epsilon": 1e-05,
"max_position_embeddings": 1048576,
"model_type": "mimo_v2",
"moe_intermediate_size": 2048,
"moe_layer_freq": [
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"n_group": 1,
"n_routed_experts": 384,
"n_shared_experts": null,
"norm_topk_prob": true,
"num_attention_heads": 128,
"num_experts_per_tok": 8,
"num_hidden_layers": 70,
"num_key_value_heads": 8,
"pad_token_id": 151643,
"partial_rotary_factor": 0.334,
"processor_config": {
"audio_avg_pooler": 2,
"audio_channels": 20,
"audio_end_token_id": 151674,
"audio_fmax": null,
"audio_fmin": 0,
"audio_group_size": 4,
"audio_hop_length": 240,
"audio_input_id_per_second": 25.0,
"audio_kernel_size": 3,
"audio_n_mels": 128,
"audio_nfft": 960,
"audio_sampling_rate": 24000,
"audio_segment_size": 6000,
"audio_start_token_id": 151673,
"audio_stride_size": 2,
"audio_token_id": 151669,
"audio_window_size": 960,
"audio_zeroemb_idx": [
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024,
1024
],
"fps": 1.0,
"image_max_pixels": 8388608,
"image_min_pixels": 8192,
"image_token_id": 151655,
"max_frames": 3600,
"merge_size": 2,
"min_frames": null,
"num_frames": null,
"pad_token_id": 151643,
"patch_size": 16,
"rope_type": "rope",
"temporal_compression_ratio": 1,
"temporal_patch_size": 2,
"use_per_grid_t_timestamps": false,
"use_video_timestamps": true,
"video_audio_interleave_length": 0.0,
"video_end_token_id": 151671,
"video_max_pixels": 8388608,
"video_min_pixels": 8192,
"video_process_num_threads": 16,
"video_start_token_id": 151670,
"video_token_id": 151656,
"video_tokens_per_second": 2,
"video_total_max_pixels": 268435456,
"vision_end_token_id": 151653,
"vision_start_token_id": 151652
},
"quantization_config": {
"activation_scheme": "dynamic",
"fmt": "e4m3",
"ignored_layers": [
"model.layers.0.self_attn.o_proj",
"model.layers.1.self_attn.o_proj",
"model.layers.10.self_attn.o_proj",
"model.layers.11.self_attn.o_proj",
"model.layers.12.self_attn.o_proj",
"model.layers.13.self_attn.o_proj",
"model.layers.14.self_attn.o_proj",
"model.layers.15.self_attn.o_proj",
"model.layers.16.self_attn.o_proj",
"model.layers.17.self_attn.o_proj",
"model.layers.18.self_attn.o_proj",
"model.layers.19.self_attn.o_proj",
"model.layers.2.self_attn.o_proj",
"model.layers.20.self_attn.o_proj",
"model.layers.21.self_attn.o_proj",
"model.layers.22.self_attn.o_proj",
"model.layers.23.self_attn.o_proj",
"model.layers.24.self_attn.o_proj",
"model.layers.25.self_attn.o_proj",
"model.layers.26.self_attn.o_proj",
"model.layers.27.self_attn.o_proj",
"model.layers.28.self_attn.o_proj",
"model.layers.29.self_attn.o_proj",
"model.layers.3.self_attn.o_proj",
"model.layers.30.self_attn.o_proj",
"model.layers.31.self_attn.o_proj",
"model.layers.32.self_attn.o_proj",
"model.layers.33.self_attn.o_proj",
"model.layers.34.self_attn.o_proj",
"model.layers.35.self_attn.o_proj",
"model.layers.36.self_attn.o_proj",
"model.layers.37.self_attn.o_proj",
"model.layers.38.self_attn.o_proj",
"model.layers.39.self_attn.o_proj",
"model.layers.4.self_attn.o_proj",
"model.layers.40.self_attn.o_proj",
"model.layers.41.self_attn.o_proj",
"model.layers.42.self_attn.o_proj",
"model.layers.43.self_attn.o_proj",
"model.layers.44.self_attn.o_proj",
"model.layers.45.self_attn.o_proj",
"model.layers.46.self_attn.o_proj",
"model.layers.47.self_attn.o_proj",
"model.layers.48.self_attn.o_proj",
"model.layers.49.self_attn.o_proj",
"model.layers.5.self_attn.o_proj",
"model.layers.50.self_attn.o_proj",
"model.layers.51.self_attn.o_proj",
"model.layers.52.self_attn.o_proj",
"model.layers.53.self_attn.o_proj",
"model.layers.54.self_attn.o_proj",
"model.layers.55.self_attn.o_proj",
"model.layers.56.self_attn.o_proj",
"model.layers.57.self_attn.o_proj",
"model.layers.58.self_attn.o_proj",
"model.layers.59.self_attn.o_proj",
"model.layers.6.self_attn.o_proj",
"model.layers.60.self_attn.o_proj",
"model.layers.61.self_attn.o_proj",
"model.layers.62.self_attn.o_proj",
"model.layers.63.self_attn.o_proj",
"model.layers.64.self_attn.o_proj",
"model.layers.65.self_attn.o_proj",
"model.layers.66.self_attn.o_proj",
"model.layers.67.self_attn.o_proj",
"model.layers.68.self_attn.o_proj",
"model.layers.69.self_attn.o_proj",
"model.layers.7.self_attn.o_proj",
"model.layers.8.self_attn.o_proj",
"model.layers.9.self_attn.o_proj",
"model.decoder.self_attn.o_proj"
],
"mxfp4_block_size": 32,
"quant_method": "fp8",
"store_dtype": "mxfp4",
"weight_block_size": [
128,
128
]
},
"rope_parameters": {
"partial_rotary_factor": 0.334,
"rope_theta": 10000000,
"rope_type": "default",
"type": "default"
},
"rope_theta": 10000000,
"routed_scaling_factor": null,
"scoring_func": "sigmoid",
"sliding_window": 128,
"sliding_window_size": 128,
"swa_head_dim": 192,
"swa_num_attention_heads": 128,
"swa_num_key_value_heads": 8,
"swa_rope_theta": 10000,
"swa_v_head_dim": 128,
"tie_word_embeddings": false,
"topk_group": 1,
"topk_method": "noaux_tc",
"transformers_version": "5.3.0",
"use_cache": true,
"v_head_dim": 128,
"video_token_id": 151656,
"vision_config": {
"depth": 28,
"fullatt_block_indexes": [
0,
9,
18,
27
],
"hidden_act": "silu",
"hidden_size": 1280,
"in_chans": 3,
"intermediate_size": 4608,
"num_heads": 32,
"num_key_value_heads": 8,
"num_query_groups": 4,
"out_hidden_size": 6144,
"patch_size": 16,
"spatial_merge_size": 2,
"spatial_patch_size": 16,
"temporal_patch_size": 2,
"tokens_per_second": 2,
"use_sink": true,
"visual_token_window_size": 64,
"vit_window_attn_types": [
-1,
0,
0,
0,
0,
1,
1,
1,
1,
-1,
0,
0,
0,
0,
1,
1,
1,
1,
-1,
0,
0,
0,
0,
1,
1,
1,
1,
-1
],
"window_size": 128
},
"vision_end_token_id": 151653,
"vision_model_type": "mimovl",
"vision_start_token_id": 151652,
"vocab_size": 152576
}The model card: a sparse MoE of 1.02T total and 42B activated parameters, 1M tokens of context, text, image, video and audio, a 5-layer speculative decoder; the backbone of 70 layers (60 SWA, 10 GA), hidden size 6,144, 128 query and 8 key–value heads in both kinds, head dimensions 192 (query–key) and 128 (value), a window of 128, 384 routed experts with 8 activated; the first block global with a dense FFN, the rest interleaving SWA and GA, both with sparse MoE and no shared experts.
README.md 78–141 ↗ · XiaomiMiMo/MiMo-V2.6-Pro-RL @ b61f21852680
Excerpt
## Model Summary
- **Architecture**: Sparse MoE (Mixture of Experts), 1.02T total / 42B activated parameters
- **Context Length**: 1M tokens
- **Modalities**: Text, Image, Video, Audio
- **Vision Encoder**: 681M-param MiMo ViT (28 layers: 24 SWA + 4 Full)
- **Audio Encoder**: 308M AudioTokenizer + 127M audio patch encoder
- **Multi-Token Prediction (MTP)**: 5-layer speculative decoder

*Figure 1. MiMo-V2.6 architecture.*
## 2. Downloads
| Model | Download |
| --- | --- |
| **MiMo-V2.6-Pro-RL** | [🤗 HuggingFace](https://huggingface.co/XiaomiMiMo/MiMo-V2.6-Pro-RL) · [🤖 ModelScope](https://www.modelscope.cn/models/XiaomiMiMo/MiMo-V2.6-Pro-RL) |
| **MiMo-V2.6-Flash-RL** | [🤗 HuggingFace](https://huggingface.co/XiaomiMiMo/MiMo-V2.6-Flash-RL) · [🤖 ModelScope](https://www.modelscope.cn/models/XiaomiMiMo/MiMo-V2.6-Flash-RL) |
## 3. Evaluation Results
| Benchmark | MiMo-V2.6 Pro | MiMo-V2.6 Flash | MiMo-V2.5 Pro | Claude Opus 5 | GPT-5.6 Sol | Claude Fable 5 |
| --- | --- | --- | --- | --- | --- | --- |
| **Code Agent** | | | | | | |
| DeepSWE v1.1 | 71.9 | 67.9 | 19.0 | 74.0 | 73.0 | 70.0 |
| ProgramBench | 26.5 | 26.0 | 12.5 | 37.0 | 25.0 | 33.0 |
| MiMo Code Bench | 63.2 | 61.2 | 40.4 | 68.6 | 59.3 | - |
| **General Agent** | | | | | | |
| AutomationBench v1.0.6 | 53.1 | 52.3 | 16.0 | 50.3 | 45.8 | 46.2 |
| Toolathlon-Verified | 76.9 | 73.6 | 49.1 | 80.6 | 74.9 | 77.9 |
| GDPval-AA 2.1 | 1673 | - | 1107 | 1708 | 1588 | 1595 |
| Agents’ Last Exam | 31.6 | 27.6 | 13.2 | 31.6 | 30.8 | 25.7 |
| Terminal Bench 4.0 | 34.9 | 28.8 | 1.5 | 49.0 | 39.9 | 42.4 |
| Terminal Bench 2.1 | 89.9 | 87.6 | 65.2 | 89.1 | 88.8 | 84.3 |
| OSWorld-Verified | 82.0 | 80.8 | - | 83.4 | 83.0 | 86.0 |
| JobBench | 62.0 | 61.2 | 25.0 | 65.7 | 45.4 | 57.4 |
| **Cybersecurity** | | | | | | |
| CyberGym | 94.0 | 95.1 | 40.0 | - | - | - |
| MiMo Cyber Bench | 80.2 | 77.2 | 0.0 | - | - | - |
| ExploitGym | 17.8 | 6.0 | 0.2 | 22.1 | 30.3 | 28.4 |
| ExploitBench | 47.9 | 25.3 | 16.6 | 70.0 | 78.5 | 78.0 |
| SEC Bench Pro | 66.3 | 47.5 | 17.7 | - | 79.1 | - |
| **Visual Agent** | | | | | | |
| MiMo VisualCoding | 72.3 | 71.5 | - | 70.0 | 73.4 | 69.1 |
## 4. Model Architecture
### LLM Backbone
| Component | MiMo-V2.6-Pro-RL |
| --- | --- |
| Layers (Total / SWA / GA) | 70 / 60 / 10 |
| Hidden Size | 6144 |
| SWA Heads (Q/KV) | 128 / 8 |
| GA Heads (Q/KV) | 128 / 8 |
| Head Dimensions (QK / V) | 192 / 128 |
| Sliding Window Size | 128 |
| Routed Experts (Total / Activated) | 384 / 8 |
| Max Context Length | 1M |
| MTP / Speculative Decoder | 5 SWA layers, window 1024 |
The first Transformer block uses global attention with a dense FFN. Remaining blocks interleave local SWA and GA; both use sparse MoE FFNs without shared experts.
The text model embeds the tokens, numbers the positions after those cached, builds a causal mask and a sliding-window causal mask, builds the two sets of cos and sin, hands each layer its mask and its rotary coefficients by its kind, and applies the final RMSNorm.
modeling_mimo_v2.py 1611–1681 ↗ · XiaomiMiMo/MiMo-V2.6-Pro-RL @ b61f21852680
Excerpt
def forward(
self,
input_ids: Optional[torch.LongTensor] = None,
attention_mask: Optional[torch.Tensor] = None,
position_ids: Optional[torch.LongTensor] = None,
past_key_values: Optional[Cache] = None,
inputs_embeds: Optional[torch.FloatTensor] = None,
use_cache: Optional[bool] = None,
cache_position: Optional[torch.LongTensor] = None,
**kwargs: Unpack[TransformersKwargs],
) -> BaseModelOutputWithPast:
if (input_ids is None) ^ (inputs_embeds is not None):
raise ValueError("You must specify exactly one of input_ids or inputs_embeds")
use_cache = use_cache if use_cache is not None else self.config.use_cache
if inputs_embeds is None:
inputs_embeds = self.embed_tokens(input_ids)
if use_cache and past_key_values is None:
past_key_values = DynamicCache(config=self.config)
if cache_position is None:
past_seen_tokens = past_key_values.get_seq_length() if past_key_values is not None else 0
cache_position = torch.arange(
past_seen_tokens, past_seen_tokens + inputs_embeds.shape[1], device=inputs_embeds.device
)
if position_ids is None:
position_ids = cache_position.unsqueeze(0)
if not isinstance(causal_mask_mapping := attention_mask, dict):
mask_kwargs = {
"config": self.config,
"input_embeds": inputs_embeds,
"attention_mask": attention_mask,
"cache_position": cache_position,
"past_key_values": past_key_values,
"position_ids": position_ids,
}
causal_mask_mapping = {
"full_attention": create_causal_mask(**mask_kwargs),
}
if self.has_sliding_layers:
if getattr(self.config, "sliding_window", None) is None:
raise ValueError("MiMoV2 config `sliding_window` must be set when hybrid_layer_pattern uses SWA.")
causal_mask_mapping["sliding_window_attention"] = create_sliding_window_causal_mask(**mask_kwargs)
hidden_states = inputs_embeds
position_embeddings = self.rotary_emb(hidden_states, position_ids)
swa_position_embeddings = self.swa_rotary_emb(hidden_states, position_ids)
for decoder_layer in self.layers[: self.config.num_hidden_layers]:
hidden_states = decoder_layer(
hidden_states,
attention_mask=causal_mask_mapping[decoder_layer.attention_type],
position_embeddings=position_embeddings
if decoder_layer.attention_type == "full_attention"
else swa_position_embeddings,
position_ids=position_ids,
past_key_values=past_key_values,
use_cache=use_cache,
cache_position=cache_position,
**kwargs,
)
hidden_states = self.norm(hidden_states)
return BaseModelOutputWithPast(
last_hidden_state=hidden_states,
past_key_values=past_key_values if use_cache else None,
)
A decoder layer is a window layer where hybrid_layer_pattern is 1, global otherwise; its feed-forward is the MoE where moe_layer_freq is set and the dense MLP otherwise; two RMSNorms.
modeling_mimo_v2.py 394–411 ↗ · XiaomiMiMo/MiMo-V2.6-Pro-RL @ b61f21852680
Excerpt
class MiMoV2DecoderLayer(nn.Module):
attention_projection_layout = "split"
def __init__(self, config, layer_idx: int, attention_projection_layout: Optional[str] = None):
super().__init__()
attention_projection_layout = attention_projection_layout or self.attention_projection_layout
is_swa_layer = config.hybrid_layer_pattern[layer_idx] == 1
self.attention_type = "sliding_window_attention" if is_swa_layer else "full_attention"
self.self_attn = MiMoV2Attention(
config, is_swa_layer, layer_idx, projection_layout=attention_projection_layout
)
self.mlp = (
MiMoV2MoE(config)
if getattr(config, "n_routed_experts", None) is not None and config.moe_layer_freq[layer_idx]
else MiMoV2MLP(config)
)
self.input_layernorm = MiMoV2RMSNorm(config.hidden_size, eps=config.layernorm_epsilon)
self.post_attention_layernorm = MiMoV2RMSNorm(config.hidden_size, eps=config.layernorm_epsilon)