Mistral Small 4
Mistral AI · Mistral Small · open weights · multimodal (text stack modelled)
- MLA
- RoPE
- Partial RoPE
- Pre-norm
- MoE
- Shared expert
Facts and where they come from
| Released | 2026-01 | config.jsonconfig.jsonHugging Face repository creation date (api.createdAt) |
|---|---|---|
| Licence | apache-2.0 | config.jsonconfig.jsonREADME metadata: license |
| Total parameters | 119B | labmodel cardREADME: 119B parameters, with 6.5B activated per token |
| Active parameters | 6.5B | labmodel cardREADME: 6.5B activated |
| Context length | 256K tokens | labmodel cardREADME: 256k context length |
| Norm placement | pre | codemodelling codetransformers 5.18.0 / repo modelling code for mistral4: input_layernorm before attention, post_attention_layernorm before the MLP |
| Norm type | RMSNorm | codemodelling codetransformers 5.18.0 / repo modelling code for mistral4: input_layernorm before attention, post_attention_layernorm before the MLP |
| QK-norm | no | codemodelling codeno q/k normalisation in the attention block (MLA normalises its latent vectors, which is not QK-norm) |
| Positional encoding | RoPE on 50% of each head | config.jsonconfig.jsonqk_rope_head_dim / (qk_nope_head_dim + qk_rope_head_dim): decoupled RoPE |
| Parallel attention and MLP | no | codemodelling codetransformers 5.18.0 / repo modelling code for mistral4: input_layernorm before attention, post_attention_layernorm before the MLP |
Architecture, drawn from the data
MLA 32h, latent 256. Each column is one layer: its token mixer above, its feed-forward block below. Paler columns reuse another layer’s keys and values.
Modelled costs
From the cost model, batch size 1. Totals the lab states are in the table above; differences come from rounding, from what a lab counts, or from parts the model does not describe (listed on the about page).
| Parameters (modelled) | 119B |
|---|---|
| Active per token (modelled) | 6.63B |
| Without embeddings and output head | 118B total, 5.56B active |
| Published weights (Hugging Face count) | 119B |
| KV cache per token, BF16 (layers that grow with context) | 22.5 KiB |
| KV cache + state at 256K tokens, BF16 | 5.63 GiB |
| Decode FLOPs per token at 4K context | 14.6 GFLOP |
| Prefill FLOPs for a 4K prompt | 50.5 TFLOP |
KV cache against context
Every architecture field
| Field | Value | Source |
|---|---|---|
| d_model | 4,096 | config.jsonconfig.jsontext_config.hidden_size |
| vocab | 131,072 | config.jsonconfig.jsontext_config.vocab_size |
| tied_embeddings | false | config.jsonconfig.jsontext_config.tie_word_embeddings |
| mixers.mla.type | mla | codemodelling codemulti-head latent attention |
| mixers.mla.heads | 32 | config.jsonconfig.jsontext_config.num_attention_heads |
| mixers.mla.q_lora_rank | 1,024 | config.jsonconfig.jsontext_config.q_lora_rank |
| mixers.mla.kv_lora_rank | 256 | config.jsonconfig.jsontext_config.kv_lora_rank |
| mixers.mla.qk_nope | 64 | config.jsonconfig.jsontext_config.qk_nope_head_dim |
| mixers.mla.qk_rope | 64 | config.jsonconfig.jsontext_config.qk_rope_head_dim |
| mixers.mla.v_head_dim | 128 | config.jsonconfig.jsontext_config.v_head_dim |
| ffns.dense.type | dense | codemodelling codeMLP block |
| ffns.dense.d_ff | 12,288 | config.jsonconfig.jsontext_config.intermediate_size |
| ffns.dense.gated | true | codemodelling codeMLP: gated (SwiGLU/GeGLU) |
| ffns.moe.type | moe | codemodelling codeMoE block |
| ffns.moe.experts | 128 | config.jsonconfig.jsontext_config.n_routed_experts |
| ffns.moe.active | 4 | config.jsonconfig.jsontext_config.num_experts_per_tok |
| ffns.moe.d_expert | 2,048 | config.jsonconfig.jsontext_config.moe_intermediate_size |
| ffns.moe.gated | true | codemodelling codeexperts are gated MLPs |
| ffns.moe.shared | 1 | config.jsonconfig.jsontext_config.n_shared_experts |
| ffns.moe.d_shared | 2,048 | config.jsonconfig.jsontext_config.moe_intermediate_size |
| layout | 36× mla/moe | config.jsonconfig.jsontext_config.num_hidden_layers, first_k_dense_replace |
Sources
- config.json @ a11f36b
- model card
- modelling code · transformers 5.18.0 modelling code, or the model repository's own modelling file at the pinned revision
Listed in the LLM Architecture Gallery checklist as “Mistral Small 4 (119B)” (name only; see about).