MiniMax-M2.7
MiniMax · reasoning checkpoint
No base checkpoint is public; facts describe the released post-trained checkpoint.
Open in the comparison table Hugging Face ↗ Paper ↗
KV calculations use one sequence at 131,072 tokens and 16-bit cache elements. They include bounded sliding-window caches. This is retained cache payload, not peak prefill memory. The comparison table also offers sourced mixed-precision layouts, including quantization scales.
Release
- Released
2026-04-09
Source: api · /createdAt
2026-04-09T
Hugging Face repository creation date (no dated publisher page for the weight release found); the 2026-03-18 blog announced the model without weights.
Date the weights (or, if earlier, the technical report) were first made public, YYYY-MM-DD, as dated by the publisher. A Hugging Face repository creation date is used only when no dated publisher page exists, with a note.
- License
other (NON-COMMERCIAL LICENSE)
Source: model-card · LICENSE; title
NON-COMMERCIAL LICENSE Non-commercial use permitted based on MIT-style terms
License of the released weights as declared by the publisher (model card metadata or license file), e.g. apache-2.0, mit, or the name of a custom license.
- Input modalities
text
Inferred from the source; see the explanation below.
Source: config · config.json; architectures
"architectures": [ "MiniMaxM2ForCausalLM" ]
No modality statement; causal-LM class with no vision or audio config.
Input modalities of the released checkpoint as the publisher states them, from: text, image, video, audio, joined with ' + ' in that order ("text", "text + image + video").
Parameters
- Total params
229.9B parameters
Source: paper · p.3 §2.1
It contains 229.9B total parameters, with 9.8B activated per token.
Total parameter count as reported by the publisher. See params.note for whether embeddings, MTP heads or vision towers are included.
- Active params
9.8B parameters
Source: paper · p.3 §2.1
It contains 229.9B total parameters, with 9.8B activated per token.
Parameters used per token in the forward pass, as reported by the publisher.
- Active non-embedding (stated)
Not disclosed
Active parameters excluding the input embedding and the output head (unembedding). Stated by the publisher, or computed from params.active by subtracting vocab × d_model for each of the embedding and output head that params.active is stated to include (basis inferred, note with the arithmetic). Not disclosed when the scope of params.active is not stated.
- Counted total params
228.7B parameters
Calculated: embedding + output head + all experts + other weights, MiniMaxAI/MiniMax-M2.7@d494266 safetensors headers; reproduces stated total (backbone) and active (non-embedding)
Parameters of the text backbone counted from the released checkpoint's safetensors headers (embedding, output head, all experts and other weights; excluding MTP modules, vision/audio towers and n-gram lookup tables). Shown only when the counts reproduce the publisher's stated total and active parameters within 5% under some scope.
- Counted embedding + head
1.229B parameters
Calculated: input embedding + output head, MiniMaxAI/MiniMax-M2.7@d494266 safetensors headers
Input embedding plus output head (once if tied), counted from the checkpoint.
- Non-emb. params (counted)
227.5B parameters
Calculated: dense + routed backbone weights; excludes input embedding, output head, lookup tables, MTP and other modalities, MiniMaxAI/MiniMax-M2.7@d494266 safetensors headers; reproduces stated total (backbone) and active (non-embedding)
Language backbone weights excluding input embeddings, output head, lookup/Engram tables, MTP modules and vision/audio towers. Equals params.counted_total minus params.counted_embedding. Same validation as params.counted_total.
- Largest layer (counted)
3.669B parameters
Calculated: max(sum of dense and routed weights sharing a full layers.<index> tensor path), all experts included, MiniMaxAI/MiniMax-M2.7@d494266 safetensors headers
Largest group of language-backbone weights sharing a full layers.<index> tensor path, including every routed expert. Excludes lookup/Engram tables, embeddings, output head, MTP and other modalities. Hybrid checkpoints may store mixers and FFNs as separate layers. All-gather volume also depends on wrapping, sharding and dtype.
- Active non-emb. (counted)
9.801B parameters
Calculated: non-expert weights + routed experts × 8/256, excluding embedding and output head, MiniMaxAI/MiniMax-M2.7@d494266 safetensors headers; reproduces stated total (backbone) and active (non-embedding)
Active parameters per token excluding the input embedding and output head, counted from the checkpoint as all non-expert weights plus routed-expert weights × top_k / experts. Same validation as params.counted_total.
- Counting scope
Report figures for M2, the series flagship; the report attributes the M2 → M2.5 → M2.7 progression to post-training. MTP scope not stated.
Source: paper · p.2 §1
Pre-training on 29.2T tokens establishes the base; the bulk of
What the publisher's counts include or exclude (MTP modules, embeddings, vision encoder, n-gram tables).
Shape
- Layers
62
Source: config · /num_hidden_layers
Number of transformer blocks in the main backbone (attention or token mixer plus FFN), excluding MTP modules.
- d_model
3,072
Source: config · /hidden_size
Residual stream width.
- Vocab
200,064
Source: config · /vocab_size
Embedding table rows (vocab_size in config, may include padding).
- Tied embeddings
No
Source: config · /tie_word_embeddings
Input embedding and output head share weights.
- d_model / layers
49.5484
Calculated: d_model / layers
Width-to-depth ratio, d_model divided by the number of blocks.
Attention
- Token mixers
GQA
Source: code · modeling_minimax_m2.py; MiniMaxM2Attention.__init__
self.k_proj = nn.Linear(config.hidden_size, config.num_key_value_heads * self.head_dim, bias=False)
Token-mixing layer types in the backbone, e.g. GQA, MLA, SWA, Gated DeltaNet, Mamba-2, DSA (DeepSeek sparse attention).
- Global-attention layers
62
Source: config · /attn_type_list | count 1
Every layer is full softmax attention (/sliding_window unset).
Layers whose KV cache grows with full context (dense or sparse global attention, MLA). Excludes sliding-window and linear/recurrent layers.
- Query heads
48
Source: config · /num_attention_heads
Query heads in the global-attention layers.
- KV heads
8
Source: config · /num_key_value_heads
Key/value heads in the global-attention layers. Not applicable to MLA, whose cache is a shared latent.
- Heads × head dim
6,144
Calculated: heads × head_dim
attn.heads × attn.head_dim, the query projection width of global layers.
- Q heads / KV head
6
Calculated: heads / kv_heads
attn.heads divided by attn.kv_heads in global layers.
- QK head dim
128
Source: config · /head_dim
Query/key dimension per head in global-attention layers (for MLA, nope + rope dims).
- Positional encoding
partial RoPE (64 of 128 dims)
Source: code · modeling_minimax_m2.py; apply_rotary_pos_emb
q_rot, q_pass = q[..., :rotary_dim], q[..., rotary_dim:]
Positional scheme in global layers: RoPE, partial RoPE, NoPE, or mixed per layer type.
- RoPE base
5,000,000
Source: config · /rope_theta
RoPE base frequency of the global layers at release.
- Rotary fraction
0.5
Inferred from the source; see the explanation below.
Source: code · configuration_minimax_m2.py; MiniMaxM2Config.__init__
self.partial_rotary_factor = self.rotary_dim / self.head_dim
/rotary_dim 64 ÷ /head_dim 128.
Fraction of each head's QK dimensions that are rotated.
- QK norm
No
Source: code · modeling_minimax_m2.py; MiniMaxM2Attention.__init__
self.q_norm = MiniMaxM2RMSNorm(self.head_dim * config.num_attention_heads, eps=config.rms_norm_eps)
QK-norm exists (/use_qk_norm true) but is not per head: one RMSNorm spans all heads' concatenated Q (48×128) and another all K (8×128), before the per-head reshape (/qk_norm_type per_layer).
Queries and keys are normalized per head before the dot product.
- QKV bias
No
Source: code · modeling_minimax_m2.py; MiniMaxM2Attention.__init__
self.q_proj = nn.Linear(config.hidden_size, config.num_attention_heads * self.head_dim, bias=False)
Query/key/value projections have bias terms.
Feed-forward
- Activation
SwiGLU
Source: code · modeling_minimax_m2.py; MiniMaxM2MLP.forward
current_hidden_states = self.act_fn(self.w1(hidden_states)) * self.w3(hidden_states)
act_fn is SiLU (config hidden_act).
FFN activation (SwiGLU, GeGLU, ...).
- FFN bias
No
Source: code · modeling_minimax_m2.py; MiniMaxM2MLP.__init__
self.w1 = nn.Linear(self.hidden_dim, self.ffn_dim, bias=False)
FFN projections have bias terms.
Mixture of experts
- Routed experts
256
Source: config · /num_local_experts
Routed experts per MoE layer.
- Experts per token
8
Source: config · /num_experts_per_tok
Routed experts selected per token.
- Expert dim
1,536
Source: config · /intermediate_size
Intermediate width of one routed expert.
- Leading dense layers
0
Source: code · modeling_minimax_m2.py; MiniMaxM2DecoderLayer.__init__
self.block_sparse_moe = MiniMaxM2SparseMoeBlock(config)
Every decoder layer is MoE.
Number of initial blocks that use a dense FFN instead of MoE.
- Router score
sigmoid
Source: config · /scoring_func
Gating function over expert logits (softmax, sigmoid).
- Load balancing
learnable per-expert routing bias trained jointly with the model + greatly reduced auxiliary loss (coefficient not stated)
Source: paper · p.3–4 §2.2.1
These biases are optimized jointly with model parameters and implicitly regulate expert
Reduced auxiliary loss: same sentence, p.4. The bias enters top-k selection only (MiniMaxM2SparseMoeBlock e_score_correction_bias; config /use_routing_bias true).
Load-balancing method, with coefficients where disclosed.
- Renormalize top-k
Yes
Source: code · modeling_minimax_m2.py; MiniMaxM2SparseMoeBlock.route_tokens_to_experts
top_k_weights /= top_k_weights.sum(dim=-1, keepdim=True)
Selected expert weights are renormalized to sum to 1.
- Expert dim / d_model
0.5
Calculated: moe.expert_dim / d_model
moe.expert_dim divided by shape.d_model.
- Sparsity (experts / top-k)
32
Calculated: experts / top_k
Routed experts divided by experts selected per token.
- Active / total
0.0426272
Calculated: params.active / params.total
params.active divided by params.total.
Multi-token prediction
- MTP depth
3
Source: paper · p.5 §2.3
we expand from one to three MTP modules ( K = 3) during the decay phase of continued pre-training.
One MTP module (K=1) during the constant phase; three in the decay phase, matching config /num_mtp_modules 3.
Additional future tokens predicted during pretraining (0 when the model was trained without MTP).
- MTP modules
3
Source: paper · p.5 §2.3
we expand from one to three MTP modules ( K = 3) during the decay phase of continued pre-training.
Added modules are copy-initialized, then trained jointly with the main model; config /num_mtp_modules 3.
MTP modules with distinct weights. 1 with mtp.depth > 1 means one module is applied recursively.
- MTP module
DeepSeek-V3 design: RMSNorm on previous hidden state and next-token embedding, concat, linear projection, 1 transformer block
Source: paper · p.7 Figure 2
Figure 2 | Multi-Token Prediction (MTP) module architecture used in M2.
One transformer layer per module per config /mtp_transformer_layers; whether its FFN is MoE is not stated.
Contents of one MTP module (mixer and FFN type, norms, how the previous hidden state and next-token embedding are combined).
- MTP FFN
Not disclosed
FFN in the MTP module: 'dense' or 'MoE', with its width when it differs from the backbone.
- MTP loss weight
0.3, annealed to 0.1 in the decay phase
Source: paper · p.5 §2.3
with an initial MTP loss weight of 0.3, which is annealed to 0.1 during the decay phase.
Weight of the MTP loss, including its schedule.
- MTP weights released
No
Source: config · /weight_map | has mtp
config.json declares num_mtp_modules 3; the checkpoint contains no MTP tensors.
The released checkpoint contains the MTP module weights.
Normalization and stability
- Norm
RMSNorm
Source: code · modeling_minimax_m2.py; MiniMaxM2DecoderLayer.__init__
self.input_layernorm = MiniMaxM2RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
Normalization layer type in the blocks.
- Norm placement
pre
Source: code · modeling_minimax_m2.py; MiniMaxM2DecoderLayer.forward
hidden_states = self.input_layernorm(hidden_states)
Pre-norm, post-norm, or sandwich (pre and post).
- Norm epsilon
1e-06
Source: config · /rms_norm_eps
Epsilon of the block normalization layers.
Context length
- Pretraining context
8.192K tokens
Source: paper · p.6 §3
context window from 8K tokens through 32K and ultimately to 192K tokens.
Report states 8K.
Sequence length of the main pretraining stage.
- Trained context
196.6K tokens
Source: paper · p.6 §3
context window from 8K tokens through 32K and ultimately to 192K tokens.
Report states 192K.
Longest sequence length trained on after context extension.
- Advertised context
204.8K tokens
Source: config · /max_position_embeddings
The M2.7 card states no context length.
Longest context the publisher says the model supports, possibly beyond trained length via RoPE scaling.
- Extension method
8K → 32K → 192K in stages within the 9.3T-token decay phase
Source: paper · p.6 §3
The decay phase uses a total data budget of 9.3T tokens
How context was extended (stages, RoPE base change, YaRN factor).
Pretraining recipe
- Pretraining tokens
29.2T tokens
Source: paper · p.3 §2.1
is pre-trained on 29.2T tokens with a maximum context length of 192K.
19.9T constant phase + 9.3T decay phase; stated for M2.
Tokens seen in pretraining including annealing and context extension, as reported.
- Optimizer
Not disclosed
Optimizer used for the bulk of parameters.
- Peak LR
Not disclosed
Peak learning rate of the main pretraining stage.
- Final LR
Not disclosed
Learning rate at the end of the decay.
- LR schedule
constant phase (19.9T tokens), then decay phase (9.3T tokens, with context extension)
Source: paper · p.6 §3
During the constant phase of pre-training, we train on a total of 19.9T tokens.
Learning-rate schedule shape with phase boundaries.
- Warmup
Not disclosed
Warmup length in steps or tokens.
- Batch size
Not disclosed
Global batch size, including any batch-size ramp: sequences × sequence length (token total), or the token total alone when only that is stated.
- Weight decay
Not disclosed
Decoupled weight decay coefficient.
- Adam betas
Not disclosed
(beta1, beta2) of the Adam-family optimizer or its AdamW fallback.
- Grad clip
Not disclosed
Global gradient-norm clipping threshold.
- Training precision
Not disclosed
Matmul precision of pretraining (BF16, FP8 recipe, NVFP4 recipe) with the scaling granularity where disclosed. Never inferred from the released checkpoint dtype.
- Data mix
web, academic, books, code, structured QA; code, math and STEM upsampled
Source: paper · p.6 §3
with code, mathematics, and STEM content significantly upsampled relative to their natural distribution.
Pretraining data composition as disclosed (domain shares, synthetic fraction, repetition).
- Stages
constant
- Tokens
- 19900000000000
- Seq len
- 8192
Source: paper · p.6 §3
During the constant phase of pre-training, we train on a total of 19.9T tokens.
decay
- Tokens
- 9300000000000
Source: paper · p.6 §3
The decay phase uses a total data budget of 9.3T tokens
short-text decay data plus long-context data; context 8K → 32K → 192K; MTP expanded to 3 modules
Source: paper · p.6 §3
Ordered pretraining stages. Each item: name, tokens, seq_len, lr, batch_tokens, batch_sequences, steps, note, quote, and source when it differs from the fact's source.
Scaling & HP transfer
- Scaling ladder
MoE fine-grained-expert and MTP ablations at 2B active / 17.8B total, 500B tokens
Source: paper · p.4 §2.2.1, Table 1
Total Params – 17.8B 17.8B 17.8B Training Tokens – 500B 500B 500B
Smaller models trained to choose the architecture or recipe (sizes, token budgets), as disclosed.
- Tokens / param
127.012
Calculated: train.tokens / params.total
train.tokens divided by params.total.
- Tokens / active param (non-embedding)
2,979.18
Calculated: train.tokens / params.counted_active_non_embedding
train.tokens divided by params.counted_active_non_embedding, or by the stated params.active_non_embedding when there is no validated checkpoint count.
KV cache
- KV bytes / token
253,952 bytes
Calculated: kv.bytes_at_context / 131072 tokens; uniform BF16, payload only; quantization overhead excluded. Global KV: 62 × (2048 × 16/8) B/entry
Retained KV cache divided by context length, including bounded SWA caches and indexer keys. Exports use uniform BF16 at 131,072 tokens. The website can select uniform payload precision (no quantization overhead) or sourced component formats (including scales and documented padding). This is cache payload, not peak prefill memory or persistent prefix storage.
- Global KV bytes / token
253,952 bytes
Calculated: 253952 B / 1 tokens (Global KV); uniform BF16, payload only; quantization overhead excluded. Global KV: 62 × (2048 × 16/8) B/entry
Long-context global KV bytes per token, including indexer keys; excludes bounded SWA caches. Compression rates and cross-layer cache reuse are included. Exports use uniform BF16; the website's storage selector also applies here. This is the field to compare with global-KV figures in reports, using the matching storage recipe.
- KV bytes / token / B active
25,913 bytes
Calculated: kv.bytes_per_token (131072 tokens) / (params.active / 1e9); uniform BF16, payload only; quantization overhead excluded. Global KV: 62 × (2048 × 16/8) B/entry
kv.bytes_per_token divided by active parameters in billions (131,072 tokens in exports).
- KV at context / B active
3,396,530,260 bytes
Calculated: kv.bytes_at_context (131072 tokens) / (params.active / 1e9); uniform BF16, payload only; quantization overhead excluded. Global KV: 62 × (2048 × 16/8) B/entry
kv.bytes_at_context divided by active parameters in billions (131,072 tokens in exports).
- KV at context
33,285,996,544 bytes
Calculated: 253952 B × 131072 (Global KV); uniform BF16, payload only; quantization overhead excluded. Global KV: 62 × (2048 × 16/8) B/entry
Retained KV cache for one sequence at the selected context, including SWA windows and indexer keys. Exports use uniform BF16 at 131,072 tokens. Excludes recurrent state, compressor tail state, draft/MTP caches, temporary prefill tensors, allocator metadata and persistent prefix snapshots. Does not estimate peak prefill or total serving memory.
Evaluations
- AA Intelligence Index
23
Source: leaderboard · Artificial Analysis model page /models/minimax-m2-7, Wayback snapshot 2026-10-19
MiniMax-M2.7 scores 23 on the Artificial Analysis Intelligence Index
Variant: MiniMax-M2.7. Index v4.3.2.
Artificial Analysis Intelligence Index v4.3.2 of the post-trained model, from a dated Wayback snapshot of its Artificial Analysis page. The note names the variant (reasoning setting).