Mistral Small 3.1
Mistral AI · Mistral Small · open weights · multimodal (text stack modelled)
- GQA
- RoPE
- Pre-norm
Facts and where they come from
| Released | 2025-03 | config.jsonconfig.jsonHugging Face repository creation date (api.createdAt) |
|---|---|---|
| Licence | apache-2.0 | config.jsonconfig.jsonREADME metadata: license |
| Total parameters | 24B | labmodel cardmodel name Mistral-Small-3.1-24B |
| Active parameters | not disclosed | not disclosed |
| Context length | 128K tokens | config.jsonconfig.jsontext_config.max_position_embeddings |
| Norm placement | pre | codemodelling codetransformers 5.18.0 / repo modelling code for mistral: input_layernorm before attention, post_attention_layernorm before the MLP |
| Norm type | RMSNorm | codemodelling codetransformers 5.18.0 / repo modelling code for mistral: input_layernorm before attention, post_attention_layernorm before the MLP |
| QK-norm | no | codemodelling codeno q/k normalisation in the attention block |
| Positional encoding | RoPE | codemodelling coderotary on the full head (default) |
| Parallel attention and MLP | no | codemodelling codetransformers 5.18.0 / repo modelling code for mistral: input_layernorm before attention, post_attention_layernorm before the MLP |
Architecture, drawn from the data
GQA 32q/8kv. 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) | 23.6B |
|---|---|
| Active per token (modelled) | 23.6B |
| Without embeddings and output head | 22.2B total, 22.2B active |
| Published weights (Hugging Face count) | 24B |
| KV cache per token, BF16 (layers that grow with context) | 160 KiB |
| KV cache + state at 128K tokens, BF16 | 20 GiB |
| Decode FLOPs per token at 4K context | 48.5 GFLOP |
| Prefill FLOPs for a 4K prompt | 188 TFLOP |
KV cache against context
Every architecture field
| Field | Value | Source |
|---|---|---|
| d_model | 5,120 | config.jsonconfig.jsontext_config.hidden_size |
| vocab | 131,072 | config.jsonconfig.jsontext_config.vocab_size |
| tied_embeddings | false | codemodelling codetransformers 5.18.0: PretrainedConfig.tie_word_embeddings defaultnot in config |
| mixers.full.type | attn | codemodelling codeattention block |
| mixers.full.heads | 32 | config.jsonconfig.jsontext_config.num_attention_heads |
| mixers.full.kv_heads | 8 | config.jsonconfig.jsontext_config.num_key_value_heads |
| mixers.full.head_dim | 128 | config.jsonconfig.jsontext_config.head_dim |
| ffns.dense.type | dense | codemodelling codeMLP block |
| ffns.dense.d_ff | 32,768 | config.jsonconfig.jsontext_config.intermediate_size |
| ffns.dense.gated | true | codemodelling codeMLP: gated (SwiGLU/GeGLU) |
| layout | 40× full/dense | config.jsonconfig.jsontext_config.num_hidden_layers |
Sources
- config.json @ ba6496e
- 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 3.1 (24B)” (name only; see about).