Model architectures

The field guide β€” every LLM architecture type with diagrams, verified arXiv references, and a family atlas across open + proprietary models.

A field guide to how LLMs are actually built β€” every architecture type with a diagram, the papers that defined it, and which models (open and proprietary, version by version) use it. Every arXiv link verified against arxiv.org. Proprietary entries record only what's publicly disclosed β€” β€œundisclosed” is an honest answer here.
The lineage β€” how today’s architectures branched from one 2017 paper
Transformer 2017 Β· enc-dec Encoder-only BERT Β· 2018 Enc-Dec T5 Β· 2019 Decoder-only GPT Β· 2018 Dense recipe Llama Β· RoPE+GQA Sparse MoE Switchβ†’Mixtralβ†’DS-V3 SSM / hybrid Mamba Β· Jamba Multimodal adapters β†’ native Frontier LLMs GPTΒ·ClaudeΒ·Gemini… New directions diffusion Β· 1-bit β†’ today
Foundations (2017–2020) β€” the three transformer body plans, and why decoder-only won
Original Encoder-Decoder Transformer (2017)
enc-dec

The 2017 seq2seq Transformer: a bidirectional encoder reads the source, a causal decoder writes the target via cross-attention.

source tokens (fully visible) bi-directional self-attention FFN Γ— N encoder output target tokens (causal) causal self-attn cross-attention FFN Γ— N output tokens K,V from encoder ENCODER DECODER

The encoder stack applies full bidirectional self-attention over the input sequence to produce contextual representations in one parallel pass. The decoder stack autoregressively generates the output: each decoder layer runs causal (masked) self-attention over tokens generated so far, then cross-attention where decoder queries attend over the encoder's output keys/values, then a feed-forward block. Sinusoidal positional encodings inject order; multi-head attention lets different heads specialize. This replaced recurrence entirely, making training parallelizable across sequence positions and unlocking the scaling that all later LLMs build on.

Scaled dot-product multi-head attention replaces recurrence and convolutionCross-attention: decoder queries attend to encoder outputs each layerCausal masking in decoder enables parallel teacher-forced trainingSinusoidal positional encodings inject token order without recurrenceResidual + LayerNorm + FFN block pattern that every LLM still uses
βš– Buys: parallel training, strong conditional generation (translation/summarization). Costs: two stacks + cross-attention to maintain; decoder-only later proved simpler to scale β€” one stream, one objective, every token supervised, natural multi-turn chat without re-encoding.
Who uses it
Helsinki-NLP OPUS-MT translation models (U. Helsinki, built on the Marian NMT framework)M2M-100 (Meta, 2020)NLLB-200 (Meta, 2022)Whisper (OpenAI, 2022 β€” encoder-decoder for speech-to-text)Google's original WMT'14 EN-DE/EN-FR models (configurations disclosed in the paper; no official open-weights release of the paper's trained models)Google Translate production models (a 2020 Google AI blog disclosed a hybrid Transformer-encoder + RNN-decoder architecture at that time; current architecture undisclosed)
Papers & references (2)
arXiv:1706.03762 Β· Attention Is All You Need (2017)
Defines the Transformer; every architecture in this guide is a subset or variant of it
arXiv:2204.05832 Β· What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization? (2022)
Systematic comparison: causal decoder-only pretraining generalizes best zero-shot after purely self-supervised pretraining (with multitask finetuning, the paper found non-causal/enc-dec masked-LM models best) β€” key evidence in the decoder-only vs enc-dec debate
Encoder-Only Masked LM (BERT lineage)
encoder-only

Bidirectional encoder pretrained by masking tokens; still the workhorse for embeddings, rerankers, and classifiers, revived by ModernBERT.

tokens (15% [MASK]ed) LayerNorm Bi-directional Self-Attention no causal mask LayerNorm FFN (GELU) + + masked-token predictions / embeddingsΓ— 12–24 layers

Take only the Transformer's encoder stack, so every token attends to every other token in both directions, and pretrain with masked language modeling: randomly mask ~15% of tokens and predict them from full bidirectional context. The result is a deep contextual representation of the whole input in a single parallel forward pass β€” no autoregressive loop. Downstream you attach a small head (a classifier on [CLS], a token tagger, or a pooling layer for embeddings) and fine-tune. RoBERTa showed BERT was undertrained (more data/steps, dynamic masking, drop NSP); DeBERTa added disentangled content/position attention; ModernBERT (2024) retrofitted the recipe with RoPE, GeGLU, alternating local/global attention, Flash Attention, 8k context, and 2T training tokens.

Masked LM objective: predict hidden tokens from full bidirectional contextWhole input encoded in ONE forward pass β€” no token-by-token generation loopPretrain-once, fine-tune-cheaply transfer recipe that started the LLM eraRoBERTa: same architecture, just trained longer/better β€” recipe > noveltyDeBERTa: disentangled content vs position attention beats absolute embedsModernBERT 2024: RoPE, 8k ctx, Flash Attention β€” encoders are not deadEncoders still win where you score/embed text, not generate it
βš– Buys: cheapest, strongest per-FLOP text understanding β€” embeddings, cross-encoder rerankers, classifiers, NER run in one pass with full bidirectional context. Costs: cannot generate text natively, and masked LM supervises only ~15% of tokens per step, so the objective scales worse than next-token prediction β€” why it lost the generative race.
Who uses it
BERT base/large (Google, 2018)RoBERTa (Meta, 2019)DeBERTa / DeBERTaV3 (Microsoft, 2020-2021)ModernBERT base/large (Answer.AI + LightOn, 2024)E5 embedding family (Microsoft)BGE embedding/reranker family (BAAI)all-MiniLM / sentence-transformers modelsGoogle Search ranking uses BERT (disclosed, Google 2019 announcement)OpenAI text-embedding-3 (architecture undisclosed)Cohere Embed & Rerank models (architecture undisclosed)Voyage AI embeddings/rerankers (architecture undisclosed)
Papers & references (4)
arXiv:1810.04805 Β· BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding (2018)
Founded masked-LM pretraining + fine-tuning; dominated NLU benchmarks overnight
arXiv:1907.11692 Β· RoBERTa: A Robustly Optimized BERT Pretraining Approach (2019)
Showed BERT was significantly undertrained; better recipe, same architecture
arXiv:2006.03654 Β· DeBERTa: Decoding-enhanced BERT with Disentangled Attention (2020)
Disentangled attention + enhanced mask decoder; long-time leaderboard king (DeBERTaV3 still a default classifier backbone)
arXiv:2412.13663 Β· Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference (2024)
ModernBERT: ports decoder-era tricks (RoPE, GeGLU, alternating attention) back to encoders; SOTA speed/quality for retrieval and classification
Encoder-Decoder Text-to-Text (T5 lineage)
enc-dec

T5/BART framed every NLP task as text-in, text-out with a seq2seq Transformer; Flan-T5, UL2, and 2025's T5Gemma keep the line alive.

Keep both Transformer stacks but pretrain on denoising: T5 masks contiguous spans and trains the decoder to emit the missing spans (span corruption), casting every task β€” translation, summarization, QA, classification β€” as 'text in, text out' with a task prefix. BART instead corrupts whole documents (deletion, shuffling, infilling) and reconstructs them, which transfers especially well to summarization. UL2 unified the objectives as mixture-of-denoisers (short spans, long spans, prefix-LM) switchable by a mode token. The 2025 revival, T5Gemma (paper title 'Encoder-Decoder Gemma'), adapts pretrained decoder-only Gemma 2 checkpoints into encoder-decoder form via UL2/prefix-LM continued pretraining, showing better quality-per-inference-FLOP than the source decoder-only models on input-heavy tasks.

Every task is text-to-text: one model, one loss, task named in the promptSpan corruption (T5) / denoising reconstruction (BART) as pretrainingUL2 mixture-of-denoisers: one model, R/S/X objectives via mode tokensFlan instruction tuning on 1.8k tasks made T5 a zero-shot generalistEncoder cost paid ONCE per input; cheap decoder loop for short outputsT5Gemma 2025: adapt decoder-only Gemma 2 into enc-dec via UL2 β€” it worksStill the shape of choice for translation, summarization, small on-device seq2seq
βš– Buys: separate input/output budgets β€” encode a long document once, decode a short answer cheaply; best quality-per-inference-FLOP on translation/summarization (T5Gemma's pitch). Costs: cross-attention params and pipeline complexity, multi-turn chat forces re-encoding the growing context, and denoising objectives supervise fewer tokens than causal LM β€” so decoder-only, with its single stream, full-token supervision, emergent in-context learning, and simpler serving, won the generative-scaling race (Wang et al. 2022 backs the zero-shot-after-pretraining part empirically).
Who uses it
T5 / T5 v1.1 (Google, 2019-2020)mT5, ByT5 (Google)BART-large, mBART (Meta, 2019-2020)Flan-T5 small through XXL 11B (Google, 2022)UL2 20B and Flan-UL2 20B (Google, 2022-2023)MADLAD-400 translation models, T5-based (Google, 2023)T5Gemma 2B/9B pairings incl. 9B-2B (Google, 2025)Google Translate production stack (a 2020 Google AI blog disclosed a hybrid Transformer-encoder + RNN-decoder architecture at that time; current architecture undisclosed)Gemini-era internal distillation: Gemma 2 was trained with knowledge distillation from larger models (disclosed in Gemma 2 report); whether Google distills Gemini into internal encoder-decoders is undisclosed
Papers & references (7)
arXiv:1910.10683 Β· Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer (2019)
T5: the text-to-text framing plus a massive ablation of objectives, architectures, and scaling
arXiv:1910.13461 Β· BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension (2019)
Document-level denoising seq2seq; long the default open summarization model
arXiv:2109.01652 Β· Finetuned Language Models Are Zero-Shot Learners (2021)
FLAN: instruction tuning as a technique β€” multi-task finetuning unlocks zero-shot following
arXiv:2210.11416 Β· Scaling Instruction-Finetuned Language Models (2022)
Flan-T5: scaled instruction tuning (1.8k tasks + CoT); Flan-T5-XXL became the workhorse open seq2seq model
arXiv:2205.05131 Β· UL2: Unifying Language Learning Paradigms (2022)
Mixture-of-denoisers objective bridging masked-span and causal LM; the recipe T5Gemma later reuses for adaptation
arXiv:2504.06225 Β· Encoder-Decoder Gemma: Improving the Quality-Efficiency Trade-Off via Adaptation (2025)
The T5Gemma paper: adapts decoder-only Gemma 2 into encoder-decoder models, beating same-size decoder-only on quality-per-FLOP
report β†— Β· T5Gemma: A new collection of encoder-decoder Gemma models (2025)
Official Google release blog for T5Gemma open-weights checkpoints (verified HTTP 200, title matched)
Original GPT-style Decoder-Only Transformer
dense decoder

The 2018-2020 OpenAI recipe: causal decoder stack with learned absolute positions, LayerNorm, GELU MLPs, standard multi-head attention.

tokens + learned positions LayerNorm Masked Multi-Head Attention all heads cached LayerNorm MLP (4d, GELU) + + next-token logitsΓ— 12–96 layers

Token IDs are embedded via a BPE vocabulary and summed with a learned absolute position embedding table, then pushed through N identical blocks: causally-masked multi-head self-attention followed by a 4x-width two-layer GELU MLP, each wrapped in a residual connection with LayerNorm. GPT-1 placed LayerNorm after each sublayer (post-norm, as in the 2017 Transformer decoder minus cross-attention); GPT-2 moved it before each sublayer and added a final LayerNorm, which is what made 48+ layer training stable. A final LayerNorm feeds an unembedding projection (weight-tied to the input embedding) producing next-token logits; the entire training objective is next-token prediction. GPT-3 kept this recipe at 175B, alternating dense and locally-banded sparse attention layers.

Decoder-only: drop the encoder and cross-attention; causal mask turns it generativeLearned absolute position embeddings added to token embeddings (context = table size)GPT-2 moved LayerNorm to pre-norm + added final LN, stabilizing deep stacksGELU activation in a 4x-width 2-layer MLPWeight-tied embedding/unembedding; BPE tokenizerSame recipe scaled 117M -> 175B; GPT-3 alternates dense and banded sparse attention
βš– Buys simplicity and a battle-tested training recipe; costs context length (learned position table is fixed) and inference memory (full MHA KV cache) β€” both fixed by the Llama recipe.
Who uses it
GPT-1 117M (OpenAI, weights released 2018)GPT-2 124M-1.5B (OpenAI, weights released 2019)OPT 125M-175B (Meta, 2022; GPT-3 replica with learned positions, ReLU instead of GELU)Cerebras-GPT 111M-13B (Cerebras, 2023; GPT-3 architecture)BLOOM 176B (BigScience, 2022; same skeleton but ALiBi positions β€” transitional variant)GPT-3 175B 'davinci' (OpenAI) (disclosed in the GPT-3 paper)Megatron-Turing NLG 530B (Microsoft/NVIDIA) (disclosed)Jurassic-1 178B (AI21 Labs) (disclosed)GPT-3.5 family (davinci-002/003, GPT-3.5-turbo) and later OpenAI models (undisclosed)
Papers & references (4)
arXiv:1706.03762 Β· Attention Is All You Need (2017)
Defines the Transformer block; GPT is its decoder half with cross-attention removed
report β†— Β· Improving Language Understanding by Generative Pre-Training (GPT-1) (2018)
First decoder-only generative-pretraining recipe: post-LN, learned positions, GELU
report β†— Β· Language Models are Unsupervised Multitask Learners (GPT-2) (2019)
Pre-norm reordering + final LN, scaled to 1.5B; the canonical open-weights variant
arXiv:2005.14165 Β· Language Models are Few-Shot Learners (GPT-3) (2020)
Same architecture at 175B with alternating banded sparse attention; in-context learning
The dense standard β€” the recipe almost every modern LLM starts from
Modern 'Llama recipe' Dense Transformer
dense decoder

The post-2023 dense standard: pre-RMSNorm, rotary positions (RoPE), SwiGLU gated MLPs, grouped-query attention, no bias terms.

token embeddings (no position add) RMSNorm Self-Attention GQA + RoPE RMSNorm SwiGLU FFN β‰ˆ8/3Β·d hidden + + next-token logitsΓ— 16–126 layers

Keeps the GPT causal-decoder skeleton but swaps every component: RMSNorm (rescale by root-mean-square only, no mean-centering or bias) is applied before each sublayer; positions are injected inside attention by rotating query/key vectors with position-dependent angles (RoPE), giving relative encoding and enabling long-context extension via theta rescaling. The MLP becomes SwiGLU β€” SiLU(gate_proj(x)) * up_proj(x) fed to down_proj, with hidden width ~8/3Β·d to hold parameter count. Attention uses grouped-query attention: many query heads share a small set of K/V heads, shrinking the KV cache several-fold with near-MHA quality; linear layers drop bias terms. Llama 1 established pre-RMSNorm+RoPE+SwiGLU (still MHA); Llama 2 70B and Mistral 7B added GQA; Llama 3 applied GQA at every size with a 128K vocab and RoPE theta 500k.

Pre-RMSNorm before every sublayer: RMS-only rescaling, no mean/bias, cheap and stableRoPE: rotate Q/K by position angle β€” relative encoding; long context via theta scalingSwiGLU gated MLP (~8/3x hidden) beats ReLU/GELU at equal parameter countGQA: query-head groups share K/V heads β€” near-MHA quality, several-fold smaller KV cacheNo bias terms in linear layers; large vocab, often untied embeddings at scaleVariants: Mistral sliding-window attn; Gemma GeGLU + local/global layers; Qwen3 QK-norm
βš– Buys longer usable context (RoPE), cheaper inference (GQA KV cache), and better quality-per-FLOP (SwiGLU, RMSNorm); costs a slightly more complex block, and dense scaling itself is now yielding to sparse MoE at the frontier.
Who uses it
LLaMA 7B-65B (Meta)Llama 2 7B-70B (Meta)Llama 3 / 3.1 / 3.2 / 3.3, 1B-405B (Meta)Mistral 7B v0.1-0.3, Mistral Small / Small 3 (Mistral AI)Qwen2 / Qwen2.5 / Qwen3 dense models 0.5B-72B (Alibaba)Gemma 1 / 2 / 3 (Google; GeGLU variant with local-global attention in 2/3)Phi-3 / Phi-3.5 / Phi-4 (Microsoft)DeepSeek LLM 7B / 67B (DeepSeek, dense pre-MoE models)Yi-6B / Yi-34B (01.AI)OLMo 2 (Allen Institute for AI; recipe variant β€” places RMSNorm after each sublayer, adds QK-norm)SmolLM2 (Hugging Face)TinyLlama 1.1BApple on-device foundation model ~3B: RMSNorm, GQA, RoPE, SwiGLU (disclosed, arXiv 2407.21075)Mistral Large / Medium (undisclosed; open siblings use this recipe)GPT-4/4o, Claude, Gemini: architecture undisclosed (GPT-4 reported MoE, undisclosed)
Papers & references (10)
arXiv:2302.13971 Β· LLaMA: Open and Efficient Foundation Language Models (2023)
Assembled the recipe (pre-RMSNorm + RoPE + SwiGLU) and made it the open standard
arXiv:2307.09288 Β· Llama 2: Open Foundation and Fine-Tuned Chat Models (2023)
Added GQA (at 70B) and 4K context to the recipe
arXiv:2407.21783 Β· The Llama 3 Herd of Models (2024)
GQA at all sizes, 128K vocab, RoPE theta 500k, scaled to dense 405B
arXiv:2104.09864 Β· RoFormer: Enhanced Transformer with Rotary Position Embedding (2021)
Introduces RoPE, the position mechanism of the entire lineage
arXiv:2002.05202 Β· GLU Variants Improve Transformer (2020)
Shazeer's SwiGLU/GeGLU gated MLPs, adopted verbatim by Llama (SwiGLU) and Gemma (GeGLU)
arXiv:1910.07467 Β· Root Mean Square Layer Normalization (2019)
RMSNorm: LayerNorm minus mean-centering and bias; the lineage's normalizer
arXiv:2305.13245 Β· GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints (2023)
Grouped-query attention: the KV-cache compression standard of the recipe
arXiv:2310.06825 Β· Mistral 7B (2023)
Llama recipe + GQA + sliding-window attention; proved 7B could beat Llama 2 13B
arXiv:2403.08295 Β· Gemma: Open Models Based on Gemini Research and Technology (2024)
Google's variant of the recipe: GeGLU activation, RoPE, RMSNorm (MQA in 2B)
arXiv:2404.14219 Β· Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone (2024)
States phi-3-mini uses a Llama-2-similar block structure; data-quality-first scaling
Attention mechanisms β€” the sub-block that decides serving cost and context length
MHA β†’ MQA β†’ GQA (KV-head sharing)
dense decoder

Share key/value heads across query heads β€” same attention math, 8-64x smaller KV cache for fast batched decoding.

MHA Q KV KV cache: 8/8 heads each Q head has its own K,V MQA Q KV KV cache: 1/8 heads all Q heads share one K,V GQA Q KV KV cache: 2/8 heads Q heads grouped per K,V MLA Q latent c_KV cache β‰ͺ 1 head-pair K,V decompressed from latent what sits in the KV cache per token β€” the memory that dominates long-context serving MHA (all heads) β†’ MQA (1) β†’ GQA (groups) β†’ MLA (compressed latent)

In multi-head attention (MHA) every one of the h query heads has its own K and V head, so the decode-time KV cache costs 2 x n_layers x n_kv_heads x d_head x bytes per token β€” for a Llama-2-70B-shaped model (80 layers, 64 heads, d_head 128, fp16) that is ~2.6 MB per token, which dominates GPU memory and bandwidth at long context and large batch. MQA (Shazeer 2019) keeps h query heads but a single shared K/V head, cutting the cache by h-fold (~41 KB/token in the same config) at some quality cost. GQA interpolates: query heads are partitioned into g groups, each sharing one KV head (Llama 2 70B uses g=8, ~0.33 MB/token), recovering near-MHA quality; the GQA paper also showed an existing MHA checkpoint can be converted by mean-pooling its KV heads and uptraining with ~5% of original compute.

KV cache/token = 2 x layers x kv_heads x d_head x bytes β€” kv_heads is the only free leverMQA: 1 shared KV head, h-fold cache cut, measurable quality dipGQA: g groups of query heads share KV heads β€” near-MHA quality, near-MQA speedUptrain from MHA checkpoints by mean-pooling KV heads (~5% extra compute)Decode is memory-bandwidth-bound: smaller cache = bigger batches + faster tokens
βš– Buys 8-64x smaller KV cache and faster batched decode; costs quality at the MQA extreme and requires (up)training β€” not a drop-in inference trick.
Who uses it
Llama 2 70B / Llama 3.x (Meta) β€” GQA-8Mistral 7B (Mistral AI) β€” GQA-8Falcon 7B (TII) β€” MQA (Falcon 40B uses 8 KV heads, i.e. GQA-8)StarCoder (BigCode) β€” MQAQwen2/2.5 (Alibaba) β€” GQAGemma 2 / Gemma 3 (Google) β€” GQAgpt-oss-120b/20b (OpenAI) β€” GQA-8PaLM 540B (Google) β€” MQA (disclosed)Character.AI production models β€” MQA (disclosed in their inference blog)GPT-4 (OpenAI) β€” MQA-family (reported, undisclosed)Claude, Gemini, GPT-5 β€” attention head config (undisclosed)
Papers & references (3)
arXiv:1706.03762 Β· Attention Is All You Need (2017)
Defines the MHA baseline every variant here modifies
arXiv:1911.02150 Β· Fast Transformer Decoding: One Write-Head is All You Need (2019)
Shazeer's MQA paper β€” identifies KV-cache bandwidth as the decode bottleneck
arXiv:2305.13245 Β· GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints (2023)
Introduces grouped-query attention plus cheap uptraining from MHA checkpoints
Multi-head Latent Attention (MLA)
dense decoder

Compress each token's K/V into one small latent vector, reconstruct full heads on the fly β€” ~93% KV-cache cut without losing head diversity.

Instead of caching per-head keys and values, a learned down-projection compresses the token's hidden state into a single latent c_KV (DeepSeek-V2: 512 dims) plus a small decoupled RoPE key (64 dims) β€” only ~576 floats per token per layer are cached, versus 2 x 128 heads x 128 dims = 32,768 for equivalent MHA (~57x smaller per layer; DeepSeek reports 93.3% total KV reduction, comparable to GQA with just 2.25 groups). At attention time, up-projection matrices reconstruct all 128 per-head K/V β€” and because these are linear, they can be absorbed into the query and output projections so inference attends over the latent directly. The RoPE path must be decoupled because rotary position rotation does not commute with the low-rank compression.

Low-rank joint K/V compression: cache one 576-d latent, not 32,768 floats/layerUp-projections absorbed into W_Q/W_O β€” no reconstruction cost at inferenceDecoupled RoPE key path: position info kept outside the compressed latentBeats GQA at equal cache size because head diversity is preservedDeepSeek-V2: 93.3% KV cut, 5.76x claimed generation throughput gain
βš– Buys GQA-beating quality at a fraction of the cache; costs implementation complexity (decoupled RoPE, matrix absorption) and must be trained in from scratch.
Who uses it
DeepSeek-V2 (DeepSeek)DeepSeek-V3 / R1 (DeepSeek)Kimi K2 1T (Moonshot AI) β€” DeepSeek-style MLANone disclosed β€” MLA adoption outside the DeepSeek lineage is undisclosed
Papers & references (2)
arXiv:2405.04434 Β· DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model (2024)
Introduces MLA with the full compression/absorption math
arXiv:2412.19437 Β· DeepSeek-V3 Technical Report (2024)
Carries MLA to 671B scale, the basis of DeepSeek-R1
Sliding-window / interleaved local-global attention
dense decoder

Each token attends only to a fixed window of recent neighbors; a few interleaved global layers preserve long-range reach.

full causal O(nΒ²) β€” every past token sliding window O(nΒ·w) β€” recent window local + global window + global anchors rows = query position Β· colored cols = keys it attends to

The attention mask is banded: token t attends only to the previous W tokens, making per-layer cost O(n x W) instead of O(n^2) and capping that layer's KV cache at W entries (a rolling buffer overwrites older ones). Receptive field still grows with depth β€” L layers of window W reach ~L x W tokens. Longformer (2020) combined the sliding window with task-specific global tokens; Mistral 7B shipped it in a mainstream LLM (W=4096, rolling-buffer cache). Gemma 2 interleaves local and global layers 1:1 (W=4096); Gemma 3 pushes to 5 local (W=1024) per 1 global layer with only global layers using long-range RoPE, collapsing long-context KV memory (the paper shows cache overhead dropping from ~60% to well under 15% at 32k context). OpenAI's gpt-oss alternates full and W=128 banded layers.

Banded mask: O(n x W) compute, KV cache capped at W entries per local layerReceptive field ~ layers x window β€” depth substitutes for widthInterleave ratio is the dial: Gemma 2 1:1, Gemma 3 5:1 local:globalOnly global layers need long-range RoPE / full-length cacheRolling-buffer cache: constant memory regardless of sequence length
βš– Buys near-constant KV memory and linear compute in context length; costs direct long-range access β€” needs interleaved global layers (and their full-length cache) to avoid recall loss.
Who uses it
Mistral 7B v0.1 (Mistral AI) β€” W=4096 (later versions dropped SWA)Gemma 2 (Google) β€” 1:1 local:global, W=4096Gemma 3 (Google) β€” 5:1 local:global, W=1024gpt-oss-120b/20b (OpenAI) β€” alternating full / W=128 banded layersLongformer (AllenAI)Character.AI production models β€” hybrid local-global, 1 global per 6 layers (disclosed)Frontier long-context models (Gemini, Claude, GPT-5) β€” (undisclosed)
Papers & references (6)
arXiv:1904.10509 Β· Generating Long Sequences with Sparse Transformers (2019)
Earliest factorized/local attention patterns for autoregressive models
arXiv:2004.05150 Β· Longformer: The Long-Document Transformer (2020)
Canonical sliding-window + global-token formulation
arXiv:2310.06825 Β· Mistral 7B (2023)
Brought SWA (W=4096) and the rolling-buffer KV cache to mainstream open LLMs
arXiv:2408.00118 Β· Gemma 2: Improving Open Language Models at a Practical Size (2024)
1:1 interleaved local-global layers
arXiv:2503.19786 Β· Gemma 3 Technical Report (2025)
5:1 local:global with W=1024 β€” the aggressive KV-memory endpoint
report β†— Β· Optimizing AI Inference at Character.AI (2024)
Production disclosure: hybrid local-global (1 global per 6 layers) + cross-layer KV sharing
Natively trained sparse attention (NSA, MoBA, DSA)
dense decoder

The model learns during pretraining which blocks of context each query needs β€” near-full-attention quality at a fraction of the FLOPs.

full causal O(nΒ²) β€” every past token trained sparse learned/selected blocks rows = query position Β· colored cols = keys it attends to

Unlike post-hoc sparsification, the sparsity pattern is part of the architecture and trained end-to-end. NSA (DeepSeek) gives each query three parallel branches β€” compressed coarse-grained tokens, top-n selected fine-grained blocks, and a sliding window β€” merged by a learned gate; the blockwise selection is aligned to GPU tensor-core granularity, yielding real wall-clock speedups (up to ~9-11x on 64k-context forward/decode) while matching or beating full attention on benchmarks. MoBA (Moonshot) partitions context into blocks and routes each query to its top-k blocks via affinity between the query and mean-pooled block keys β€” MoE-style gating applied to attention, hot-swappable with full attention during training. DeepSeek productionized a descendant, DSA (a lightning indexer plus fine-grained top-k token selection), in DeepSeek-V3.2-Exp to cut long-context API costs.

Sparsity trained in, not bolted on β€” gradients flow through the selection pathNSA: 3 branches (compress / select / window) fused by a learned gateBlock granularity chosen for tensor cores β€” paper speedups survive on real GPUsMoBA: MoE-style top-k routing over context blocks, mean-pooled block keysDSA (V3.2-Exp): first trained-sparse attention in a flagship production LLM
βš– Buys near-lossless long-context quality with large real-GPU speedups; costs architectural complexity, custom kernels, and pretraining commitment β€” cannot be retrofitted cheaply.
Who uses it
DeepSeek-V3.2-Exp (DeepSeek) β€” DSANSA 27B MoE research model (DeepSeek, paper-scale)GLM-5 / 5.1 / 5.2 (Z.ai, 2026) β€” DSA, then IndexShare cross-layer reuseKimi long-context serving (Moonshot) β€” MoBA in production (disclosed in the paper)
Papers & references (3)
arXiv:2502.11089 Β· Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention (2025)
DeepSeek's NSA β€” the reference design for trainable, hardware-aligned sparsity
arXiv:2502.13189 Β· MoBA: Mixture of Block Attention for Long-Context LLMs (2025)
Moonshot's block-routing alternative, released the same week as NSA
report β†— Β· DeepSeek-V3.2-Exp (DeepSeek Sparse Attention) (2025)
Production deployment of NSA's descendant DSA in a flagship model
Linear & hybrid subquadratic attention
SSM / hybrid

Replace softmax with kernel feature maps or a recurrent state for O(n) attention β€” now shipped at frontier scale in hybrid layouts.

L L L A L L L A full softmax attention linear attention layer MiniMax-01 recipe: 7 linear per 1 full

Linear attention rewrites softmax(QK^T)V as phi(Q)(phi(K)^T V): the d x d running sum phi(K)^T V acts as a recurrent state updated once per token, giving O(n) time and constant memory β€” no KV cache growth at all. Performer's FAVOR+ constructs phi from random features that unbiasedly approximate the softmax kernel. Pure linear attention loses precise recall, so the 2025-era answer is hybridization: MiniMax-01 interleaves 7 lightning-attention layers (an I/O-aware tiled linear attention) per 1 softmax layer at 456B total parameters; Qwen3-Next-80B mixes Gated DeltaNet linear layers with gated full-attention layers 3:1 (its 'gated attention' β€” output gating that also eliminates attention sinks β€” is documented in Qwen's Gated Attention paper); Kimi Linear interleaves Kimi Delta Attention with global MLA 3:1, cutting KV cache ~75%. Notably, MiniMax's later M2 reverted to full attention, so the frontier verdict is still contested.

softmax(QK^T)V β†’ phi(Q)(phi(K)^T V): a d x d state replaces the whole KV cacheFAVOR+ (Performer): random features unbiasedly approximate the softmax kernelPure linear loses recall β€” modern designs keep 1 full-attention layer per 3-7 linearLightning attention: tiling makes linear attention fast in practice, not just in theoryQwen3-Next: Gated DeltaNet + output-gated attention, attention-sink-freeJury still out: MiniMax M2 reverted to full softmax attention
βš– Buys O(n) compute and a constant-size state instead of a growing KV cache; costs recall fidelity β€” every production system keeps periodic full-attention layers, and one frontier lab already reverted.
Who uses it
MiniMax-01 456B (MiniMax) β€” lightning:softmax 7:1MiniMax-M1 (MiniMax)Qwen3-Next-80B-A3B (Alibaba) β€” Gated DeltaNet : gated attention 3:1Kimi Linear 48B (Moonshot) β€” KDA : MLA 3:1None disclosed at frontier scale (undisclosed)
Papers & references (8)
arXiv:2006.16236 Β· Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention (2020)
The kernel rewrite that makes attention a recurrence
arXiv:2009.14794 Β· Rethinking Attention with Performers (2020)
FAVOR+ random-feature approximation of the softmax kernel
arXiv:2501.08313 Β· MiniMax-01: Scaling Foundation Models with Lightning Attention (2025)
First frontier-scale (456B) deployment of hybrid linear attention, 7:1 ratio
arXiv:2506.13585 Β· MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention (2025)
Lightning attention extended to a reasoning/RL setting
arXiv:2412.06464 Β· Gated Delta Networks: Improving Mamba2 with Delta Rule (2024)
The Gated DeltaNet layer Qwen3-Next uses for its linear-attention blocks
arXiv:2505.06708 Β· Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free (2025)
Qwen's output-gating study behind Qwen3-Next's 'gated attention' layers
arXiv:2510.26692 Β· Kimi Linear: An Expressive, Efficient Attention Architecture (2025)
KDA + MLA 3:1 hybrid, ~75% KV-cache reduction
report β†— Β· Qwen3-Next-80B-A3B-Instruct model card (2025)
Primary-source confirmation of the Gated DeltaNet + gated attention hybrid layout
Sparse Mixture-of-Experts β€” more parameters than you pay for per token
Classic Token-Choice Top-k MoE (Shazeer / GShard / Switch)
sparse MoE

The founding recipe: a learned gate routes each token to the top-k of N big FFN experts, decoupling parameter count from compute.

from attention block Router top-1 of E (Switch) E1 E2 E3 E4 E5 E6 E7 E8 + one expert per token β†’ next layer

A small gating network scores every expert for each token; only the top-k experts (k=2-4 in Shazeer, k=2 in GShard, k=1 in Switch) actually run, and their outputs are combined weighted by the gate scores. Because unchosen experts do no work, total parameters scale with N while per-token FLOPs scale with k. Load is kept even with auxiliary balancing losses and a fixed per-expert capacity factor β€” tokens overflowing an expert's buffer are dropped and pass through the residual connection. GShard shards experts across accelerators (expert parallelism) so the MoE layer's weights live on different chips and tokens are exchanged via all-to-all.

Conditional computation: params grow with N experts, FLOPs only with k activeNoisy top-k softmax gating, learned end-to-end (Shazeer 2017)Auxiliary load-balancing loss keeps the router from collapsing onto few expertsExpert capacity factor + token dropping bound worst-case memory/computeSwitch: k=1 routing works β€” simpler, less comms, up to 1.6T paramsExpert parallelism + all-to-all dispatch across chips (GShard, 600B)
βš– Buys trillion-parameter capacity at near-constant FLOPs; costs token dropping, aux-loss tuning, training instability, and all-to-all comms.
Who uses it
Switch Transformer checkpoints (Google, 2021; weights later released on Hugging Face)NLLB-MoE-54B translation model (Meta, 2022)GShard 600B translation MoE (Google, disclosed, never released)GLaM 1.2T, 64 experts top-2 (Google, disclosed, never released)GPT-4 (OpenAI) β€” MoE architecture (reported, undisclosed)
Papers & references (4)
arXiv:1701.06538 Β· Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer (2017)
Origin of sparsely-gated top-k MoE with noisy gating and load-balancing losses (LSTM era)
arXiv:2006.16668 Β· GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding (2020)
First giant MoE Transformer: top-2 gating, expert capacity, 600B params sharded across TPUs
arXiv:2101.03961 Β· Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity (2021)
Showed top-1 routing suffices; simplified training recipe, scaled to 1.6T params
arXiv:2112.06905 Β· GLaM: Efficient Scaling of Language Models with Mixture-of-Experts (2021)
Disclosed proprietary 1.2T top-2 MoE beating GPT-3 at 1/3 the training energy
Modern Coarse-Grained Top-k MoE (Mixtral-style)
sparse MoE

A small number (8-32) of full-size FFN experts per layer, top-2/top-4 routed, no shared expert β€” simple, strong, easy to serve.

from attention block Router top-2 of 8 E1 E2 E3 E4 E5 E6 E7 E8 + weighted sum β†’ next layer Β· only routed experts execute

Every FFN of a decoder-only Transformer is replaced by a MoE layer holding a handful of full-width SwiGLU experts (Mixtral: 8), and a linear router picks the top-2 per token per layer, combining outputs by softmax weight. Mixtral 8x7B activates ~13B of 47B params yet matches much larger dense models; Grok-1 uses the same 8-expert/top-2 shape at 314B. GPT-OSS keeps this shared-expert-free token-choice design but goes wider and finer (gpt-oss-120b: 128 experts, top-4, 5.1B active of 117B), showing the lineage scaled into 2025.

Few big experts: each expert is a full-size FFN, 8 per layer in Mixtral/Grok-1Top-2 token-choice routing per layer; softmax-weighted combineEvery layer is MoE β€” no dense/MoE interleaving in MixtralSparse upcycling-friendly shape: fits on few GPUs, trivial expert parallelismGPT-OSS variant: 128 smaller experts, top-4, still no shared expert (2025)Router analysis shows little topic specialization β€” experts split by syntax/position
βš– Buys simplicity and easy serving/finetuning with big quality-per-active-param gains; costs knowledge redundancy across few coarse experts and limited specialization.
Who uses it
Mixtral 8x7B and 8x22B (Mistral AI, 2023-2024)Grok-1 314B (xAI, 2024) β€” 8 experts, top-2gpt-oss-120b / gpt-oss-20b (OpenAI, 2025) β€” 128/32 experts, top-4, no shared expertDBRX 132B (Databricks, 2024) β€” 16 experts, top-4Gemini 1.5 Pro (Google) β€” sparse MoE Transformer (disclosed; expert count/granularity undisclosed)GPT-4 (OpenAI) β€” MoE (reported, undisclosed)Grok-3 / Grok-4 (xAI) β€” architecture undisclosed
Papers & references (4)
arXiv:2401.04088 Β· Mixtral of Experts (2024)
Defined the modern open coarse MoE: 8 experts, top-2, 13B active / 47B total
report β†— Β· Grok-1 open release (xAI, GitHub repository) (2024)
Primary source for Grok-1: 314B params, 8 experts, 2 active per token, Apache-2.0 weights
arXiv:2508.10925 Β· gpt-oss-120b & gpt-oss-20b Model Card (2025)
OpenAI's open-weights MoE: 128/32 experts, top-4, no shared expert β€” modern token-choice design
arXiv:2403.05530 Β· Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context (2024)
Discloses Gemini 1.5 Pro as a sparse mixture-of-experts Transformer (expert config undisclosed)
Fine-Grained + Shared-Expert MoE (DeepSeekMoE lineage)
sparse MoE

Many small routed experts (activate k of 64-384) plus always-on shared experts, balanced without aux losses β€” today's dominant open recipe.

from attention block Router top-8 of 256 E1 E2 E3 E4 E5 E6 E7 E8 S shared + fine experts + always-on shared expert

DeepSeekMoE segments each FFN into many narrow experts and activates more of them (e.g. 8 of 256 in V3), which multiplies the number of expert combinations and drives specialization; one or two shared experts run on every token to absorb common knowledge so routed experts don't duplicate it. DeepSeek-V3 replaces the auxiliary balancing loss with a per-expert bias added to the routing score and nudged up/down online depending on expert load (aux-loss-free balancing), plus sigmoid affinity scoring and node-limited routing to cap cross-node all-to-all traffic. Kimi K2 (1T total, 32B active, 384 experts, 8 active, 1 shared) and Qwen3-MoE (235B-A22B: 128 fine experts, top-8, but no shared expert and a global-batch balancing loss) are direct descendants; Llama 4 pairs a shared expert with routed experts (Maverick: 128 routed, 17B active / 400B total).

Fine segmentation: split each FFN into m small experts, activate m*k β€” combinatorial specializationShared expert(s) always on: common knowledge lives there, routed experts specializeAux-loss-free balancing: online per-expert bias on router scores, no gradient interferenceSigmoid affinity + top-k on biased scores; bias used for routing only, not the combine weightNode-limited / device-limited routing bounds all-to-all communication costNo token dropping in V3; extreme sparsity ratios (K2: 1T total, 32B active)
βš– Buys maximal specialization and the best capability-per-active-param at extreme sparsity; costs heavy all-to-all comms, routing/balancing engineering, and huge memory footprints for serving.
Who uses it
DeepSeek-V2 / V2-Lite (2024) β€” 2 shared + 160 routed, top-6DeepSeek-V3 / R1 671B, 37B active (2024-2025) β€” 1 shared + 256 routed, top-8Kimi K2 1T, 32B active (Moonshot AI, 2025) β€” 384 routed + 1 shared, top-8Qwen3-235B-A22B and Qwen3-30B-A3B (Alibaba, 2025) β€” 128 fine experts, top-8, no shared expertLlama 4 Scout 109B/17B-active and Maverick 400B/17B-active (Meta, 2025) β€” shared expert + 16/128 routedLlama 4 Behemoth ~2T, 288B active, 16 experts (Meta, disclosed, unreleased as of mid-2026)GPT-5 (OpenAI) β€” architecture undisclosedClaude (Anthropic) β€” architecture undisclosedGemini 2.x/3 (Google) β€” sparse MoE per 1.5 lineage disclosure; granularity undisclosed
Papers & references (7)
arXiv:2401.06066 Β· DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models (2024)
Introduces fine-grained expert segmentation + shared-expert isolation
arXiv:2405.04434 Β· DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model (2024)
Scales the recipe to 236B (21B active): 2 shared + 160 routed experts, top-6, device-limited routing
arXiv:2412.19437 Β· DeepSeek-V3 Technical Report (2024)
671B/37B-active: 1 shared + 256 routed, top-8, sigmoid gating, aux-loss-free balancing, no token drop
arXiv:2408.15664 Β· Auxiliary-Loss-Free Load Balancing Strategy for Mixture-of-Experts (2024)
The bias-update balancing method V3 adopts in place of auxiliary losses
arXiv:2507.20534 Β· Kimi K2: Open Agentic Intelligence (2025)
1T-total/32B-active V3-style MoE (384 experts, 8 active, 1 shared) trained with MuonClip
arXiv:2505.09388 Β· Qwen3 Technical Report (2025)
Fine-grained MoE (128 experts, top-8) that drops the shared expert; global-batch balancing loss
report β†— Β· The Llama 4 herd: The beginning of a new era of natively multimodal AI innovation (2025)
Primary source for Llama 4 Scout/Maverick/Behemoth MoE configs incl. shared expert
Beyond attention β€” SSMs, RNNs & hybrids β€” linear-cost sequence mixing and the hybrid recipes that ship
Mamba β€” Selective State Space Model
SSM / hybrid

Makes SSM parameters functions of the input so the state can choose what to remember; first attention-free match of Transformers at ~3B.

token stream x₁ … xβ‚œ in-projection (expand) conv1d + SiLU gate z selective SSM Ξ”,B,C are input-dependent hidden state hβ‚œ βŠ— out-proj state is O(1) per token β€” no KV cache growth

Mamba makes the SSM parameters Delta, B, C input-dependent, so the recurrence can selectively write, retain, or reset state based on content β€” recovering the selection ability that time-invariant SSMs like S4 lacked. Input dependence breaks the convolution trick, so Mamba trains with a hardware-aware parallel scan that keeps the expanded state in GPU SRAM, staying O(n) in sequence length. A single homogeneous Mamba block (gated MLP fused with the selective SSM) replaces the attention+MLP pair; there is no KV cache, so generation memory is constant regardless of context length.

Selection: input-dependent Delta/B/C gate what enters the stateHardware-aware parallel scan replaces the FFT convolutionOne homogeneous block replaces attention + MLP~5x generation throughput vs same-size Transformer, O(1) memory
βš– Buys linear-time training and constant-memory generation; costs a lossy fixed-size state β€” exact copying and long-range retrieval trail attention (the finding that motivates hybrids).
Who uses it
Mamba 130M-2.8B (state-spaces / Gu & Dao)Falcon Mamba 7B (TII, 2024)
Papers & references (4)
arXiv:2312.00752 Β· Mamba: Linear-Time Sequence Modeling with Selective State Spaces (2023)
The selective-SSM paper that reignited the recurrent-LLM field
arXiv:2402.01032 Β· Repeat After Me: Transformers are Better than State Space Models at Copying (2024)
Formalizes the copying/exact-recall weakness of fixed-size-state models β€” the case for hybrids
arXiv:2410.05355 Β· Falcon Mamba: The First Competitive Attention-free 7B Language Model (2024)
Evidence that pure Mamba scales to a competitive 7B
arXiv:2008.07669 Β· HiPPO: Recurrent Memory with Optimal Polynomial Projections (2020)
S4 β€” the structured-SSM predecessor Mamba builds on
Mamba-2 β€” State Space Duality (SSD)
SSM / hybrid

Proves selective SSMs and masked linear attention compute the same function, then exploits the duality for 2-8x faster tensor-core training.

Structured State Space Duality shows that an SSM with scalar-times-identity state transitions is exactly a form of masked linear attention (a 1-semiseparable matrix), so one layer has two algorithms: a quadratic attention-like form ideal for short chunks and a linear recurrent form across chunks. Mamba-2 restricts A to a scalar per head, adopts multi-head-style projections, and uses a chunked block decomposition that runs mostly on matmuls β€” enabling roughly 8x larger recurrent states at similar or better speed than Mamba-1. The duality also unified the SSM and linear-attention research threads, which is why later 'linear attention' hybrids (Gated DeltaNet, Kimi Linear) are siblings of Mamba-2 rather than rivals.

Duality: selective SSM = masked (1-semiseparable) linear attentionScalar-identity A enables chunked, tensor-core-friendly training~8x larger recurrent state than Mamba-1 at similar costOne framework covering SSMs and linear attention
βš– Buys much faster training and bigger states; it is still a fixed-size-state model, so retrieval-heavy workloads still favor keeping some attention layers around.
Who uses it
Mamba-2 130M-2.7B (state-spaces)Codestral Mamba 7B (Mistral, 2024)Mamba-2 layers power Zamba2, Nemotron-H, Granite 4.0, Falcon-H1 (see hybrid entries)
Papers & references (2)
arXiv:2405.21060 Β· Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality (2024)
The Mamba-2/SSD paper
arXiv:2006.16236 Β· Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention (2020)
The linear-attention lineage that SSD unifies with SSMs
RWKV (v4 -> v7 arc)
SSM / hybrid

Attention-free RNN trained like a Transformer; evolved from channel-wise decay (v4) to matrix states (v5/6) to delta-rule state edits (v7).

RWKV v4 replaces attention with a 'time-mix' that blends past values under a learned per-channel exponential decay (the WKV operator), keeping training parallelizable while inference runs as a pure RNN with O(1) state per token. v5 'Eagle' upgrades to matrix-valued states (linear-attention-style outer products); v6 'Finch' makes the decay data-dependent via low-rank dynamic projections. v7 'Goose' adopts a generalized delta rule: the state is updated with input-dependent targeted replacement as well as decay, improving in-context state tracking and pushing expressivity beyond what fixed-decay linear layers can do.

Time-mix with learned exponential decay replaces attention (v4)v5 Eagle: matrix-valued state, linear-attention-like outer productsv6 Finch: data-dependent (dynamic) decayv7 Goose: generalized delta rule β€” in-context replace, not just decayCommunity/Linux Foundation project; fully open pipeline
βš– Buys attention-free O(1)/token inference that runs on modest hardware; costs exact long-range recall precision, and the largest trained models (~14B) sit well below frontier scale.
Who uses it
RWKV-4 169M-14BRWKV-5 Eagle 7B (2024)RWKV-6 Finch 7B/14B (2024)RWKV-7 Goose 0.19B-2.9B and G1 reasoning line (2025)
Papers & references (3)
arXiv:2305.13048 Β· RWKV: Reinventing RNNs for the Transformer Era (2023)
The original RWKV (v4) paper
arXiv:2404.05892 Β· Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrence (2024)
RWKV v5 (Eagle) and v6 (Finch)
arXiv:2503.14456 Β· RWKV-7 "Goose" with Expressive Dynamic State Evolution (2025)
v7: delta-rule state evolution, SoTA-for-size multilingual results
Griffin / Hawk β€” gated linear recurrence
SSM / hybrid

DeepMind's RG-LRU gated linear recurrence; Hawk is pure recurrence, Griffin interleaves 2 recurrent blocks per 1 local-attention block.

R R A R R A local attention RG-LRU recurrence Griffin: 2 recurrent blocks per local-attention block

The Real-Gated Linear Recurrent Unit (RG-LRU) is a diagonal linear recurrence h_t = a_t * h_{t-1} + sqrt(1 - a_t^2) * (i_t * x_t) with a recurrence gate a_t and input gate i_t computed from the input β€” a gated RNN with no softmax and no state expansion. Hawk stacks RG-LRU residual blocks alone; Griffin interleaves two RG-LRU blocks with one local sliding-window attention block, so the recurrence carries global context while the window provides exact recent-token recall with a bounded KV cache. Inference memory is fixed (state + small window) regardless of context length, and the models matched much more token-hungry Transformer baselines at up to 14B scale.

RG-LRU: gated diagonal recurrence, real-valued, stable by designGriffin pattern: 2 recurrent blocks : 1 local-attention blockSliding window bounds the KV cache; recurrence carries the restMatched Llama-2-class quality with ~6-7x fewer training tokens
βš– Buys bounded inference memory and high long-context throughput; local-only attention means exact retrieval beyond the window depends on the lossy recurrent state.
Who uses it
RecurrentGemma 2B/9B (Google, 2024)Hawk and Griffin research models up to 14B (Google DeepMind β€” described in the paper, weights unreleased)
Papers & references (2)
arXiv:2402.19427 Β· Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models (2024)
Defines RG-LRU, Hawk, and Griffin
arXiv:2404.07839 Β· RecurrentGemma: Moving Past Transformers for Efficient Open Language Models (2024)
Open-weights productization of Griffin
Attention–SSM hybrids (Jamba β†’ Nemotron-H β†’ Granite 4.0)
SSM / hybrid

Mostly-Mamba stacks with a few attention layers kept for exact recall β€” linear-cost long context that still passes needle tests.

M M M A M M M A attention layer Mamba-2 layer Jamba-style interleave β€” a few attention layers restore exact recall

AI21's production hybrid: 1 attention layer per 8, MoE on alternate layers; 256K context with a ~8x smaller KV cache, fitting a single 80GB GPU at up to ~140K-token inputs. Zyphra's Mamba tower with ONE shared attention block re-applied every ~6 layers β€” repeated global attention for the parameter cost of one block. Microsoft's strictly-linear hybrid: Mamba -> MLP -> sliding-window attention -> MLP per unit; trained at 4K, streams past 1M tokens. Mamba-2-heavy hybrids (~92% of layers) at 8B-56B: ~3x faster inference at similar accuracy; Nano 2 tunes the recipe for reasoning. 9 Mamba-2 blocks per 1 attention block, no positional encodings, MoE variants; IBM reports >70% serving-memory reduction. Apache 2.0. Falcon-H1 instead runs attention and Mamba-2 heads in parallel inside every block.

Jamba: 1 attention per 8 layers + MoE — 256K ctx, ~8× smaller KV cacheZamba: ONE shared attention block re-applied — global attention for freeSamba: Mamba + sliding-window attention — strictly linear, 4K→1M extrapolationNemotron-H: ~92% Mamba-2 layers — ~3× faster inference at similar accuracyGranite 4.0: 9:1 Mamba-2:attention, no positional encodings, enterprise MoEFalcon-H1: parallel attention+SSM heads in every block (not interleaved)
βš– Buys long-context memory efficiency at near-Transformer quality; costs three coexisting layer types (attention, Mamba, MoE) and less mature serving tooling.
Who uses it
Jamba v0.1 52B (12B active, 2024)Jamba 1.5 Mini / Large (2024)Zamba 7B (2024)Samba 3.8B (research, Microsoft)Phi-4-mini-flash-reasoning 3.8B (Microsoft, 2025, SambaY)Nemotron-H 8B / 47B / 56B (open weights, 2025)NVIDIA-Nemotron-Nano-2 9B (+12B base) (2025)Granite 4.0 H-Small 32B (9B active)Granite 4.0 H-Tiny 7B (1B active)Falcon-H1 0.5B / 1.5B / 1.5B-Deep / 3B / 7B / 34B (TII, 2025)
Papers & references (6)
arXiv:2403.19887 Β· Jamba: A Hybrid Transformer-Mamba Language Model (2024)
Defines the interleaved hybrid + MoE recipe and the ablation case for keeping attention
arXiv:2405.16712 Β· Zamba: A Compact 7B SSM Hybrid Model (2024)
Introduces the shared-attention-block hybrid design
arXiv:2406.07522 Β· Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling (2024)
The Samba architecture and length-extrapolation results
arXiv:2504.03624 Β· Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Models (2025)
The Nemotron-H family and hybrid recipe
report β†— Β· IBM Granite 4.0: Hyper-efficient, High Performance Hybrid Models for Enterprise (2025)
Primary source for the architecture (9:1 ratio, NoPE, MoE variants) and memory claims
arXiv:2507.22448 Β· Falcon-H1: A Family of Hybrid-Head Language Models Redefining Efficiency and Performance (2025)
Defines the parallel hybrid-head design and the model family
Linear-attention hybrids (Qwen3-Next Β· Kimi Linear Β· MiniMax-01)
SSM / hybrid

2025's dominant hybrid recipe: 3 gated-DeltaNet linear layers per 1 attention layer; delta-rule state edits plus Mamba-2-style decay.

D D D A D D D A full attention gated DeltaNet layer Qwen3-Next / Kimi Linear: 3 linear per 1 full

Gated DeltaNet (NVIDIA/MIT, 2024) combines the delta rule β€” a rank-1 targeted edit that overwrites the old value stored under a key in the fixed-size matrix state, S_t = a_t * S_{t-1}(I - b_t k_t k_t^T) + b_t v_t k_t^T β€” with Mamba-2-style global decay gating, beating both Mamba-2 and plain DeltaNet. Qwen3-Next 80B-A3B interleaves three Gated DeltaNet layers per one gated full-attention layer with an ultra-sparse MoE (3B active), reporting roughly 10x throughput versus Qwen3-32B beyond 32K context; Kimi Linear (Moonshot, 2025) refines the operator into Kimi Delta Attention (finer channel-wise decay, chunked kernels) at a 3:1 KDA:MLA ratio in a 48B-A3B model, cutting KV cache by up to 75%. Via the SSD duality these are siblings of Mamba-2 β€” the SSM and linear-attention branches have effectively merged.

Delta rule: rank-1 state edit β€” overwrite old value at a keyGating adds Mamba-2-style forgetting to DeltaNet3 linear : 1 attention interleave is the emerging defaultKimi KDA: per-channel decay; up to 75% KV-cache reductionSSD duality makes these siblings of Mamba-2, not rivals
βš– Buys large decode/prefill wins at agentic context lengths with strong recall via sparse attention; costs immature training kernels and serving stacks for the linear layers.
Who uses it
Qwen3-Next-80B-A3B Instruct / Thinking (Alibaba, 2025)Kimi-Linear-48B-A3B (Moonshot AI, 2025)MiniMax-Text-01 / MiniMax-VL-01 456B (45.9B active, 2025)Kimi K3 2.8T (Moonshot, 2026 β€” KDA 3:1, weights promised 7/27)
Papers & references (5)
arXiv:2412.06464 Β· Gated Delta Networks: Improving Mamba2 with Delta Rule (2024)
The operator both Qwen3-Next and Kimi Linear build on
arXiv:2510.26692 Β· Kimi Linear: An Expressive, Efficient Attention Architecture (2025)
Kimi Delta Attention and the 48B-A3B hybrid results
report β†— Β· Qwen3-Next-80B-A3B-Instruct model card (Hugging Face) (2025)
Primary source for Qwen3-Next's 3:1 Gated DeltaNet : gated attention layout
arXiv:2501.08313 Β· MiniMax-01: Scaling Foundation Models with Lightning Attention (2025)
First frontier-scale linear-attention hybrid with open weights
arXiv:2505.15431 Β· Hunyuan-TurboS: Advancing Large Language Models through Mamba-Transformer Synergy and Adaptive Chain-of-Thought (2025)
Discloses the AMF/MF hybrid architecture at frontier scale
Deep dive β€” 2026 frontier releases β€” Kimi K3 and GLM-5.2, dissected from primary sources (announcement-level facts marked)
Kimi K3 β€” KDA hybrid + LatentMoE (2.78T, weights out)
sparse MoE

Moonshot AI's 2.78T-parameter sparse-MoE flagship β€” open weights since 2026-07-27, natively multimodal, 1M context. Every headline number below is now config-verified.

K K K A K K K A AttnRes across depth β€” config: attn_res_block_size 12 KDA layer (gated Ξ”-rule linear attention) full attention (Gated-MLA) layer inside a KDA layer Kimi Delta Attention gated Ξ”-rule state edits state gate βŠ— 69 KDA layers vs 24 full-attn (every 4th) β€” 2.88:1, config-verified every layer’s FFN Router top-16 of 896 (+2 shared) … 896 experts, 16 run per token Stable LatentMoE Β· sigmoid router + aux-loss-free noaux_tc Β· 2 shared experts always on

Kimi K3 shipped its open weights on 2026-07-27, so the architecture is no longer announcement-level: it can be read straight from config.json. The released checkpoint is a 93-layer, 2,779,931,837,184-parameter (2.78T) model β€” the safetensors metadata shows ~2.72T of those params stored as U8, i.e. it ships natively 8-bit quantized (the card is tagged compressed-tensors / 8-bit). It is not text-only: the architecture class is KimiK3ForConditionalGeneration with a vision tower (patchmergerv2 projector, mm_hidden_size 1024, 2Γ—2 patch merging) whose position embeddings carry a time axis β€” so image and video in, text out (pipeline tag image-text-to-text). The MoE is exactly what was reported and is now confirmed: num_experts 896 with num_experts_per_token 16, plus num_shared_experts 2 (a figure Moonshot never published), sigmoid router scoring with aux-loss-free noaux_tc top-k selection and latent_moe_use_norm β€” the "Stable LatentMoE" branding. Attention is the KDA hybrid, and the config settles the ratio arithmetically: linear_attn_config lists 69 KDA layers against 24 full-attention layers placed at every 4th position (4, 8, 12 … 92), i.e. 2.88:1 β€” the 3:1 pattern Moonshot showed in its blog diagram. KDA runs 96 heads at head_dim 128 with a 4-wide short convolution and a full-rank gate; the full-attention layers are MLA (kv_lora_rank 512, q_lora_rank 1536, 96 heads, 128 NoPE + 64 RoPE dims). Attention Residuals are real and parameterized: attn_res_block_size 12. Context is 1,048,576 tokens, vocab 163,840. Note the released config sets num_nextn_predict_layers 0 β€” no multi-token-prediction head in this checkpoint.

2.78T params (2,779,931,837,184) across 93 layers β€” weight-verified, not a press figureMoE confirmed: 896 experts, 16 routed per token, + 2 shared experts (previously undisclosed)KDA:MLA = 69:24 layers (full attention every 4th) = 2.88:1 β€” the blog's 3:1, now provableNatively multimodal: vision tower with a time axis in its position embeddings (image + video in)Ships 8-bit: ~2.72T of params stored U8 (compressed-tensors) β€” the 2.78T fits far smaller than BF16AttnRes is a real config knob (attn_res_block_size 12); LatentMoE = sigmoid + noaux_tc + latent normOpen weights 2026-07-27 under a custom "kimi-k3" license; 1M context, 163,840 vocab
βš– Extreme sparsity (16 of 896 + 2 shared) maximizes capacity per FLOP, and shipping pre-quantized to 8-bit makes a 2.78T model merely enormous rather than unservable. But it is still a multi-hundred-GB checkpoint, the custom "kimi-k3" license is not OSI-standard (read it before commercial use), and KDA's linear layers complicate conventional prefix caching β€” the reason Moonshot contributed a vLLM implementation.
Who uses it
Kimi K3 2.78T (Moonshot, weights 2026-07-27, custom kimi-k3 license, 8-bit)Kimi K2.5 / K2.6 / K2.7-Code 1T-A32B (2026 β€” the K2-family bridge)Kimi Linear 48B-A3B (2025 β€” where KDA debuted)
Papers & references (6)
report β†— Β· moonshotai/Kimi-K3 β€” model card + config.json (open weights) (2026)
Ground truth for every figure above: config.json, safetensors param count, license
report β†— Β· Kimi K3 β€” official Moonshot AI announcement blog (2026)
Primary source: 2.8T params, Stable LatentMoE 16/896, Quantile Balancing, Per-Head Muon, KDA + Gated MLA diagram with printed 3x/1x block mu
report β†— Β· Kimi K3 Quickstart β€” Moonshot platform docs (2026)
Model id kimi-k3; max output default 131072 up to 1048576; flat pay-as-you-go, cache-hit/miss input; weights by Jul 27, 2026; no license sta
report β†— Β· Kimi K3 pricing β€” Moonshot platform docs (2026)
Confirms 1M (1,048,576) context; pricing $0.30 cache-hit / $3.00 cache-miss input, $15.00 output per MTok; single kimi-k3 variant listed. Ve
arXiv:2510.26692 Β· Kimi Linear: An Expressive, Efficient Attention Architecture (Kimi Team) (2025)
Defines KDA = Gated DeltaNet + finer-grained gating; layerwise KDA/MLA hybrid; 48B total / 3B active; up to 6x decode throughput and up to 7
report β†— Β· moonshotai β€” Hugging Face organization model listing (2026)
Confirms NO public Kimi-K3 repo as of 2026-07-21 (org listing has none; direct repo URL/API return HF's 401 nonexistent-or-private response,
GLM-5.2 β€” MLA + DSA + IndexShare (753B-A40B, MIT)
sparse MoE

Z.ai's 753B-A40B MIT MoE flagship for long-horizon coding/agents: DSA sparse attention + IndexShare indexer reuse on a solid 1M-token context.

Indexer lightning indexer Β· 32 heads Γ— 128d run in 21 β€œfull” layers reused Γ—4 by 57 shared layers sparse attention Β· layer 1 sparse attention Β· layer 2 sparse attention Β· layer 3 sparse attention Β· layer 4 base: MLA (512-d KV latent, Muon Split) Β· DSA keeps top-2048 tokens per query vendor: ~2.9Γ— token-FLOPs cut @ 1M ctx Β· IndexCache paper: up to 1.82Γ— prefill / 1.48Γ— decode

GLM-5.2 is a 78-layer `glm_moe_dsa` transformer: each layer pairs MLA (q_lora_rank 2048 / kv_lora_rank 512 latents, 64 heads, 256-dim QK = 192 NoPE + 64 decoupled RoPE) with a DeepSeek-Sparse-Attention core where a lightweight "lightning indexer" (32 heads x 128 dim) scores past tokens and core attention runs only over the top-2048 (index_topk), cutting attention from O(L^2) to O(Lk). The DSA indexer itself stays O(L^2) and in GLM-5/5.1 ran at every layer, so IndexShare (the linked paper is titled "IndexCache", arXiv:2603.12201) runs real indexers only in "full" layers β€” layers 0-2 plus every 4th (index_topk_freq=4; 21 of 78) β€” while the 57 "shared" layers reuse the nearest full layer's top-k indices; in the paper's training-aware variant, retained indexers are distilled against the averaged attention distributions of the layers they serve (the likely deployed recipe, though Z.ai doesn't say outright β€” see undisclosed). Z.ai claims 2.9x per-token FLOPs reduction at 1M context (vendor-only figure, HF card + NIM); the paper independently measured up to 1.82x prefill / 1.48x decode and 75% indexer-compute removal on a 30B DSA model. The FFN side is DeepSeek-V3-style MoE: 3 dense layers then 75 MoE layers with 256 routed experts (8 active) + 1 shared expert, sigmoid scoring with aux-loss-free `noaux_tc` routing β€” 753B total all-in; the GLM-5 report's 744B figure covers the main model incl. embeddings/output head but excl. the ~9.9B MTP layer (convention derived from config-param math β€” the report doesn't state it), 40B active (active figure stated for GLM-5, whose config shape is identical). One MTP layer (num_nextn_predict_layers=1; the GLM-5 report trains 3 MTP layers sharing one parameter set) drives speculative decoding and also reuses the shared indices (`index_share_for_mtp_iteration: true`); Z.ai claims up to 20% longer acceptance length vs 5.1. Context is 1,048,576 positions (rope_theta 8M, up from 202,752 / theta 1M in GLM-5/5.1) with 128K max output on the API; "thinking effort" is purely an inference-time API control (`reasoning_effort`), not an architecture mechanism.

DSA lightning indexer picks top-2048 tokens per query; core attention falls O(L^2) -> O(Lk)IndexShare: 1 indexer serves 4 layers (21 full / 57 shared of 78); ~2.9x token-FLOPs cut at 1MPaper name is IndexCache: shared layers reuse nearest full layer's indices, distilled to matchMLA base (512-d KV latent, Muon Split) β€” GLM-5.x dropped GLM-4.5's GQA/partial-RoPE/QK-Norm753B total / 40B active: 256 routed experts, 8 routed + 1 shared active, aux-loss-free routing1M ctx (rope_theta 8M) + 128K output; GLM-5/5.1 topped out at ~200KMTP layer shares the sparse indices too; +20% speculative-decode acceptance vs 5.1 (vendor)
βš– Sparse top-k attention is an approximation β€” Z.ai leans on DSA being "lossless by construction" and on distillation for shared layers, but index reuse means 3 of every 4 layers attend over slightly stale token selections (the paper's own greedy/distillation machinery exists precisely to manage that quality risk). The indexer remains O(L^2), so IndexShare amortizes rather than removes the quadratic term. 753B total still demands multi-node serving despite 40B active (FP8 repo mitigates); 1M-context quality claims rest mostly on vendor-run benchmarks. reasoning_effort trades latency for quality at inference, and several documented values are aliases (low/medium->high, xhigh->max), so real granularity is max / high / off. No small (Air-class) variant, unlike the GLM-4.5 generation.
Who uses it
GLM-5.2 753B-A40B BF16 + FP8 (Z.ai, MIT, HF since 2026-06-16)GLM-5 / GLM-5.1 744B-A40B (Feb / Apr 2026 β€” same glm_moe_dsa shape, 200k ctx)
Papers & references (5)
report β†— Β· zai-org/GLM-5.2 model card (2026)
MIT, 1M ctx, IndexShare (links arXiv:2603.12201), 2.9x FLOPs claim, MTP +20% acceptance, full benchmark table, eval footnotes citing 128K ma
arXiv:2602.15763 Β· GLM-5: from Vibe Coding to Agentic Engineering (tech report) (2026)
"744B parameter model (40B active parameters)" quoted; MLA (576-d latent) lost to GQA-8 under Muon -> Muon Split; DSA continued pretraining
arXiv:2603.12201 Β· IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reuse (2026)
the "IndexShare" mechanism's paper (title differs from marketing name): full/shared layer partition, training-free greedy + training-aware m
report β†— Β· NVIDIA NIM model reference: z-ai/glm-5.2 (2026)
753B total, MoE, IndexShare description, 1M input/output ctx, HF release 06/16/2026, MIT + NVIDIA Open Model Agreement
report β†— Β· Z.AI docs β€” GLM-5.2 guide (2026)
model id glm-5.2, 1M context, 128K max output, thinking.type + reasoning_effort:max examples
Multimodal wiring β€” three ways to get pixels (and audio) into a language model
Vision Encoder + Projector (Adapter-style VLM)
adapter multimodal

Bolt a pretrained ViT onto an LLM with a small trained projector; image features enter the prompt as soft tokens.

πŸ–Ό image ViT encoder CLIP/SigLIP projector MLP ⌨ text frozen-ish LLM image tokens + text tokens in one sequence vision speaks the LLM’s token language via a small bridge

A contrastively pretrained ViT (CLIP or SigLIP) encodes the image into patch features; a small connector β€” a linear layer or 2-layer MLP in LLaVA, a single-layer cross-attention resampler compressing to 256 tokens in Qwen-VL β€” maps them into the LLM's embedding space, where they are spliced into the token sequence like ordinary word embeddings. Training is staged: first align only the projector on image-caption pairs, then visual instruction-tune with the LLM (and often later the ViT) unfrozen. Modern variants handle native/dynamic resolution via tiling (InternVL 1.5) or M-RoPE with a ViT trained alongside the LLM (Qwen2-VL), and compress patches (2x2 token merge, pixel-shuffle) to keep image token counts manageable.

Reuse a contrastive ViT (CLIP/SigLIP) β€” vision arrives pretrained, almost freeProjector is the only new glue: linear/MLP (LLaVA) or 256-token resampler (Qwen-VL)Image features act as soft tokens β€” LLM unchanged, standard next-token trainingStaged training: align projector on captions, then visual instruction tuningDynamic resolution via tiling / M-RoPE + patch merging (InternVL 1.5, Qwen2-VL)Note: Llama 3.2 Vision is NOT this style β€” it uses cross-attention (see next entry)
βš– Cheapest path to a strong VLM and preserves the text LLM; capped by the encoder's resolution/skills and burns LLM context on image tokens.
Who uses it
LLaVA-1.5 / LLaVA-NeXT (CLIP ViT-L + 2-layer MLP β†’ Vicuna)Qwen-VL β†’ Qwen2-VL β†’ Qwen2.5-VL (Alibaba)InternVL 1–3 (OpenGVLab, InternViT-6B encoder)Idefics2 / Idefics3 (Hugging Face)Pixtral 12B (Mistral)Molmo 7B/72B (Ai2)MiniCPM-V 2.6 (OpenBMB)Gemma 3 4B–27B (Google, SigLIP encoder + projector, disclosed)GPT-4V (OpenAI) β€” vision architecture undisclosedClaude 3/4 family vision (Anthropic) β€” undisclosed
Papers & references (9)
arXiv:2010.11929 Β· An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale (2020)
ViT β€” the patch-embedding vision transformer every encoder here builds on
arXiv:2103.00020 Β· Learning Transferable Visual Models From Natural Language Supervision (2021)
CLIP β€” contrastive image-text pretraining; the default frozen vision encoder
arXiv:2303.15343 Β· Sigmoid Loss for Language Image Pre-Training (2023)
SigLIP β€” sigmoid loss variant of CLIP; encoder of choice in PaliGemma/Gemma 3 era
arXiv:2304.08485 Β· Visual Instruction Tuning (2023)
LLaVA β€” CLIP ViT + linear projector + Vicuna; defined the open adapter recipe
arXiv:2310.03744 Β· Improved Baselines with Visual Instruction Tuning (2023)
LLaVA-1.5 β€” swaps linear projector for a 2-layer MLP; strong simple baseline
arXiv:2308.12966 Β· Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyond (2023)
Position-aware 1-layer cross-attn adapter compressing images to 256 tokens
arXiv:2312.14238 Β· InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Tasks (2023)
Scales the vision side to 6B (InternViT-6B) instead of only scaling the LLM
arXiv:2409.12191 Β· Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution (2024)
Naive dynamic resolution + M-RoPE; ViT trained with the LLM, MLP patch merger
arXiv:2502.13923 Β· Qwen2.5-VL Technical Report (2025)
Current open SOTA of the recipe: window-attention ViT, absolute-time RoPE for video
Cross-Attention Injection (Flamingo-style)
adapter multimodal

Vision enters through gated cross-attention layers inserted between frozen LM blocks β€” Flamingo's recipe, revived by Llama 3.2 Vision.

vision encoder LM layer + gated cross-attn LM layer vision injected between frozen LM layers (Flamingo)

A frozen vision encoder feeds a Perceiver Resampler that compresses any number of images or video frames into a fixed set of 64 latent tokens (Flamingo). Newly inserted gated cross-attention-dense layers, interleaved between the frozen LM's blocks, read those latents as keys/values; a tanh gate initialized at zero means the model starts out exactly equal to the original text LM and learns to open the visual pathway during training. Llama 3.2 Vision (disclosed in The Llama 3 Herd of Models) applies the same compositional idea: a ViT encoder plus cross-attention layers inserted every 4th decoder layer, with the text weights kept frozen so text-only performance is provably unchanged. Image information never occupies positions in the token sequence.

Gated xattn-dense: tanh gate starts at 0, so init == the untouched text LMPerceiver Resampler: any # of images/frames β†’ fixed 64 latent tokensImages never consume LM context β€” attended to, not tokenized into the sequenceText skills provably intact β€” Llama 3.2 freezes all text weights during vision trainingNative interleaved image-text few-shot prompting was Flamingo's headline result
βš– Buys intact text performance and short sequences; costs billions of adapter params (Llama 3.2-90B adds ~20B over Llama 3.1-70B) and a nonstandard serving path.
Who uses it
OpenFlamingo 3B–9B (LAION)IDEFICS 9B/80B (Hugging Face, Flamingo reproduction; note Idefics2 switched to adapter style)Llama 3.2 Vision 11B/90B (Meta)Flamingo 80B (DeepMind) β€” fully disclosed in the paper but never released
Papers & references (3)
arXiv:2204.14198 Β· Flamingo: a Visual Language Model for Few-Shot Learning (2022)
Defined the pattern: frozen LM + Perceiver Resampler + gated xattn-dense layers
arXiv:2308.01390 Β· OpenFlamingo: An Open-Source Framework for Training Large Autoregressive Vision-Language Models (2023)
Open reproduction (CLIP ViT-L encoder) that made the recipe publicly trainable
arXiv:2407.21783 Β· The Llama 3 Herd of Models (2024)
Discloses Llama 3-V / 3.2 Vision: cross-attention every 4th layer, frozen text weights
Native / Early-Fusion Multimodal (Single Transformer)
native multimodal

One transformer, one stream: images (and audio) become tokens or patches in the same sequence from pretraining day one.

t t β–¦ β–¦ β–¦ t t β™ͺ t one transformer, one token stream all modalities tokenized into the same sequence β€” no bolt-on encoder t = text Β· β–¦ = image patch/code Β· β™ͺ = audio

Instead of grafting vision onto a text model, one transformer is trained from the start on interleaved multimodal sequences. Chameleon VQ-quantizes each 512x512 image into 1024 discrete tokens from an 8192-entry codebook and trains a single autoregressive model over mixed text+image tokens β€” requiring QK-norm and revised norm placement for stability at scale β€” so the same softmax can emit words or pixels. Fuyu goes further and deletes the encoder entirely: raw image patches are linearly projected straight into the decoder's first layer at arbitrary resolution, with an image-newline token marking row breaks. GPT-4o and Gemini are disclosed only at the capability level β€” a single model trained end-to-end (OpenAI) / jointly from the start (Google) across text, vision, and audio β€” with internal mechanics undisclosed.

Early fusion: every modality shares one sequence from pretraining step 0Chameleon: VQ image tokens (8192 codebook) β€” same softmax emits pixels or wordsFuyu: no vision encoder at all β€” patches linearly projected into layer 1Stability tricks needed at scale: QK-norm, norm reordering (Chameleon)GPT-4o/Gemini disclose only 'natively multimodal' β€” internals undisclosedTransfusion mixes next-token text loss with image diffusion in one transformer
βš– Buys unified any-modality in/out with no adapter seams; costs full-scratch pretraining, training instability, and often trails specialist VLMs per modality.
Who uses it
Chameleon (Meta; paper trains 7B/34B, released weights are 7B & 30B, image generation disabled)Fuyu-8B (Adept)Emu3 (BAAI, 2024) β€” next-token prediction over text/image/video tokensGPT-4o (OpenAI) β€” disclosed: single model end-to-end across text/vision/audio; internals undisclosedGemini 1.0–2.5 (Google) β€” disclosed: natively multimodal, jointly trained from the start; internals undisclosed
Papers & references (6)
arXiv:2405.09818 Β· Chameleon: Mixed-Modal Early-Fusion Foundation Models (2024)
The open blueprint for token-based early fusion, incl. its stability fixes
report β†— Β· Fuyu-8B model card (Adept) (2023)
Encoder-free decoder ingesting linearly projected patches; adept.ai blog now blocked, archived at web.archive.org/web/20250105191124/https://www.adept.ai/blog/fuyu-8b
arXiv:2312.11805 Β· Gemini: A Family of Highly Capable Multimodal Models (2023)
Discloses native multimodality: joint training across image/audio/video/text, discrete image tokens for output
arXiv:2403.05530 Β· Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context (2024)
Extends the native-multimodal line to sparse MoE + 1M–10M token multimodal context
arXiv:2410.21276 Β· GPT-4o System Card (2024)
Discloses one autoregressive omni model, end-to-end across text/vision/audio β€” no further internals
arXiv:2408.11039 Β· Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Model (2024)
Meta research: AR text loss + diffusion image loss in a single transformer
Any-to-Any / Omni Models (Speech in the Loop)
native multimodal

Omni models take speech, audio, image, video, and text in β€” and stream speech out β€” replacing the ASR β†’ LLM β†’ TTS pipeline.

GPT-4o's system card discloses a single autoregressive model that accepts any mix of text, audio, image, and video and emits text, audio, and image from the same network, collapsing voice latency to roughly 300ms versus the old three-model ASR→LLM→TTS pipeline; internals are undisclosed. Qwen2.5-Omni discloses a full open recipe: a Thinker (LLM decoder) ingests all modalities — audio and video time-aligned by TMRoPE, a time-interleaved multimodal RoPE — and produces text plus high-level hidden states, while a Talker, a dual-track autoregressive speech-token model, streams speech tokens conditioned on those states through a sliding-window DiT vocoder for real-time audio. Moshi runs full-duplex: one backbone (Helium 7B) jointly models the user's and the system's audio streams via the Mimi neural codec plus an inner-monologue text stream, reaching ~160ms theoretical latency.

End-to-end audio kills the ASR→LLM→TTS pipeline; prosody and emotion surviveThinker-Talker split: LLM thinks in text; a speech head streams from its statesTMRoPE: time-aligned rotary positions sync audio and video frames (Qwen2.5-Omni)Full-duplex: Moshi models both speakers' audio + inner-monologue text at onceStreaming synthesis: sliding-window DiT vocoder / Mimi RVQ codec for real time
βš– Buys ~300ms conversational voice with prosody understanding; costs speech-token plumbing, harder safety/eval surface, and still-scarce open recipes.
Who uses it
Qwen2.5-Omni 3B/7B (Alibaba; 7B Apache-2.0, 3B non-commercial Qwen research license)Moshi 7B + Mimi codec (Kyutai)MiniCPM-o 2.6 (OpenBMB)GPT-4o Advanced Voice (OpenAI) β€” end-to-end audio disclosed; architecture undisclosedGemini Live / Gemini 2.5 native-audio dialogue (Google) β€” capability disclosed; architecture undisclosed
Papers & references (3)
arXiv:2410.21276 Β· GPT-4o System Card (2024)
Primary disclosure of end-to-end omni voice: one network for all inputs/outputs
arXiv:2503.20215 Β· Qwen2.5-Omni Technical Report (2025)
Open Thinker-Talker any-to-any architecture with TMRoPE and streaming speech
arXiv:2410.00037 Β· Moshi: a speech-text foundation model for real-time dialogue (2024)
Open full-duplex speech-text model: Mimi codec + dual audio streams + inner monologue
New directions β€” diffusion LMs, ternary weights, and honest notes on β€œreasoning models”
Diffusion Language Models
diffusion LM

Text generated by iteratively denoising/unmasking whole blocks in parallel, instead of predicting one token at a time.

autoregressive The Β· Β· Β· The cat Β· Β· The cat sat Β· The cat sat down one token per step, left β†’ right diffusion LM β–’ β–’ β–’ β–’ β–’ cat β–’ down The cat β–’ down The cat sat down whole sequence denoised in parallel steps

Instead of left-to-right next-token prediction, the model is trained on a forward corruption process (randomly masking or noising tokens) and learns the reverse process: given a partially masked sequence, predict all masked tokens simultaneously. Generation starts from a fully masked block and runs a few refinement steps, each one committing the most confident tokens and re-predicting the rest. The backbone is still a standard Transformer, but with bidirectional (non-causal) attention, and speed comes from emitting many tokens per forward pass. LLaDA showed this trained-from-scratch at 8B rivals autoregressive peers; Mercury and Gemini Diffusion showed commercial-grade throughput (1,000+ tokens/sec).

Parallel block generation: many tokens per forward pass, not oneMasked-diffusion objective is a likelihood bound β€” same scaling recipe as AR LMsBidirectional attention: every token sees full context during denoisingIterative refinement can revise earlier tokens (no left-to-right lock-in)Mercury Coder Mini: 1,109 tok/s on H100; Gemini Diffusion: 1,479 tok/s reported (hardware undisclosed)
βš– Buys 5-10x decoding throughput and revisable parallel generation; costs multiple full-sequence passes, weaker KV-cache reuse, and a less mature ecosystem.
Who uses it
LLaDA 8B (GSAI, Renmin University of China)Dream 7B (HKU NLP + Huawei Noah's Ark)Mercury / Mercury Coder (Inception Labs) (disclosed)Gemini Diffusion (Google DeepMind, experimental demo) (disclosed)
Papers & references (4)
arXiv:2502.09992 Β· Large Language Diffusion Models (2025)
LLaDA: first from-scratch 8B masked-diffusion LM competitive with LLaMA-class AR models
arXiv:2506.17298 Β· Mercury: Ultra-Fast Language Models Based on Diffusion (2025)
Inception Labs' commercial diffusion LLM; Mercury Coder Mini hits 1,109 tok/s on H100
arXiv:2508.15487 Β· Dream 7B: Diffusion Large Language Models (2025)
Open-weights 7B diffusion LM (HKU/Huawei) initialized from AR weights (Qwen2.5)
report β†— Β· Gemini Diffusion (Google DeepMind model page) (2025)
Official page disclosing diffusion text generation, block-parallel decoding, 1,479 tok/s
1-bit / Ternary-Native LLMs (BitNet b1.58)
dense decoder

Transformers trained from scratch with ternary {-1,0,+1} weights, so matmuls become adds β€” ~10x less memory and energy.

token embeddings RMSNorm BitLinear attention weights ∈ {βˆ’1, 0, +1} RMSNorm BitLinear FFN ternary weights, 8-bit acts + + logits β€” adds replace multipliesΓ— N layers

BitNet replaces every nn.Linear in the Transformer with a BitLinear layer whose weights are constrained to {-1, 0, +1} (~1.58 bits) during training itself β€” quantization is native, not applied after the fact, so the model learns around the constraint (a straight-through estimator passes gradients while latent full-precision weights are kept for the optimizer). Activations are quantized to 8 bits. Because weights are ternary, matrix multiplication reduces to integer additions and sign flips, slashing memory, energy, and latency. The 2024 paper showed ternary matches FP16 quality from ~3B params; Microsoft's open BitNet b1.58 2B4T (2B params, 4T tokens) ships with a CPU-friendly runtime at ~0.4 GB memory.

Quantization-aware from token one: model natively learns ternary weightsBitLinear swap-in: attention/FFN structure otherwise unchangedMatmul β†’ addition: no multiplies in the dominant compute path~1.58 bits/weight (log2 of 3) + 8-bit activations (W1.58A8)Matches FP16 LLaMA quality from ~3B params in the 2024 study
βš– Buys drastic memory/energy cuts and fast CPU/edge inference; costs full retraining from scratch (no post-hoc conversion) and quality parity proven mainly at small-to-mid scales.
Who uses it
BitNet b1.58 2B4T (Microsoft)None disclosed β€” no frontier lab has announced a production ternary-native model
Papers & references (4)
arXiv:2310.11453 Β· BitNet: Scaling 1-bit Transformers for Large Language Models (2023)
Origin paper: BitLinear layer and stable 1-bit training from scratch
arXiv:2402.17764 Β· The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bits (2024)
The b1.58 ternary variant; parity with FP16 LLaMA at 3B+ and the new scaling law claim
arXiv:2504.12285 Β· BitNet b1.58 2B4T Technical Report (2025)
First open-weights native-1.58-bit LLM at scale (2B params, 4T tokens)
report β†— Β· microsoft/bitnet-b1.58-2B-4T (Hugging Face model release) (2025)
The actual open-weights release, with bitnet.cpp inference path
"Reasoning Models" (o1 / R1) β€” Training, Not Architecture
dense decoder

o1/R1-class models are the same transformer architecture; the novelty is RL training that elicits long private chain-of-thought.

Honest note for the field guide: despite the branding, o1/R1-style 'reasoning models' are not a new neural architecture. The DeepSeek-R1 paper is explicit that R1 is DeepSeek-V3-Base β€” a standard MoE transformer (671B total / 37B active) β€” post-trained with reinforcement learning (GRPO) using rule-based rewards, which spontaneously incentivizes long chain-of-thought, self-verification, and backtracking (R1-Zero used pure RL, R1 added a small cold-start SFT stage). OpenAI's o1 System Card likewise describes large-scale RL to 'think before answering' via chain-of-thought, disclosing nothing about a changed architecture. What changes at inference is behavior and compute allocation (many more generated thinking tokens), not the network.

Architecture vs training: same transformer, new post-training recipeR1 = DeepSeek-V3-Base MoE + GRPO RL; verified in the R1 paper itselfRule-based rewards (correct answer, format) β€” no learned reward model needed for math/codeEmergent behaviors: self-verification, reflection, 'aha moment' backtrackingTest-time scaling: quality bought with more thinking tokens, not more weightsReasoning distills: R1 traces used to SFT ordinary Qwen/Llama checkpoints
βš– Buys large gains on math/code/agentic tasks via test-time compute; costs high latency and token spend, and 'reasoning' branding obscures that it's a training recipe.
Who uses it
DeepSeek-R1 / R1-Zero 671B MoE (DeepSeek)DeepSeek-R1-Distill 1.5B-70B (Qwen2.5/Llama3 bases)QwQ-32B (Alibaba Qwen)OpenAI o1 / o3 (RL chain-of-thought disclosed; base architecture undisclosed)Claude 3.7 Sonnet / Claude 4 extended thinking (Anthropic) (behavior disclosed; architecture undisclosed)Gemini 2.5 Pro/Flash thinking (Google) (sparse MoE disclosed in tech report)
Papers & references (3)
arXiv:2501.12948 Β· DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (2025)
Primary evidence: R1 is V3-Base (unchanged MoE transformer) + RL; open recipe
arXiv:2412.16720 Β· OpenAI o1 System Card (2024)
OpenAI's primary o1 document: RL-trained chain-of-thought; architecture undisclosed
arXiv:2507.06261 Β· Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities (2025)
Discloses Gemini 2.5 'thinking' models are sparse-MoE transformers β€” again training, not new architecture
Small-but-Mighty LMs (MobileLLM / SmolLM)
dense decoder

Sub-3B models engineered for phones: at small scale, deep-and-thin beats wide-shallow, and data curation does the heavy lifting.

MobileLLM (Meta) systematically studied sub-billion-parameter design and found the opposite of conventional wisdom at that scale: allocating parameters to depth (more, thinner layers) beats width, and combining that with embedding sharing, grouped-query attention, and immediate block-wise layer sharing (reusing a block twice before moving on) yields 2-4+ point accuracy jumps over prior 125M/350M models with no extra memory. The SmolLM line (Hugging Face) attacks the same target from the data side: SmolLM2-1.7B is a fairly standard architecture trained on ~11T tokens with multi-stage rebalancing of curated datasets (FineMath, Stack-Edu, SmolTalk), showing meticulous data-centric training makes small models punch far above their weight. SmolLM3-3B adds GQA plus NoPE-style positional handling and dual-mode (think/no-think) reasoning at 3B.

Depth over width at sub-billion scale β€” inverts the usual aspect-ratio intuitionImmediate block-wise weight sharing: 2x effective depth, ~zero extra memoryEmbedding sharing + GQA reclaim parameter budget for layersSmolLM2: ~11T tokens, multi-stage data rebalancing beats bigger models per paramWhole recipe published: datasets, mixes, and code are open
βš– Buys on-device latency, privacy, and near-zero serving cost; costs hard capability ceilings (knowledge, long-horizon reasoning) and heavy reliance on curation/distillation from larger models.
Who uses it
MobileLLM 125M-1.5B (Meta)SmolLM2 135M / 360M / 1.7B (Hugging Face)SmolLM3-3B (Hugging Face)On-device assistant models (e.g. phone-resident features) widely use similar recipes (reported, undisclosed)
Papers & references (4)
arXiv:2402.14905 Β· MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Cases (2024)
The depth-vs-width finding plus layer-sharing; the on-device design playbook
arXiv:2502.02737 Β· SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model (2025)
Data-centric counterpart: how curation and staged mixes make a 1.7B competitive
report β†— Β· SmolLM3: smol, multilingual, long-context reasoner (Hugging Face blog) (2025)
3B follow-up with GQA + NoPE and dual think/no-think modes; full recipe disclosed
report β†— Β· HuggingFaceTB/SmolLM3-3B (Hugging Face model release) (2025)
Open-weights release verifying the model actually ships
Mixture-of-Recursions (MoR)
dense decoder

One shared stack of layers applied recursively, with a router giving each token its own number of passes through it.

MoR unifies two efficiency ideas in one recursive Transformer: parameter sharing and adaptive compute. A single block of layers is reused up to N times (recursion), so the parameter count stays small; a lightweight router then decides per token how many recursion steps that token gets β€” easy tokens exit after one pass, hard tokens loop more, in the spirit of mixture-of-experts routing but over depth. Recursion-wise KV caching keeps attention cost consistent with each token's actual depth. At 135M-1.7B scale it forms a new Pareto frontier over vanilla and prior recursive baselines at equal training FLOPs, with higher inference throughput.

Two axes at once: shared weights (recursion) + per-token adaptive depth (routing)Router assigns 'thinking depth' per token β€” MoE-style routing over depth, not expertsRecursion-wise KV caching: only tokens still active attend at deeper stepsEqual-FLOP wins over vanilla Transformers at 135M-1.7B in the paperLatent, architectural analogue of test-time thinking β€” no CoT tokens emitted
βš– Buys big-model quality at small-model parameter count and equal FLOPs; costs router training complexity, batching irregularity, and no production-scale validation yet.
Who uses it
Research checkpoints only (paper models 135M-1.7B); no production model ships MoR yetNone disclosed
Papers & references (1)
arXiv:2507.10524 Β· Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation (2025)
The MoR paper (KAIST + Google): method, routing/caching variants, scaling study
Byte-Level Models (Byte Latent Transformer)
dense decoder

Tokenizer-free LLM over raw bytes: entropy-based dynamic patches feed a big latent transformer; matches Llama 3 with fewer FLOPs.

BLT (Meta) removes the tokenizer entirely and operates on raw bytes, solving the compute problem with a three-part design: a small local encoder groups bytes into dynamically sized patches β€” patch boundaries are placed where a tiny byte-LM's next-byte entropy is high, so predictable stretches get long patches and hard spots get short ones β€” a large latent transformer runs only over patch representations, and a small local decoder maps latent outputs back to bytes. Because patches average longer than BPE tokens where text is easy, compute is allocated to where prediction is genuinely hard. Scaled to 8B parameters and 4T training bytes, BLT matches tokenization-based Llama-3-style training while cutting inference FLOPs up to ~50%, and is markedly more robust to spelling noise, character-level tasks, and rare scripts.

No tokenizer, no fixed vocabulary β€” raw bytes in, raw bytes outEntropy-driven dynamic patching: compute spent where next-byte prediction is hardThree-tier design: local byte encoder β†’ large latent transformer β†’ local byte decoderMatches BPE-based Llama 3 recipe at 8B / 4T bytes with up to ~50% fewer inference FLOPsNew scaling knob: grow patch size and latent model together at fixed costRobust to typos, orthographic attacks, and low-resource scripts BPE fragments badly
βš– Buys tokenizer-free robustness, multilingual fairness, and FLOP savings via adaptive patching; costs a more complex 3-model pipeline, immature serving stacks, and byte-level sequence-length blowup at the edges.
Who uses it
BLT 1B and 7B (Meta, facebook/blt)None disclosed
Papers & references (2)
arXiv:2412.09871 Β· Byte Latent Transformer: Patches Scale Better Than Tokens (2024)
The BLT paper: dynamic patching, architecture, and the 8B-scale matching result
report β†— Β· facebook/blt (Hugging Face weights release) (2025)
Meta's open release of BLT 1B and 7B checkpoints β€” evidence it genuinely ships
Model family atlas β€” 95 versions across 20 families, open + proprietary
95 / 95
FamilyVersionYearArchitectureParamsCtxArchitecture notesRefs
Llama
Meta
LLaMA2023dense decoder7B–65B2kPre-norm RMSNorm, SwiGLU, RoPE, MHA; research-only weights; the template most later open models copied.2302.13971 β†—
Llama
Meta
Llama 22023dense decoder7B / 13B / 70B4kAdds GQA on the 70B; first commercial-use community license; RLHF-tuned Chat variants.2307.09288 β†—
Llama
Meta
Llama 3 / 3.12024dense decoder8B / 70B / 405B8k β†’ 128k (3.1)GQA at every size, 128K-token vocab; 3.1 adds 405B and 128k ctx; 3.2 adds vision adapters and 1B/3B.2407.21783 β†—
Llama
Meta
Llama 42025sparse MoEScout 109B / 17B active (16 exp); Maverick 400B / 17B active (128 exp)10M (Scout) / 1M (Maverick)First Llama MoE; early-fusion native multimodality; iRoPE interleaved no-position layers for extreme ctx; Behemoth unreleased.report β†—
Qwen
Alibaba
Qwen2023dense decoder1.8B–72B2k–32kRoPE, SwiGLU, RMSNorm, untied embeddings, QKV bias; dynamic-NTK/logn ctx extension; Tongyi Qianwen license.2309.16609 β†—
Qwen
Alibaba
Qwen22024dense decoder0.5B–72B dense; 57B total / 14B active MoE32k–128kGQA at all sizes; dual chunk attention + YARN for long ctx; fine-grained-expert A14B MoE; succeeds interim Qwen1.5.2407.10671 β†—
Qwen
Alibaba
Qwen2.52024dense decoder0.5B–72B128k (1M variant)18T-token pretrain on same GQA dense stack; Qwen2.5-1M uses DCA + sparse attention; Turbo/Plus MoE are API-only.2412.15115 β†—
Qwen
Alibaba
Qwen32025sparse MoEDense 0.6B–32B; MoE 30B / 3B active and 235B / 22B active32k native (128k YaRN; 256k in 2507 refresh)QK-Norm replaces QKV bias; MoE: 128 experts, 8 active, no shared expert; one model switches thinking/non-thinking.2505.09388 β†—
Qwen
Alibaba
Qwen3.8-27B2026SSM / hybrid27.8B dense256kApache-2.0. Qwen3_5ForConditionalGeneration (multimodal class), 64 layers, GQA 24q/4kv β€” and linear_* + mamba_ssm_dtype config keys: the hybrid linear-attention recipe now ships in the small dense tier too.report β†—
Qwen
Alibaba
Qwen3.8-2.4T-A95B2026SSM / hybrid2.45T total / ~95B active (512 experts, 10 routed)256kQwen3_5MoeForCausalLM, 92 layers, hidden 8192, GQA 64q/4kv, vocab 248k; carries the same linear/Mamba hybrid keys. Custom qwen3.8-max license. Alibaba's largest published checkpoint.report β†—
DeepSeek
DeepSeek-AI
DeepSeek LLM2024dense decoder7B / 67B4kLLaMA-style; GQA on the 67B; hyperparameter scaling-law study; permissive DeepSeek model license.2401.02954 β†—
DeepSeek
DeepSeek-AI
DeepSeek-V22024sparse MoE236B total / 21B active128kIntroduces Multi-head Latent Attention (low-rank KV compression) + DeepSeekMoE shared/fine-grained experts; ~93% KV-cache cut.2405.04434 β†—
DeepSeek
DeepSeek-AI
DeepSeek-V32024sparse MoE671B total / 37B active128kMLA; 256 routed + 1 shared experts (8 active); aux-loss-free load balancing; multi-token prediction; FP8 pretraining.2412.19437 β†—
DeepSeek
DeepSeek-AI
DeepSeek-R12025sparse MoE671B total / 37B active128kSame V3 architecture; GRPO RL for reasoning (R1-Zero: pure RL, no SFT); distilled dense 1.5B–70B releases; MIT weights.2501.12948 β†—
DeepSeek
DeepSeek-AI
DeepSeek-V3.12025sparse MoE671B total / 37B active128kOne model with thinking and non-thinking chat templates; UE8M0 FP8 scale format; long-ctx extended pretrain over V3.report β†—
DeepSeek
DeepSeek-AI
DeepSeek-V3.2-Exp2025sparse MoE671B total / 37B active128kAdds DeepSeek Sparse Attention (lightning indexer + top-k token selection) for near-linear long-context cost.report β†—
DeepSeek
DeepSeek-AI
DeepSeek-V4-Flash2026sparse MoE304.2B total (MoE)1MMIT. The fast/cheap half of the V4 line, released 2026-07-31 β€” 304B vs V4-Pro's 1.65T, same 1M-context family.report β†—
DeepSeek
DeepSeek-AI
DeepSeek-V4-Pro2026sparse MoE1.65T total / 384 routed + 1 shared (6 active)1MMIT β€” the largest permissively-licensed model here. 61 layers, MLA (128 heads, 1 KV), vocab 129k, and index_topk/index_n_heads keys: DeepSeek Sparse Attention carries into V4. Context 128k β†’ 1M vs V3.report β†—
Mistral
Mistral AI
Mistral 7B2023dense decoder7.3B8k (4k sliding window)GQA + sliding-window attention with rolling KV cache; Apache 2.0.2310.06825 β†—
Mistral
Mistral AI
Mixtral 8x7B / 8x22B2023sparse MoE8x7B: 47B / 13B active; 8x22B: 141B / 39B active32k / 64kTop-2-of-8 sparse MoE feedforward, GQA; Apache 2.0; 8x22B (2024) extends ctx to 64k.2401.04088 β†—
Mistral
Mistral AI
Mistral Large 22024dense decoder123B128kDense decoder; weights open under Mistral Research License (non-commercial), unlike Apache-2.0 siblings.report β†—
Mistral
Mistral AI
Mistral Small 3 / 3.12025dense decoder24B32k β†’ 128k (3.1)Latency-optimized shallow dense stack; Apache 2.0; 3.1 adds a vision encoder and 128k ctx; 3.2 tune follows.report β†—
report β†—
Mistral
Mistral AI
Magistral2025dense decoder24B (Small); Medium undisclosed128k (best ≀40k)Magistral Medium: RL-alone reasoning (GRPO variant) atop Mistral Medium 3; Magistral Small (from Mistral Small 3.1) adds cold-start SFT from Medium traces + RL; Small Apache 2.0, Medium API-only.2506.10910 β†—
report β†—
Mistral
Mistral AI
Mistral 3 (Large 3 + Ministral 3)2025sparse MoELarge 3: 675B total / 41B active; Ministral 3B / 8B / 14B dense256kFirst Mistral MoE since Mixtral; image understanding; NVFP4 checkpoint for Blackwell; entire family Apache 2.0.report β†—
report β†—
Gemma
Google
Gemma2024dense decoder2B / 7B8kGeGLU, RoPE; MQA on 2B, MHA on 7B; open weights under Gemma terms of use.2403.08295 β†—
Gemma
Google
Gemma 22024dense decoder2B / 9B / 27B8kAlternating 4k-local / 8k-global layers, GQA, logit soft-capping, pre+post RMSNorm; 2B/9B distilled from larger teachers.2408.00118 β†—
Gemma
Google
Gemma 32025adapter multimodal1B / 4B / 12B / 27B128k (1B: 32k)SigLIP vision encoder on 4B+; 5:1 local:global attention, QK-norm replaces soft-caps; official QAT int4 checkpoints.2503.19786 β†—
Phi
Microsoft
Phi-1 / Phi-1.52023dense decoder1.3B2k'Textbooks Are All You Need' synthetic-data thesis; phi-1 code-only, phi-1.5 common-sense reasoning.2306.11644 β†—
2309.05463 β†—
Phi
Microsoft
Phi-22023dense decoder2.7B2kScaled phi-1.5 recipe with knowledge transfer from phi-1.5 initialization; MIT-licensed in Jan 2024.report β†—
Phi
Microsoft
Phi-32024dense decoder3.8B mini / 7B small / 14B medium4k / 128k via LongRoPEmini uses a Llama-2-compatible block and runs on-phone; small adds GQA + blocksparse attention; Phi-3.5-MoE 42B/6.6B active sibling.2404.14219 β†—
Phi
Microsoft
Phi-42024dense decoder14B16kSynthetic-data-centric pretrain + pivotal-token DPO; 2025 mini/multimodal (LoRA vision-audio adapters) and reasoning variants.2412.08905 β†—
GLM / ChatGLM
Zhipu AI / Z.ai
ChatGLM-6B2023dense decoder6B2k (32k by ChatGLM2/3)GLM autoregressive blank-infilling with bidirectional prefix attention; GLM-130B (2022) was the 130B sibling.2103.10360 β†—
2210.02414 β†—
GLM / ChatGLM
Zhipu AI / Z.ai
GLM-4 (9B)2024dense decoder9B128k (1M variant)Moves to a standard causal decoder with GQA, RoPE, RMSNorm; All Tools agent tuning; GLM-4-9B-Chat-1M long-ctx variant.2406.12793 β†—
GLM / ChatGLM
Zhipu AI / Z.ai
GLM-4.52025sparse MoE355B total / 32B active; Air: 106B / 12B active128kDeep-narrow MoE; GQA with partial RoPE, QK-Norm, MTP layer, Muon optimizer; unified thinking/non-thinking; MIT.2508.06471 β†—
GLM / ChatGLM
Zhipu AI / Z.ai
GLM-4.62025sparse MoE355B total / 32B active200kSame base architecture as 4.5 with context extended 128k β†’ 200k; agentic-coding focus; MIT weights.report β†—
GLM / ChatGLM
Zhipu AI / Z.ai
GLM-52026sparse MoE744B / 40B active (~753B all-in)~200kReleased 2026-02-11/12, MIT. "From Vibe Coding to Agentic Engineering"; 28.5T-token base; DSA added via continued pre-training and called lossles2602.15763 β†—
report β†—
GLM / ChatGLM
Zhipu AI / Z.ai
GLM-5.12026sparse MoE744B / 40B active (~753B all-in)~200kReleased 2026-04-03 (HF) / 2026-04-07 (docs.z.ai), MIT. Flagship for long-horizon agentic engineering; Z.ai claims up to 8 hours of continuous aureport β†—
report β†—
GLM / ChatGLM
Zhipu AI / Z.ai
GLM-5.22026sparse MoE753B total / 40B active1MIndexShare: DSA indexer run in 21 of 78 layers, reused Γ—4; MLA base; MTP shares indices; MIT, BF16+FP8 weightsreport β†—
2603.12201 β†—
Kimi
Moonshot AI
Kimi K22025sparse MoE1.04T total / 32B active128k384 experts (8 routed + 1 shared), MLA attention, 64 heads; MuonClip kept the 15.5T-token run spike-free; modified-MIT.2507.20534 β†—
Kimi
Moonshot AI
Kimi K2 Thinking2025sparse MoE1T total / 32B active256kInterleaved step-by-step reasoning with tool calls (hundreds of sequential calls); native INT4 QAT serving; same K2 MoE base.report β†—
Kimi
Moonshot AI
Kimi K2.52026sparse MoE1T total / 32B active256Kmoonshotai/Kimi-K2.5 on HF, updated ~2026-04-30, ~1.05M downloads/mo (1,053,459); Modified MIT; iterative K2 successor before K3report β†—
Kimi
Moonshot AI
Kimi K2.62026sparse MoE1T total / 32B active256Kmoonshotai/Kimi-K2.6 on HF, updated ~2026-05-19, ~1.15M downloads/mo (1,151,976); Modified MITreport β†—
Kimi
Moonshot AI
Kimi K2.7-Code2026sparse MoE1T total / 32B active256Kmoonshotai/Kimi-K2.7-Code on HF, updated ~2026-06-15, ~722K downloads/mo (722,058); Modified MIT; last K2-family drop before K3report β†—
Kimi
Moonshot AI
Kimi K32026sparse MoE2.78T total / 16-of-896 experts + 2 shared1MOpen weights 2026-07-27 (custom kimi-k3 license, ships 8-bit). 93 layers, KDA:MLA 69:24, AttnRes, natively multimodal (image+video in), 1M ctx β€” all config-verified.report β†—
report β†—
GPT-OSS
OpenAI
gpt-oss-20b2025sparse MoE20.9B total / 3.6B active128k32 experts top-4; alternating dense + 128-token banded-sparse attention, GQA (8 KV heads), attention sinks, RoPE + YaRN.2508.10925 β†—
GPT-OSS
OpenAI
gpt-oss-120b2025sparse MoE116.8B total / 5.1B active128k128 experts top-4; MXFP4 MoE weights fit a single 80GB GPU; adjustable low/medium/high reasoning effort.2508.10925 β†—
report β†—
OLMo
Allen Institute for AI (Ai2)
OLMo2024dense decoder1B / 7B2kNon-parametric LayerNorm, SwiGLU, RoPE; Dolma corpus + full training code released; Apache 2.0.2402.00838 β†—
OLMo
Allen Institute for AI (Ai2)
OLMo 22024dense decoder7B / 13B; 32B (2025)4kReordered post-block RMSNorm + QK-norm for training stability; Dolmino mid-training mix; 32B added Mar 2025.2501.00656 β†—
OLMo
Allen Institute for AI (Ai2)
Olmo 32025dense decoder7B / 32B65kBase/Think/Instruct/RL-Zero variants; releases the full 'model flow' (Dolma 3 data, checkpoints, code).report β†—
Falcon
TII (UAE)
Falcon 7B/40B/180B2023dense decoder7B / 40B / 180B2kMultiquery (7B) / multigroup (40B, 180B) attention, parallel attn+MLP blocks; web-only RefinedWeb data; Apache 2.0 (180B custom license).2311.16867 β†—
Falcon
TII (UAE)
Falcon 22024dense decoder11B8kMulti-stage long-context training to 8k; 11B-VLM sibling adds vision; permissive TII license.2407.14885 β†—
Falcon
TII (UAE)
Falcon Mamba2024SSM / hybrid7Btrained 8k; constant-memory decodePure Mamba-1 SSM, fully attention-free (not actually a hybrid); extra RMSNorms for stability; TII Falcon license.2410.05355 β†—
Falcon
TII (UAE)
Falcon 32024dense decoder1B–10B32k (8k on 1B)GQA small models; 10B built from 7B via depth upscaling; quantized and Mamba-refresh variants in the family.report β†—
Falcon
TII (UAE)
Falcon-H12025SSM / hybrid0.5B–34Bup to 256kParallel hybrid: attention heads and Mamba-2 SSM heads run side-by-side within each block; 18 languages.2507.22448 β†—
Command
Cohere
Command R2024dense decoder35B128kRAG and tool use with grounded citations; Aug-2024 refresh (32B) adds GQA; CC-BY-NC 4.0 + acceptable-use policy.report β†—
Command
Cohere
Command R+2024dense decoder104B128kGQA; multilingual, multi-step tool use; CC-BY-NC 4.0 non-commercial license.report β†—
Command
Cohere
Command A2025dense decoder111B256kInterleaved 3 sliding-window : 1 full-attention layers with NoPE in the full-attn layers; serveable on 2 GPUs; CC-BY-NC.2504.00698 β†—
Nemotron
NVIDIA
Nemotron-42024dense decoder15B; 340B4kRoPE, squared-ReLU MLP, GQA, no biases; 340B ships Base/Instruct/Reward for synthetic-data generation.2402.16819 β†—
2406.11704 β†—
Nemotron
NVIDIA
Llama-Nemotron2025dense decoderNano 8B / Super 49B / Ultra 253B128kPuzzle NAS-compressed Llama 3 derivatives with irregular per-layer blocks; runtime 'detailed thinking on/off' toggle.2505.00949 β†—
Nemotron
NVIDIA
Nemotron-H2025SSM / hybrid8B / 47B / 56BundisclosedMajority of attention layers replaced by Mamba-2 (constant per-token compute); FP8 pretraining; 47B distilled via MiniPuzzle.2504.03624 β†—
Nemotron
NVIDIA
Nemotron Nano 22025SSM / hybrid9B (pruned from 12B)128kMamba-2-heavy hybrid reasoner, up to ~6x decode throughput vs similar-size transformers; most pretraining data released.2508.14444 β†—
Granite
IBM
Granite 3.x2024dense decoder2B / 8B dense; MoE 1B & 3B (400M / 800M active)4k β†’ 128k (3.1+)GQA, RoPE; fine-grained dropless MoE variants; 3.1–3.3 extend ctx to 128k and add reasoning + speculative decoding.report β†—
Granite
IBM
Granite 4.02025SSM / hybridSmall 32B / 9B active; Tiny 7B / 1B active; Micro 3B dense128k validated (NoPE: length-flexible)9:1 Mamba-2:transformer blocks with no positional encodings; Small/Tiny are hybrid MoE, Micro dense; ISO 42001 certified.report β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
GPT-12018dense decoder117M51212-layer decoder-only Transformer; generative pretraining + supervised task finetuning. Fully disclosed.report β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
GPT-22019dense decoder1.5B1k48-layer decoder-only; scaled GPT-1 with pre-LayerNorm tweaks. Weights fully released (staged, 2019).report β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
GPT-32020dense decoder175B2k96 layers, 96 heads, d_model 12288; alternating dense + locally banded sparse attention. Last fully disclosed GPT.2005.14165 β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
GPT-3.5 / ChatGPT2022dense decoderundisclosed (GPT-3 lineage)4k-16kRLHF-tuned GPT-3-series models (InstructGPT method). No new architecture disclosed; exact sizes undisclosed.2203.02155 β†—
report β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
GPT-42023undisclosedundisclosed (~1.8T MoE reported)8k / 32kTech report explicitly withholds size and architecture. MoE with ~16 experts widely reported (reported, undisclosed).2303.08774 β†—
report β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
GPT-4 Turbo2023undisclosedundisclosed128kCheaper, faster GPT-4 tier with 128k ctx and newer knowledge cutoff; zero architecture facts disclosed.report β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
GPT-4o2024native multimodalundisclosed128kDisclosed: one network trained end-to-end across text/vision/audio (no adapter pipeline). Size and internals undisclosed.report β†—
2410.21276 β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
GPT-4.12025undisclosedundisclosed1MAPI-focused line with 1M-token context; long-context training improvements described, architecture not.report β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
o1 (training-paradigm note)2024undisclosedundisclosed128k (preview) / 200kParadigm shift, not a disclosed arch: large-scale RL on chain-of-thought (hidden reasoning tokens). Internals undisclosed.report β†—
2412.16720 β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
o3 (training-paradigm note)2025undisclosedundisclosed200ko1 successor: further-scaled RL on CoT plus agentic tool use inside the reasoning chain. Architecture undisclosed.report β†—
OpenAI GPT + o-series
OpenAI Β· proprietary
GPT-52025undisclosedundisclosed400k (API)Disclosed only at system level: real-time router over a fast model and a deeper reasoning model. Component archs undisclosed.report β†—
report β†—
Anthropic Claude
Anthropic Β· proprietary
Claude 12023undisclosedundisclosed9k → 100k (May 2023)No arch/params ever disclosed. Training method is public: RLHF + Constitutional AI. Ctx jumped 9k→100k mid-2023.report ↗
2212.08073 β†—
Anthropic Claude
Anthropic Β· proprietary
Claude 22023undisclosedundisclosed100k (2.1: 200k)Model card covers evals and safety only; no architecture facts. 100k ctx; Claude 2.1 raised it to 200k.report β†—
Anthropic Claude
Anthropic Β· proprietary
Claude 3 (Haiku / Sonnet / Opus)2024undisclosedundisclosed200kFirst multimodal (vision-input) tier, three sizes. Model card gives evals and ctx; params/architecture undisclosed.report β†—
report β†—
Anthropic Claude
Anthropic Β· proprietary
Claude 3.5 Sonnet2024undisclosedundisclosed200kMid-generation upgrade (speed/cost/evals disclosed; later 3.5 Haiku and computer use). Architecture undisclosed.report β†—
Anthropic Claude
Anthropic Β· proprietary
Claude 3.7 Sonnet2025undisclosedundisclosed200kFirst 'hybrid reasoning' Claude: one model, optional extended-thinking token budget. Paradigm disclosed, architecture not.report β†—
Anthropic Claude
Anthropic Β· proprietary
Claude 4 family (Opus 4 / Sonnet 4, later 4.1 / 4.5)2025undisclosedundisclosed200k (Sonnet 4: 1M beta)Hybrid reasoning with tool use during extended thinking; detailed system cards published. Architecture undisclosed.report β†—
Google Gemini (+ PaLM lineage)
Google / Google DeepMind Β· proprietary
PaLM (precursor)2022dense decoder540B2kFully disclosed: decoder-only, SwiGLU, parallel layers, multi-query attention, RoPE; 540B dense trained on Pathways.2204.02311 β†—
Google Gemini (+ PaLM lineage)
Google / Google DeepMind Β· proprietary
PaLM 2 (precursor)2023undisclosedundisclosed (stated smaller than PaLM)undisclosedReport discloses compute-optimal scaling and mixture-of-objectives training but withholds size and architecture details.2305.10403 β†—
Google Gemini (+ PaLM lineage)
Google / Google DeepMind Β· proprietary
Gemini 12023native multimodalundisclosed (Nano-1 1.8B / Nano-2 3.25B disclosed)32kDecoder-only Transformers with multi-query attention; natively multimodal over interleaved text/image/audio/video.2312.11805 β†—
Google Gemini (+ PaLM lineage)
Google / Google DeepMind Β· proprietary
Gemini 1.52024sparse MoEundisclosed1M (10M in research)Tech report explicitly discloses a sparse mixture-of-experts Transformer; expert count and params withheld.2403.05530 β†—
Google Gemini (+ PaLM lineage)
Google / Google DeepMind Β· proprietary
Gemini 2.02024undisclosedundisclosed1MAgentic-era release: native tool use, native image + audio output (Flash first). Blog discloses capabilities, not architecture.report β†—
Google Gemini (+ PaLM lineage)
Google / Google DeepMind Β· proprietary
Gemini 2.52025sparse MoEundisclosed1MReport: sparse-MoE Transformers, natively multimodal, with 'thinking' (RL on chain-of-thought). Params undisclosed.2507.06261 β†—
xAI Grok
xAI Β· proprietary
Grok-12023sparse MoE314B total / ~25% active per token (2-of-8 experts)8kOpen-sourced Mar 2024 under Apache-2.0: 8-expert MoE, 2 active per token β€” the one fully disclosed Grok.report β†—
report β†—
xAI Grok
xAI Β· proprietary
Grok-1.52024undisclosedundisclosed128k128k ctx and improved reasoning/math; no architecture disclosure (1.5V added vision via unstated means).report β†—
xAI Grok
xAI Β· proprietary
Grok-22024sparse MoEundisclosed at launch128kNo disclosure at launch; weights published on Hugging Face in Aug 2025, making the large-MoE checkpoint inspectable.report β†—
report β†—
xAI Grok
xAI Β· proprietary
Grok 32025undisclosedundisclosed1MTrained on Colossus (~200k GPUs); Reasoning variants with test-time compute ('Think'). No architecture facts disclosed.report β†—
xAI Grok
xAI Β· proprietary
Grok 42025undisclosedundisclosed256kRL scaled toward pretraining-level compute; native tool use and multi-agent 'Heavy' variant. Architecture undisclosed.report β†—
Amazon Nova
Amazon (AGI) Β· proprietary
Nova 1.0 (Micro / Lite / Pro)2024undisclosedundisclosed128k (Micro) / 300k (Lite, Pro)Transformer-based per tech report; Lite/Pro take text+image+video input, Micro text-only. No params or topology disclosed.report β†—
2506.12103 β†—
Amazon Nova
Amazon (AGI) Β· proprietary
Nova Premier2025undisclosedundisclosed1MTop tier with 1M ctx, positioned as a teacher model for distillation into smaller Novas. Architecture undisclosed.2506.12103 β†—
Mistral Large (proprietary tier)
Mistral AI Β· proprietary
Mistral Large2024undisclosedundisclosed32kAPI/Azure flagship; announcement gives benchmarks, multilingual claims, and 32k ctx only. No architecture disclosure.report β†—
Mistral Large (proprietary tier)
Mistral AI Β· proprietary
Mistral Large 2 (2407)2024dense decoder123B128kDisclosed 123B dense decoder, 128k ctx; weights downloadable under the non-commercial Mistral Research License.report β†—
Reading path β€” the canon, in order
01
Attention Is All You Need (2017)
The block everything else edits. Read Β§3 twice.
02
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding (2018)
Encoder-only masked LM β€” where transfer learning in NLP clicked.
03
Language Models are Few-Shot Learners (GPT-3) (2020)
Scale as a capability: in-context learning appears.
04
LLaMA: Open and Efficient Foundation Language Models (2023)
The modern dense recipe β€” RMSNorm + RoPE + SwiGLU.
05
GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints (2023)
GQA β€” why serving cost is an architecture decision.
06
Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity (2021)
Switch Transformer β€” sparse experts made practical.
07
Mixtral of Experts (2024)
Mixtral β€” open MoE that beat dense at a fraction of active params.
08
DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model (2024)
DeepSeek-V2 β€” MLA + fine-grained MoE; the efficiency playbook.
09
Mamba: Linear-Time Sequence Modeling with Selective State Spaces (2023)
Mamba β€” the strongest attention alternative.
10
Jamba: A Hybrid Transformer-Mamba Language Model (2024)
Jamba β€” why hybrids, not replacements, ship.
11
DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (2025)
DeepSeek-R1 β€” reasoning is training, not architecture.
Sign in to continue

LLM Switchboard is private β€” sign in with Authlee to access the control room.

Sign in with Authlee
← Back to home