Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Liquid AI · Architecture map

LFM3

One tri-hybrid backbone for text, vision, audio, omni and typed decisions: seven-token convolutions, local attention and global attention.

LFM3, 2026-10-27 · LFM release timeline

Inside LFM3

Size
Parameters
1.73B
Layers
24
Width
2,048
Mixer
Hybrid
Select a component to explore it. Layer colours match the execution-order strip.
The complete LFM3 architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel. Six global layers keep full-prefix KV; five local layers keep 256-token KV windows. Thirteen convolution layers keep fixed-width seven-token buffers. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup128,0002,048Input token vectorsCL2,048Execution order · 24 layersLayer 1: Short-convolution layersLayer 2: Short-convolution layersLayer 3: Global layersLayer 4: Short-convolution layersLayer 5: Sliding-window layersLayer 6: Short-convolution layersLayer 7: Global layersLayer 8: Short-convolution layersLayer 9: Sliding-window layersLayer 10: Short-convolution layersLayer 11: Global layersLayer 12: Short-convolution layersLayer 13: Sliding-window layersLayer 14: Short-convolution layersLayer 15: Global layersLayer 16: Short-convolution layersLayer 17: Sliding-window layersLayer 18: Short-convolution layersLayer 19: Global layersLayer 20: Short-convolution layersLayer 21: Sliding-window layersLayer 22: Short-convolution layersLayer 23: Global layersLayer 24: Short-convolution layersShort-convolution layers · matches this colour in the execution-order barShort-convolution layersShort-convolution layers · 13 repetitions13 layers · one layer shown13RMSNorm before this operation.RMSNormGated short conv: Short-convolution layers.Gated short convNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Short-convolution layers.SwiGLUNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +Layer type · execution order aboveSliding-window layers · matches this colour in the execution-order barSliding-window layersSliding-window layers · 5 repetitions5 layers · one layer shown5RMSNorm before this operation.RMSNormGated GQA: Sliding-window layers.Gated GQARotate query and key position components before attention scores; values are unchanged. Sliding-window layers.RoPENormalise queries and keys before attention scores. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.QK-normSliding-window attention over 256 tokens.256Normalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Sliding-window layers.SwiGLUNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +Layer type · execution order aboveGlobal layers · matches this colour in the execution-order barGlobal layersGlobal layers · 6 repetitions6 layers · one layer shown6RMSNorm before this operation.RMSNormGated GQA: Global layers.Gated GQARotate query and key position components before attention scores; values are unchanged. Global layers.Partial RoPENormalise queries and keys before attention scores. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.QK-normNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Global layers.SwiGLUNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +Layer type · execution order aboveAfter all 24 layer executionsResidual streamLast columnCL2,048Final RMSNormReuses the embedding table, transposed.Tied output weights2,048128,000Vocabulary scoresSoftmax128,000Next-token probabilities
Inside grouped-query attention · Sliding-window layers
4 query heads per group × 4 K/V groups.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

LFM3: Sliding-window layers · grouped-query attention16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel. Six global layers keep full-prefix KV; five local layers keep 256-token KV windows. Thirteen convolution layers keep fixed-width seven-token buffers.4 KV groups; the front face shows one representative.4 KV groups4 heads / group; the front face shows one representative.4 heads / groupAttention input. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,048CLWq. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wq2,048128Wk. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wk2,048128Wv. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wv2,048128RMSNorm. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.RMSNormRoPE. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.RoPERMSNorm. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.RMSNormRoPE. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.RoPEK cache. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128≤ 256V cache. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128≤ 256Q context. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Window 256CLCL×. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.×Wg. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wg2,0481σ. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.σ×. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.×Joined heads. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.16Wo. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wo2,0482,048Attention output. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,048CL
Inside grouped-query attention · Global layers
4 query heads per group × 4 K/V groups.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

LFM3: Global layers · grouped-query attention16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel. Six global layers keep full-prefix KV; five local layers keep 256-token KV windows. Thirteen convolution layers keep fixed-width seven-token buffers.4 KV groups; the front face shows one representative.4 KV groups4 heads / group; the front face shows one representative.4 heads / groupAttention input. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,048CLWq. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wq2,048128Wk. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wk2,048128Wv. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wv2,048128RMSNorm. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.RMSNormRoPE 64. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.RoPE 64RMSNorm. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.RMSNormRoPE 64. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.RoPE 64K cache. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.CLCL×. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.×Wg. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wg2,0481σ. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.σ×. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.×Joined heads. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.16Wo. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Wo2,0482,048Attention output. 16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,048CL
Model-specific details
Short-convolution layers · 13 repetitions
Short-convolution layers.
Sliding-window layers · 5 repetitions
Sliding-window layers.
Global layers · 6 repetitions
Global layers.
Attention and positions
16 query heads share four KV heads, width 128. Head-wise Q/K RMSNorm precedes RoPE. A learned sigmoid gate scales each output head. Local layers rotate all coordinates; global layers rotate 64 of 128. Short convolutions use a seven-token kernel.
Memory
Six global layers keep full-prefix KV; five local layers keep 256-token KV windows. Thirteen convolution layers keep fixed-width seven-token buffers.

One backbone, different inputs and outputs

Text supports 262,144 positions; Vision and d1 use 128,000-token windows. The Audio and Omni model cards specify 32K, below their trunk configuration’s limit. The picker uses those card limits.

The base text checkpoint and quantised releases share these layouts. All weights use LFM Open License v1.0.

How it scores

Developer reported

Checkpoint / sizeResultEvaluation
LFM3-1.7BText 1.7B63.37%GPQA Diamond Liquid LFM3 launch runLiquid AI BF16 run; temperature 0.6, top_p 0.95; full model context
LFM3-1.7BText 1.7B43.4%SWE-bench Verified Liquid LFM3 launch · OpenCodeLiquid AI OpenCode run; up to 250 turns
LFM3-1.7BText 1.7B71.39%BFCL 4 · Liquid LFM3 launchLiquid AI BF16 run; greedy, up to 32768 output tokens
d1-2Bd1 2B51.1AA Index 4.3.2Liquid AI evaluation; shared d1 comparison items and scoring
d1-Omni-2Bd1 Omni 2B49AA Index 4.3.2Liquid AI evaluation; shared d1 comparison items and scoring

Explore the components

Sources for this map