LFM2.5 8B-A1B
Liquid AI · LFM2 · open weights
- GQA
- Short convolution
- Hybrid
- RoPE
- Pre-norm
- QK-norm
- MoE
- Dense first layers
Facts and where they come from
| Released | 2026-05 | config.jsonconfig.jsonHugging Face repository creation date (api.createdAt) |
|---|---|---|
| Licence | other | config.jsonconfig.jsonREADME metadata: license |
| Total parameters | 8.3B | labmodel cardREADME: 8.3B total / 1.5B active |
| Active parameters | 1.5B | labmodel cardREADME: 1.5B active |
| Context length | 125K tokens | config.jsonconfig.jsonmax_position_embeddings |
| Norm placement | pre | codemodelling codetransformers 5.18.0 lfm2_moe: operator_norm and ffn_norm |
| Norm type | RMSNorm | codemodelling codetransformers 5.18.0 lfm2_moe: operator_norm and ffn_norm |
| QK-norm | yes | codemodelling codetransformers 5.18.0 lfm2_moe: q_layernorm and k_layernorm |
| Positional encoding | RoPE | codemodelling coderotary on the full head (default) |
| Parallel attention and MLP | no | codemodelling codetransformers 5.18.0 lfm2_moe: operator_norm and ffn_norm |
Architecture, drawn from the data
18× Short convolution + 6× 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) | 8.47B |
|---|---|
| Active per token (modelled) | 1.69B |
| Without embeddings and output head | 8.21B total, 1.42B active |
| Published weights (Hugging Face count) | 8.47B |
| KV cache per token, BF16 (layers that grow with context) | 12 KiB |
| KV cache + state at 125K tokens, BF16 | 1.46 GiB |
| Decode FLOPs per token at 4K context | 3.57 GFLOP |
| Prefill FLOPs for a 4K prompt | 12.1 TFLOP |
KV cache against context
Every architecture field
| Field | Value | Source |
|---|---|---|
| d_model | 2,048 | config.jsonconfig.jsonhidden_size |
| vocab | 128,000 | config.jsonconfig.jsonvocab_size |
| tied_embeddings | true | codemodelling codetransformers 5.18.0 lfm2_moe: tie_word_embeddings default true |
| mixers.full.type | attn | codemodelling codeattention block |
| mixers.full.heads | 32 | config.jsonconfig.jsonnum_attention_heads |
| mixers.full.kv_heads | 8 | config.jsonconfig.jsonnum_key_value_heads |
| mixers.full.head_dim | 64 | codemodelling codetransformers 5.18.0: head_dim = hidden_size / num_attention_heads |
| mixers.full.qk_norm | true | codemodelling codetransformers 5.18.0 lfm2: q_layernorm and k_layernorm |
| mixers.conv.type | conv | codemodelling codegated short convolution |
| mixers.conv.kernel | 3 | config.jsonconfig.jsonconv_L_cache |
| ffns.dense.type | dense | codemodelling codeMLP block |
| ffns.dense.d_ff | 7,168 | config.jsonconfig.jsonintermediate_size |
| ffns.dense.gated | true | codemodelling codeMLP: gated (SwiGLU/GeGLU) |
| ffns.moe.type | moe | codemodelling codeMoE block |
| ffns.moe.experts | 32 | config.jsonconfig.jsonnum_experts |
| ffns.moe.active | 4 | config.jsonconfig.jsonnum_experts_per_tok |
| ffns.moe.d_expert | 1,792 | config.jsonconfig.jsonmoe_intermediate_size |
| ffns.moe.gated | true | codemodelling codeexperts are gated MLPs |
| layout | 2× conv/dense · 1× full/moe · 3× conv/moe · 1× full/moe · 3× conv/moe · 1× full/moe · 3× conv/moe · 1× full/moe · 3× conv/moe · 1× full/moe · 2× conv/moe · 1× full/moe · 2× conv/moe | config.jsonconfig.jsonlayer_types |
Sources
- config.json @ 5dd2260
- 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 “LFM2.5 (8B-A1B)” (name only; see about).