An open model of 2026 is still the decoder block of Topic: llm-architecture with a handful of choices changed, and two of them decide what it costs to serve: how many weights run per token (experts) and what each token leaves behind in each layer (shared heads, latents, windows, linear layers). Both can be read off a config.json in thirty seconds; in 2026 almost every model is sparse on both, in different proportions.
Fig. 1, step by step
You need: the decoder block and what a KV cache is (The transformer from zero). This page does not teach the mechanisms; it counts who uses them and links each to its owner: Attention variants (MHA, GQA, MQA, MLA, windows, sparse attention), Long context (sizing a whole cache at a context length), Beyond attention (linear and state-space layers), Mixture of experts, Positional Encodings and Normalisation, residuals and stability.
Fig. 2 reads fourteen models from Llama 3.1 8B to Kimi K3 off their own configs (src/gen_data.py): tinted cells are choices, layer counts are out of the model's layers (W the window, 1K = 1,024 tokens). Click a row to open it in Decode a config.
Bottom row, the gallery's 66 models of 2026: MLA in 16; no plain MHA at all; windows in 25; linear or SSM hybrids in 20; trained sparse attention in 11; MoE in 52 (39 add a shared expert and 31 keep their first layers dense); partial RoPE in 25; layers with no position in 5; median cache 68.6 KiB per token against 144 KiB for the 2025 models. Fig. 3 puts the same counts against 2025 and earlier.
| Delta | What it changes | Where to read it | Owned in depth by |
|---|---|---|---|
| What each token stores | KV cache per token per layer: all heads (MHA), shared heads (GQA, MQA), a compressed latent (MLA) | num_key_value_heads, head_dim, kv_lora_rank | Attention variants |
| How long it is kept | Sliding-window layers keep only the last W tokens; a few global layers keep everything | layer_types, sliding_window | Long context |
| Whether it is stored at all | Linear-attention or state-space layers keep a fixed-size state instead of a growing cache | layer_types, hybrid_override_pattern, linear_attn_config | Beyond attention |
| Which attention is computed | A trained indexer picks the top k earlier tokens per query; full attention only over those | index_topk, index_head_dim | Attention variants |
| How many FFN weights run | Mixture of experts: many expert FFNs, a router picks k per token | n_routed_experts, num_experts_per_tok, n_shared_experts | Mixture of experts |
| How position enters | RoPE on all dimensions, on part of them, or on none in some layers | rope_parameters, partial_rotary_factor, no_rope_layers | Positional Encodings |
| Stack shape | Looped layers, layers that share another layer's cache, two sublayers per layer, encoder-decoder | num_loops, num_kv_shared_layers | this page, section 10 (looped in 1, cross-layer KV sharing in 2 of the 2026 models) |
Read from each model's config by src/gen_data.py. Where the column is narrow the dense-first and held-at-131K columns are left out; Compare architectures has every field for every model.
Derived from configs; 2026 counts in brackets. The gallery is curated, not a census: read the shares as "among the models a careful observer found worth drawing".
The LLM Architecture Gallery is Sebastian Raschka's side-by-side reference of open-weight architectures: a diagram and a fact sheet per model (total and active parameters, attention and layer mix, context, licence, links to config and report) and one headline number, the KV cache per token in bf16. Its metadata is one models.yml (Apache 2.0), used here at commit 589d213 (4 October 2026, read 18 October 2026): 109 entries from GPT-2 XL to October 2026. It is a third-party summary, useful because it is consistent, not because it is primary.
Its convention (KV-cache notes): "the logical cache added by one token for one sequence", batch 1, 2 bytes per element, summed over every layer that appends to a growing cache. A sliding-window layer counts at full cost ("It changes how long a token remains in the cache"), linear and state-space layers count 0 B with their fixed state kept outside the number, and MLA counts its latent, not expanded keys and values. The root's Architecture map (on Topic: llm-architecture) and this page use the same convention and add a second number with the windows credited.
How this page rebuilt it. For the 105 of the 109 models whose config this page could read, the script reads the saved config.json (public mirrors for gated Meta and Google repos; nothing is downloaded at build time), decodes one code per layer for mixer, FFN and position, sums the cache layer by layer and compares with the gallery.
global_head_dim 512 (transformers 5.20.1). MiMo-V2-Flash and MiMo-V2.5: 217.5 KiB, not 144: the config gives sliding layers their own 8 KV heads and 128-dimension values. LongCat-Flash-Lite: 31.5 KiB, not 63: 14 config layers of two MLA sublayers are 28 caches, not 56. Step 3.5 Flash: 180 KiB against 192 is a convention, not an error (the gallery adds the 3 multi-token-prediction layers). Orange: correction; teal: convention. The full arithmetic of each side is below.Orange: correction; teal: convention. Change against the gallery on the right.
The lesson of this page's first build: a curated table is only as good as its recomputation. Two of the six overstate the cache by about 1.5 to 2 times because they ignore cross-layer sharing. Recompute every row you rely on and publish the match count.
Five questions, in this order; each answer predicts something different.
mla_use_nope).The card is a summary; config.json is what the loading code reads, so when they disagree the config wins for that checkpoint. Each strip comes from a handful of fields, and every lab spells them differently. Decode a config shows, for any of the 105 models, exactly which fields were read and what each set.
| To know | Read | Watch for |
|---|---|---|
| Layers and width | num_hidden_layers, hidden_size | n_layer (GPT-2), num_layers (LongCat), n_layers and dim (Mistral's params.json) |
| Cache per attention layer | num_key_value_heads × head_dim, or kv_lora_rank + qk_rope_head_dim for MLA | KV heads under another name (num_attention_groups in Step); head_dim that is not hidden_size / num_attention_heads (Gemma, Qwen3) |
| Which layers do what | layer_types | Eleven other spellings in this set: hybrid_override_pattern (Nemotron), layers_block_type, attn_type_list (MiniMax), linear_attn_config.full_attn_layers (Kimi, counted from 1), hybrid_layer_pattern (MiMo), gqa_layers, local_layer_ids, sliding_window_pattern (an integer, or the string "interleave" in Motif), full_attention_interval, no_rope_layers (Llama 4), compress_ratios (DeepSeek V4) |
| Window | sliding_window | sliding_window_size, attention_chunk_size (Llama 4 chunks), a window set but switched off by use_sliding_window: false |
| Experts | n_routed_experts, num_experts_per_tok, n_shared_experts, first_k_dense_replace | num_local_experts, moe_topk, moe_layer_freq (a list), mlp_only_layers, interleave_moe_layer_step |
| Position | rope_theta, rope_scaling | Nested per layer type in rope_parameters (Gemma 4); per-layer lists of bases and rotary fractions (Step); partial_rotary_factor |
| Context | the model card | max_position_embeddings is a limit in the code, not the trained context (MiniMax-M1's is 10,240,000; Qwen3's 40,960 against a 32,768 native context, per the root page) |
The two classic misreadings, deriving head_dim from hidden_size and reading max_position_embeddings as trained context, are worked on the root page's section 11 (Topic: llm-architecture).
Traps met building this page, each real:
text_config (Gemma 4, Qwen3.5, Kimi K3); DeepSeek V4.1-Flash stores its text_config as a Python-repr string, V4-Pro its compress_ratios as a string holding a list; Mistral Large 3 ships params.json with its own key names.config.json. This page's earlier build had nine such files (eight from gated repos, one "Entry not found"), among them unsloth__Meta-Llama-3-8B.json containing only Invalid username or password.; those models were silently skipped. Parse every download and fail loudly; Llama 3 8B now comes from the public mirror unsloth/llama-3-8b.layer_types has 48 entries for 45 decoder layers: the last three are its multi-token-prediction layers.head_dim 256, but transformers gives its global layers global_head_dim 512 and lets its last 20 layers reuse earlier caches; Motif 3 has kv_lora_rank like MLA, but its released code caches the expanded keys and values. Both are settled only by the modeling code (section 1).The start of the mixer branch of src/gen_data.py (the same branches as the root map's build_map.py):
A card's "52 sliding-window + 10 global" hides where those layers sit, and placement matters: Gemma 3 puts a global layer after every five windowed ones, so information never travels more than five layers before it can reach the whole context. The strips draw each layer in order, left (next to the embedding) to right (next to the output head), every model stretched to the same width; Fig. 1 drew five of these stacks as towers, and each strip flattens one to a row.
How to read one. Blue (full attention), green (MLA) and purple (trained sparse) cells grow a cache with every token; teal (windowed) cells stop at W and yellow (linear) cells keep a fixed state. Orange cells in the middle bar are expert layers, so a grey first cell is the dense prefix DeepSeek-style models keep. A black cell (white in dark mode) in the bottom bar is a layer with no positional encoding: Llama 4 Maverick's every fourth layer, SmolLM3's every fourth, Kimi K3's attention layers. Compare architectures has the strips of every model, sortable and filterable.
Seven colours, seven answers to one question: what must this token leave behind in this layer so later tokens can use it? A key and value for every query head (MHA), one per group (GQA) or one for all (MQA), a latent every head rebuilds from (MLA), the same entries for the last W tokens only (window), all entries kept but only the top k read (trained sparse), or a fixed-size state (Gated DeltaNet, KDA, Mamba-2). How each works is on Attention variants and Beyond attention; this page's question is which answer each released model chose, and in what mixture.
Three bars per model: mixer, FFN, position; on the right the KV cache per token in bf16, card convention. Click a name to open it in Decode a config. The tiny GPT is this topic's running example (6 layers of multi-head attention with learned positions, 6,144 bytes per token).
Every decoded token reads the keys and values of every earlier token in every attention layer, so the bytes per entry are decode time as well as memory. At Llama 3.1 70B's shape with all 64 heads (MHA) that would be 2,560 KiB per token, 320 GiB for one 128K request; GQA keeps one key and value head per group (Llama 3.1 70B: 64 query heads, 8 KV heads, 320 KiB per token), and MLA a 512-number latent plus a 64-number positional key per layer whatever the head count (DeepSeek-V3: 61 × 576 × 2 = 68.6 KiB per token). Fewer KV heads cost a little quality and MLA costs extra projections and its own kernels; why, and how MLA rebuilds the heads, is on Attention variants. Fig. 6 shows what released models chose.
Across the whole gallery (Fig. 7), the median halved in a year and the spread stayed a hundredfold: in the gallery's 2026 models the median is 68.6 KiB per token against 144 KiB for the 2025 models, and Nemotron 3.5 Lightning keeps 6 KiB per token, Gemma 4 31B 840 KiB.
How to check: num_key_value_heads × head_dim × 4 bytes per attention layer (K and V, 2 bytes each), or (kv_lora_rank + qk_rope_head_dim) × 2 for MLA, then count the layers that grow a cache. The table does that for ten models.
KV cache per token, card convention, bf16, every gallery model with a config (DeepSeek V4's compressed caches and xLSTM's state-only stack left out); dots coloured by attention family, the bar marks the median. Derived from configs.
Most layers attend only to the last W tokens (a sliding window) and every few layers a global layer attends to everything. A windowed layer stores the same entry per token as its base design but drops entries older than W, so one request at context T holds the sum over layers of bytes per token × min(T, W). That is why the card's figure, which counts windowed layers at full cost, overstates a windowed model's long-context cache. The price: information more than W tokens back reaches a token only through the global layers, so exact retrieval far back depends on how many there are. What windows cost in recall is on Attention variants and Long context; this section counts who uses them.
The ratios released. The local-to-global ratio runs from 1:1 (gpt-oss) through 3:1 (11 models, the most common) to 5:1 (Gemma 3 and 4), and windows from 128 tokens (11 models, gpt-oss and MiMo among them) to 8,192 (Llama 4's chunks). How to check: count sliding_attention entries in layer_types, read sliding_window, then credit them; below W the two numbers coincide.
Every windowed model in the gallery with a computable cache, sorted by the factor on the right; log scale, bf16, derived from configs. Crediting the windows cuts the long-context cache 2 times for gpt-oss and 18 times for Gemma 4 31B: 840 KiB per token on the card, about 46 KiB per token at 131,072 tokens, 105 GiB against 5.8 GiB for one request. The top of the list is Gemma 4 12B at 31.2 times.
A hybrid replaces most attention layers with a recurrence that folds each token into a fixed-size state: Gated DeltaNet in Qwen3-Next and Qwen3.5 to 3.8, Kimi Delta Attention in Kimi Linear and Kimi K3, Mamba-2 in Nemotron 3 and Granite 4.0-H, lightning attention in Ling, short convolutions in LFM2.5. The state is a lossy summary, so every released hybrid keeps some attention layers for exact recall; the question the configs answer is how many. The mechanisms are on Beyond attention.
The state is a cost too. Below some context a hybrid holds more state than cache (the closed table gives, per model, the context at which the fixed state equals the growing cache). How to check: count linear_attention, mamba or M entries; the state per layer is heads × key dim × value dim (heads × head dim × state size for Mamba-2), in FP32. Calling a hybrid "cache-free" is wrong on both counts: Kimi K3's attention layers still grow 27 KiB per token, and its 414 MiB of state is larger than the cache up to about 15,700 tokens.
How many attention layers to keep is the design question, and Fig. 11 sets the one published ablation beside what the released hybrids chose: the market settled near 3 : 1, which is also where the ablation's perplexity bottoms out.
Top, published (vendor): Moonshot's Kimi Linear ablation (arXiv 2510.26692, Table 1), validation perplexity 5.65 at 3:1 against 5.66 at 1:1, 5.70 at 7:1, 5.82 at 15:1 and 5.77 for the pure full-attention baseline (0:1). Bottom, derived from configs: every gallery hybrid with attention layers at its own linear-to-attention ratio (Nemotron's FFN-only blocks left out); 13 of the 23 sit between 2.9 and 3.1 to 1, the rest from 1.7:1 (LFM2.5) to 7:1 (Ling). Two sources on two panels: one vendor's small-scale ablation is not evidence about the other models.
A mixture-of-experts (MoE) layer holds many expert FFNs and a router sends each token to k of them, often plus an always-on shared expert; many models keep their first layers dense. Of the gallery's 2026 models with a config, 52 of 66 are MoE; 39 of those add a shared expert and 31 keep a dense prefix; 8 experts per token is the most common choice (31 models). Routing, balancing and expert parallelism are owned by Mixture of experts.
What it means for serving. All experts must be in memory, so the total, not the active count, sets the hardware; at small batch, decode reads every expert some token picks. The MoE choice and the attention choice are independent: Kimi K3 is extreme on both.
Across the gallery (Fig. 13) the active share falls as models grow. How to check: n_routed_experts, num_experts_per_tok, n_shared_experts, and the dense prefix from first_k_dense_replace or a per-layer list.
Active parameters as a share of total, every MoE model of 2025 and 2026 in the gallery, against total parameters (both from the gallery's lines, gallery, from vendor cards). From 500B parameters up, 21 of 22 models run 2.9 to 6.4% of their weights per token (DeepSeek V4-Pro 3.1%, Kimi K2.5 to K2.7 3.2%, Kimi K3 3.7%; the exception, Nemotron 3 Ultra, 10%); at 35B and below the share is 8 to 21% (Mellum2 Thinking 20.8%).
Position. Almost every model rotates queries and keys by their position (RoPE, 61 of the 66 models of 2026), and the deltas are in the details, each readable from the config and visible in the bottom strip: partial RoPE (rotate only some dimensions: 25 models, the Qwen3.5 to 3.8 line and Gemma 4's global layers among them); no position in some layers (5 models in 2026: Kimi K3 and Ember-1 in all 24 attention layers, Solar Open 2, Muse Glimmer, GLM-5.3-Flash; earlier Llama 4 Maverick in 12 of 48 and SmolLM3 in 9 of 36); different bases per layer type (10,000 on local layers against 500,000 to 10,000,000 on global ones in Gemma 4, MiMo, Laguna and Naive); and scaling past the trained length (YaRN factors in 9 of the 2026 configs). Why each works is on Positional Encodings; read rope_parameters per layer type.
Norms and gates: on the card, rarely in the config. Pre-norm RMSNorm is close to universal; the 2025 to 2026 deltas are QK-norm (an RMSNorm on queries and keys before the dot product, which bounds attention logits), extra norms after each sublayer (OLMo 2, Gemma's sandwich) and output gates on attention (Qwen3-Next, Trinity, Laguna, Kimi K3's "Gated MLA"). The modeling code does these, not config fields, so this page does not decode them; the gallery's attention line names QK-norm for 19 of the 2026 models, an undercount because it is named only when the card mentions it. The root Architecture map (on Topic: llm-architecture) records norm placement and QK-norm, sourced, for its 46 lineage models; Normalisation, residuals and stability owns why they work.
Everything above assumes one causal stack, each layer run once with its own cache. Four 2025 to 2026 designs break that, and each changes the cache arithmetic, which is why the number of layers in a config is not the number of caches.
total_ut_steps 4) and each pass keeps its own cache: 384 KiB per pass, 1.5 MiB per token, the largest per-token cache in the gallery, from a 2.6B model. Nanbeige 4.2 runs 22 layers twice (num_loops 2). Whether every pass needs its own cache, and why two loops is the usual stopping point, is research in progress (closed block below).num_kv_shared_layers; transformers, modeling_gemma4.py, is_kv_shared_layer). 15 caches, 18 KiB per token: this page's section 1 correction. Gemma 4 E4B shares its last 18 of 42.modeling_longcat_flash.py): 14 layers in the config, 28 caches, 31.5 KiB per token for LongCat-Flash-Lite.Compressed caches are the fourth design. DeepSeek V4 compresses most layers' entries 4 times (CSA) or 128 times (HCA) along the sequence (the mechanism is on Attention variants). From compress_ratios, in the gallery's bf16 convention (512 numbers per entry, indexer keys and the 128-token windows left out): V4-Pro 30 CSA + 31 HCA layers, 7,928 bytes per token, which reproduces the gallery's 7.7 KiB; V4-Flash 21 CSA + 20 HCA layers plus 2 window-only layers, 5,536 bytes, the gallery's 5.4 KiB. DeepSeek V4.1-Flash goes further, an encoder whose final state feeds the decoder's keys and values (gallery; detailed, with its 890 bytes per token at FP4, on DeepSeek). The DeepSeek page's own V4-Pro estimate, 4,939.5 bytes per token, uses FP8 main entries and FP4 indexer keys: a different precision convention, not a contradiction.
Multi-token prediction (MTP) layers, extra heads that predict tokens further ahead and double as a draft model (Families and objectives), are a fifth: used at inference they keep caches too, which is the whole difference between this page's 180 KiB and the gallery's 192 KiB for Step 3.5 Flash.
The cache per pass is a training choice, not a law: as the recurrent states approach fixed points, later passes can share the last pass's keys and values (terminal KV sharing) "with almost no loss in accuracy", and at 1.6B a learned depth prior with a 3x smaller KV cache matched fixed-depth training with the full cache; fixed-depth training is what breaks sharing (Looped Models Done Right, Part II (arXiv 2610.06833)).
Why two loops is the usual stopping point: hidden-state variance grows with each loop, and in a looped MoE the routers pick the same experts every pass, so extra loops add FLOPs without new computation; scaled residuals, input re-injection and per-loop routers kept 100M to 1.7B models stable to 9 to 12 loops, with a near-iso-FLOP 700M model best at 5 (LOOM (arXiv 2610.01153)).
The first scaling law fitted jointly over recurrence, sparsity, size and data puts recurrence at about 2x total-parameter efficiency on reasoning (sparsity about 3x active-parameter efficiency), and at trillion-token scale and matched training compute a looped MoE with law-derived recurrence matched a non-looped MoE about twice its size on reasoning benchmarks (Scaling Laws for Looped MoE (arXiv 2609.40316)).
Every cache figure here was checked four ways, configs only, on an Apple M1 Pro (CPU):
src/checks/hf_layer_types.py builds each config with its transformers 5.20.1 configuration class (no weights, no network) and compares the per-layer list transformers derives with this page's mixer strip. 59 models agree layer for layer, 0 differ; the other 49 cannot be checked this way.src/checks/cc_agree.mjs runs the root page's Config calculator (on Topic: llm-architecture) code on every gallery config it models and compares the KV cache at 1; 1,000; 4,096; 32,768 and 131,072 tokens with windows credited: all 46 models agree, 230 numbers, all equal (the calculator includes DeepSeek V3.2's indexer keys, as this page's "with indexer" figure does), checked 2026-10-23. The four Nemotron 3 MoE configs agree since the calculator learned their latent MoE layers that day; before, it refused them.measured means a script ran over saved configs; nothing depends on the machine. gallery marks fields read from models.yml (third-party summaries of vendor cards: release dates, total and active parameters, licences). derived marks numbers computed from configs.
Of the 49: 19 need custom code (no class in transformers), 2 configs are rejected by their class (a non-finite number inside a list, a field type), and 28 classes keep no per-layer list, 26 of them for stacks this page also draws as uniform; the other two are Inkling (windows from local_layer_ids) and MiniMax M3 (three dense layers, from its model card). Excerpt of src/checks/hf_layer_types.py and its last lines of output:
The published reason is DeepSeekMoE's: it kept the first layer of its 16B model dense “since we observe that the load balance status converges especially slower for the first layer” (Dai et al. 2024, DeepSeekMoE, section 5.1.2). The wider argument, that early representations are barely differentiated by token type so routing on them is close to random, is unsourced here. 31 of the 52 MoE models of 2026 in the gallery do it, most with one to three dense layers. The mechanism and its evidence belong on Mixture of experts.
Built 2026-10-18 from Sebastian Raschka's LLM Architecture Gallery (models.yml at commit 589d213, Apache 2.0) and the config.json of each model; how it was built is in this page's src/README.md. Corrections to the gallery are this page's reading of the configs and the modeling code, not the gallery author's.
Pick any model: on the left, the fields of its config.json that this page's script actually read, in the order it read them; on the right, what they decode to (the three strips, the cache arithmetic line by line, experts and position) and how that compares with the gallery's card. Turn on predict first to hide the right-hand side until you have worked the cache out from the fields yourself.
The decoder walks the stack one layer at a time, adding what each layer keeps for one token. The left counter is the card's convention (every growing layer at full cost); the right one credits windows at 131,072 tokens, so a windowed layer adds only its window's share. Same input, same layers, two answers. It opens on the last layer, with the totals; press play or drag the slider to walk it, and pick another model above.
full_attention_interval 4, 2 KV heads of 256. How many bytes per token does its cache grow by?Fields are copied verbatim from the saved config (null where the key is present and empty). The cache arithmetic is bf16; this tab's numbers are checked against the page's Python (src/gen_data.py) for every model by src/checks/check_data.py.
Every model of the gallery, with its three per-layer strips rebuilt from its own config, its KV cache per token next to the gallery's figure, and whether they agree. The scatter puts the cache on a release-date axis; switch it between the card's convention and the cache actually held at 131,072 tokens and watch the windowed models fall.
Log scale, bf16, derived from configs; DeepSeek V4 shows the gallery's compressed figure in both modes; xLSTM (no growing cache) is left out. Click a dot to select the model in the table and the diff.
Below the scatter: every model's three strips, its cache against the gallery's and whether they agree (filter by family or name, sort by any column, click a row), then a field-by-field diff of any two models.
The parent topic and its tabs, the sibling pages that own each delta, the lab and paper pages behind the models, and the best outside resources, each with an approximate time. Outside sources are marked maker (written by the lab that builds the model or library) or third-party. Links checked 2026-10-18.
Five released stacks in 3D, fourteen models by design choice, the gallery and its six corrections, reading a card and a config, the strips, each delta drawn from real configs (six 3D figures), the checks. about 28 min, plus 9 in closed details
Any of the 105 configs: the fields read, what each set, the cache arithmetic, layer by layer. 4 min, more if you predict first
Every model's strips and cache against the gallery's, a scatter over time, a diff of any two: a lookup, not a read. 5 min to use; 17 min to read every row
The block and its alternatives at root depth; its Architecture map (the lineage from GPT-2, norms and QK-norm per model), Config calculator (parameters and FLOPs for any config, Nemotron 3 included), Block lab and Inside a real model. 23 min, plus 13 in closed details
Why sharing keys and values costs little, MLA's factorisation and absorbed form, sliding windows, sparse attention, sinks. 37 min, plus 28 in closed details
The memory and compute side of length, and the KV-cache calculator that replaces this page's former Cache at context tab: cache growth and compression, local and global layers, effective context. 22 min, plus 13 in closed details
SSMs, Mamba, linear attention, RWKV, gated DeltaNet and the hybrids of section 7. 37 min, plus 20 in closed details
Routers, balancing, fine-grained and shared experts, expert parallelism. 35 min, plus 21 in closed details
RoPE derived, partial RoPE and NoPE, scaling past the trained length. 40 min, plus 21 in closed details
Pre-norm, RMSNorm, QK-norm, sandwich norms, loss spikes. 31 min, plus 15 in closed details
Decoder-only against encoder-decoder, multi-token prediction, diffusion LMs. 34 min, plus 14 in closed details
One block, every shape, a GPT you train: the tiny GPT drawn in section 4. 40 min, plus 22 in closed details
The vocabulary sizes in the diff table, and what they cost. 46 min, plus 15 in closed details
What DeepSeek chose at each generation (MLA, DSA, V4's compressed caches) and the V4.1-Flash encoder-decoder; the MLA before/after explainer now lives on Attention variants. about 24 min
Gated DeltaNet hybrids from Qwen3-Next to Qwen3.8, and QSA. about 26 min
KDA and the Kimi Linear and K3 hybrids. about 38 min
GLM-5's sparse attention and the GLM-5.3-Flash hybrid. about 32 min
Sliding windows animated, Mistral Large 3's MLA MoE. about 26 min
Lightning attention, the return to full attention in M2, sparse attention in M3. about 25 min
Paged allocation, continuous batching, prefix caching: what the server does with the bytes. about 37 min
Why bytes per token become decode speed. about 27 min
FP8 and FP4 caches, the other factor of two. about 34 min
Whether a published context length is usable. about 27 min
The MLA plus fine-grained MoE template most 2026 MoE models follow. about 1 h
The selective state-space layer under the Nemotron and Granite hybrids. about 24 min
The first widely deployed open MoE, 8 experts and 2 per token. about 24 min
The dense GQA counterpoint and its RoPE scaling. about 1 h
A dense and MoE ladder with QK-norm. about 27 min
Post-sublayer norms and QK-norm, with ablations. about 29 min
The reference this page rebuilds: a diagram and fact sheet per model, and a compare view. about 45 min to browse
The exact per-token conventions for GQA, MLA, shared KV, looped depth, compressed caches and hybrids. 10 min
models.yml, the fact sheets as data, Apache 2.0. 15 min
The written walkthrough of the same models, updated as they appear. about 1 h
KDA, the 3:1 ablation of section 7, NoPE in the MLA layers. about 1 h
Where a config becomes a cache: gemma4/configuration_gemma4.py, longcat_flash/modeling_longcat_flash.py, zaya/modeling_zaya.py (read here at 5.20.1). as needed