SmolLM3 3B
Hugging Face · SmolLM · open weights
- GQA
- RoPE
- NoPE layers
- Pre-norm
Facts and where they come from
| Released | 2025-06 | config.jsonconfig.jsonHugging Face repository creation date (api.createdAt) |
|---|---|---|
| Licence | apache-2.0 | config.jsonconfig.jsonREADME metadata: license |
| Total parameters | 3B | labmodel cardREADME: SmolLM3 is a 3B parameter language model |
| Active parameters | not disclosed | not disclosed |
| Context length | 64K tokens | config.jsonconfig.jsonmax_position_embeddings |
| Norm placement | pre | codemodelling codetransformers 5.18.0 / repo modelling code for smollm3: input_layernorm before attention, post_attention_layernorm before the MLP |
| Norm type | RMSNorm | codemodelling codetransformers 5.18.0 / repo modelling code for smollm3: 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; every 4th layer has no RoPE | config.jsonconfig.jsonno_rope_layer_interval |
| Parallel attention and MLP | no | codemodelling codetransformers 5.18.0 / repo modelling code for smollm3: input_layernorm before attention, post_attention_layernorm before the MLP |
Architecture, drawn from the data
GQA 16q/4kv. 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) | 3.08B |
|---|---|
| Active per token (modelled) | 3.08B |
| Without embeddings and output head | 2.81B total, 2.81B active |
| Published weights (Hugging Face count) | 3.08B |
| KV cache per token, BF16 (layers that grow with context) | 72 KiB |
| KV cache + state at 64K tokens, BF16 | 4.5 GiB |
| Decode FLOPs per token at 4K context | 7.36 GFLOP |
| Prefill FLOPs for a 4K prompt | 25.5 TFLOP |
KV cache against context
Every architecture field
| Field | Value | Source |
|---|---|---|
| d_model | 2,048 | config.jsonconfig.jsonhidden_size |
| vocab | 128,256 | config.jsonconfig.jsonvocab_size |
| tied_embeddings | true | config.jsonconfig.jsontie_word_embeddings |
| mixers.full.type | attn | codemodelling codeattention block |
| mixers.full.heads | 16 | config.jsonconfig.jsonnum_attention_heads |
| mixers.full.kv_heads | 4 | config.jsonconfig.jsonnum_key_value_heads |
| mixers.full.head_dim | 128 | codemodelling codetransformers 5.18.0: head_dim = hidden_size / num_attention_heads |
| ffns.dense.type | dense | codemodelling codeMLP block |
| ffns.dense.d_ff | 11,008 | config.jsonconfig.jsonintermediate_size |
| ffns.dense.gated | true | codemodelling codeMLP: gated (SwiGLU/GeGLU) |
| layout | 36× full/dense | config.jsonconfig.jsonnum_hidden_layers |
Sources
- config.json @ d78a42f
- model card
- announcement
- 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 “SmolLM3 (3B)” (name only; see about).