The block: A GPT-2 block with three changes the code itself lists (LayerNorm → RMSNorm, no biases, GeLU → ReLU), plus an RMSNorm on the embeddings, no final norm, an untied output head and no dropout. Position embeddings are learned, as in GPT-2. There is no causal mask: tokens go through one at a time and each token's key/value is appended to the cache before it attends, so it sees only itself and earlier positions. (1 layer, width 16, 4 heads, context 16; Adam lr 0.01 decaying linearly, 1,000 steps; weights ~ Gaussian with std 0.08) Loss goes from ~3.3 (random guessing over 27 tokens) to ~2.37, per the post.
Build it up one piece at a time (6 steps)
- train0.py — Bigram count table, with no neural net and no gradients
- train1.py — MLP, manual gradients (numerical and analytic) and SGD
- train2.py — Autograd (the Value class), replacing the manual gradients
- train3.py — Position embeddings, single-head attention, rmsnorm and residuals (the revision docstring also lists a separate lm_head)
- train4.py — Multi-head attention and a layer loop, giving the full GPT architecture
- train5.py — Adam optimizer; this file is train.py
| Stage | microgpt | Production | In this guide |
|---|---|---|---|
| Data | 32,033 names, one per line. Each name is a document, and one document is used per training step. | Trillions of tokens of web pages, books and code. The data is deduplicated, filtered for quality and mixed across domains (per the post). | Small-but-Mighty LMs (MobileLLM / SmolLM) |
| Tokenizer | Character-level: 26 letters plus BOS gives 27 token ids. BOS marks both the start and the end of a name. | Subword BPE merges frequently co-occurring characters into single tokens, for a ~100K vocabulary. Each position then carries more text. The post names tiktoken (used by GPT-4). | Original GPT-style Decoder-Only Transformer Byte-Level Models (Byte Latent Transformer) |
| Autograd | A scalar Value class in pure Python. backward() applies the chain rule in reverse topological order. | Tensor autograd in libraries such as PyTorch, running on GPUs/TPUs. Fused CUDA kernels such as FlashAttention add speed. The math is the same, with many scalars processed in parallel. | — |
| Architecture | 1 layer, width 16, 4 heads, 4,192 params. A GPT-2 block with RMSNorm, no biases, ReLU and learned positions. | The same attention plus MLP on a residual stream, but 10,000+ wide and 100+ layers deep. The post's added blocks are RoPE, GQA (smaller KV cache), gated linear activations and MoE layers. | Original GPT-style Decoder-Only Transformer Modern 'Llama recipe' Dense Transformer MHA → MQA → GQA (KV-head sharing) Classic Token-Choice Top-k MoE (Shazeer / GShard / Switch) Fine-Grained + Shared-Expert MoE (DeepSeekMoE lineage) |
| Training | One document per step with no batch dimension. The forward pass runs one token at a time, followed by one backward pass. | Batches of millions of tokens per step, gradient accumulation, and fp16/bf16 mixed precision. A frontier model takes thousands of GPUs running for months. | — |
| Optimization | Adam (lr 0.01, b1 0.85, b2 0.99) with linear LR decay and nothing else: no warmup, no weight decay. | LR, weight decay, betas, warmup and decay are tuned per size, batch and data mix, in bf16 or fp8. Scaling laws such as Chinchilla split compute between parameters and tokens, and small runs predict the settings. | 1-bit / Ternary-Native LLMs (BitNet b1.58) |
| Post-training | None. microgpt stops at a pretrained document completer that 'hallucinates' names. | First SFT: swap the documents for curated conversations and keep training. Then RL: model responses are scored by humans, a judge model or an algorithm, and the model learns from those scores. | "Reasoning Models" (o1 / R1) — Training, Not Architecture |
| Inference | Explicit per-sample KV cache and temperature-0.5 sampling, one token at a time, stopping at BOS or 16 tokens. | Batched requests, paged KV-cache management (vLLM etc.), speculative decoding, int8/int4 quantization, and the model sharded across multiple GPUs. | MHA → MQA → GQA (KV-head sharing) Multi-head Latent Attention (MLA) Compressing the KV inside attention (CSA/HCA, CCA, keys-as-values) Multi-token prediction heads (MTP) Block-diffusion speculative drafters (DFlash, 2026) 1-bit / Ternary-Native LLMs (BitNet b1.58) |
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.
Papers & references (2)
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.
Papers & references (4)
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.
Papers & references (7)
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.
Papers & references (5)
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.
Papers & references (10)
Since 2017 every block has read from and written back to one residual stream. Hyper-connections widen it: run N streams in parallel and learn how each block's input is drawn from them and how its output is distributed back. The danger is that a freely-learned mixing matrix destroys the identity path that makes deep networks trainable at all, so mHC — Manifold-Constrained Hyper-Connections — projects the mixing matrices onto the Birkhoff polytope (the set of doubly-stochastic matrices) using Sinkhorn-Knopp iteration, which alternately normalizes rows and columns until both sum to one. A doubly-stochastic mix redistributes signal between streams without amplifying or attenuating it, which is what keeps the residual path well-behaved. The shipped configs are unusually legible about this. GLM-5.3-Flash sets mhc: true, hc_mult: 4 (four streams) and hc_sinkhorn_iters: 20 with hc_eps 1e-6. Qwen3.8-Flash-Next carries hc_count: 4 with hc_lowrank: 320 against a hidden size of 2,560 — the same four streams, with the mixing factored low-rank. Tencent's Hy4-preview ships a variant it calls iHC (identity Hyper-Connections) with enable_ihc: true, hc_mult: 4 and hc_magnitude: 2.0. Three independent labs, three codebases, all at exactly four streams. Note the literature has already moved past what GLM shipped: mHC-lite is titled, in so many words, "You Don't Need 20 Sinkhorn-Knopp Iterations" — and 20 is exactly what the GLM-5.3-Flash checkpoint runs.
Papers & references (4)
In a PreNorm transformer the residual stream is a running sum: layer n sees everything before it, each contribution weighted identically at 1.0. The Kimi team's argument is that this is doing real damage at depth — uniform accumulation causes uncontrolled hidden-state growth and progressively dilutes any single layer's contribution, since one new output is added to an ever-larger sum. AttnRes replaces the accumulation with softmax attention taken over the outputs of preceding layers, so aggregation along the depth axis becomes learned and input-dependent rather than fixed. Attending over every preceding layer output is expensive in memory and cross-stage communication, so the shipped form is Block AttnRes: layers are partitioned into blocks and the attention runs over block-level representations, with cache-based pipeline communication and a two-phase computation strategy. The reported effect is more uniform output magnitudes and a better-distributed gradient across depth. This entry exists because the atlas already had the evidence and not the name: the Kimi K3 deep dive recorded `attn_res_block_size: 12` straight out of the released config without being able to say what it was. It is this — Block AttnRes with block size 12. The check that makes it solid is the negative control: Kimi K2.5's config carries no attn_res field at all, so this is K3-specific machinery rather than something inherited across the family.
Papers & references (2)
Two long-standing oddities of trained transformers are attention sinks (a handful of tokens absorbing enormous attention mass) and residual sinks (a few dimensions carrying persistently huge activations). Both are usually treated as artifacts to be worked around, and both are exactly what makes low-bit quantization hard, because one outlier dimension sets the scale for everything. This paper's claim is that they are functional: together with softmax and RMSNorm they act as an implicit rescaling of the non-outlier components, so the outliers serve as rescale factors rather than as contributors. That reframing yields a prescription. If the network is growing outliers because it needs a rescaling knob, hand it one explicitly, and it will stop. GatedNorm does that — a lightweight elementwise low-rank self-gate applied after normalization, GatedNorm(u) = RMSNorm(u) ⊙ σ(W2·SiLU(W1·RMSNorm(u))). The reported evidence is nicely symmetrical: removing normalization kills the outliers but hurts stability, and clipping the outliers while keeping normalization also degrades — but absorbing the rescaling into learnable parameters recovers about two points on average and, tellingly, makes W4A4 quantization far more robust (1.2 points of degradation). That last number is the practical point: outliers are the reason 4-bit activations are hard, so a model that no longer needs them quantizes better by construction.
Papers & references (2)
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.
Papers & references (3)
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.
Papers & references (2)
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.
Papers & references (6)
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.
Papers & references (3)
Trained sparse attention (DSA, NSA) put a small learned 'indexer' in front of full attention to pick which past tokens each query may look at. The 2026 versions change the unit of selection from the token to the block. Qwen states the change plainly for its Qwen Sparse Attention: "Rather than selecting individual tokens for processing, QSA operates at the micro-block level. This cuts long-context latency significantly, a critical gain as agentic workloads increasingly dominate real-world usage." Selecting blocks means the indexer scores far fewer candidates, and the tokens it admits arrive contiguously, which is what the memory system actually wants. GLM-5.3-Flash's config reaches the same place from the DSA side: its indexer carries index_kpool 4 with index_kpool_compress true, i.e. keys are pooled into compressed groups of four before scoring, plus index_kpool_always_select_tail true — the most recent block is admitted unconditionally, so local context is never a casualty of a bad routing decision. The indexers themselves are deliberately cheap: Qwen runs its as MQA with 4 query heads over 1 shared key head at head_dim 128; GLM runs 32 indexer heads at head_dim 128 and shares the index across multi-token-prediction iterations (index_share_for_mtp_iteration). The convergence worth noticing is the budget. GLM-5.3-Flash sets index_topk 2048; Qwen3.8-Flash-Next sets indexer_budget 2048 with indexer_compress_ratio 4. Two independent labs, two different codebases, the same number of admitted tokens per query.
Sparse attention picks a subset of past tokens to attend to. This family attacks the same cost from the other side: make each cached entry smaller, or make fewer of them exist. Three shipped variants show the range. DeepSeek-V4 interleaves two compressed-KV regimes layer-wise: Compressed Sparse Attention squeezes every m KV tokens into one entry with learned compression weights and then runs top-k lightning-indexer selection over those compressed entries plus a sliding window for local detail, while Heavily Compressed Attention uses the same primitive far more aggressively and then runs ordinary dense attention over the resulting short stream. The step beyond the atlas's existing DSA/NSA entry is that selection now happens over sequence-compressed KV rather than raw KV, and that two differently-compressed regimes coexist in one stack. Compressed Convolutional Attention goes further still: it down-projects queries, keys AND values into a shared latent and performs the entire attention operation inside that latent, never decompressing — which is the sharp difference from MLA, where the latent is a cache format that gets expanded or absorbed for the actual attention. Because Q is compressed too, CCA cuts parameters, cache and attention FLOPs together, so it speeds up prefill and training rather than only decode; it composes with head-sharing as CCGQA. Gemma 4 takes the bluntest route of all and simply deletes the value projection in global layers — 'we improve memory efficiency by re-using keys as values in the global attention layers' — then adds cross-layer KV sharing on the E2B/E4B variants (later layers reuse KV computed earlier, at ratios of 20/35 and 18/42), on top of a 5:1 local-window-to-global interleave and p-RoPE. Google reports these together cut the global KV footprint by up to 37.5%.
Papers & references (3)
Trained sparse attention replaces the quadratic attention matrix with a top-k selection, but the selector itself still has to score every past token against every query — so the indexer inherits exactly the O(L²) cost the scheme was meant to remove, and at long context it becomes the bottleneck. IndexCache's observation is that the indices chosen at one layer are highly reusable at the next. Layers are split into two roles: 'full' layers run their own lightning indexer, and 'shared' layers skip it entirely and reuse the top-k selection from the nearest full layer above them. The paper reports removing about 75% of indexer compute on a 30B DSA model for 1.82× faster prefill and 1.48× faster decode at negligible quality cost. What makes this atlas-worthy rather than a paper curiosity is that it is already in production at two unrelated vendors — and with the same split. Both Tencent's Hy4-preview and Z.ai's GLM-5.3 carry an indexer_types array of 78 entries reading 21 'full' against 57 'shared'. Two labs, same architecture-level decision, to the layer.
Papers & references (2)
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.
Papers & references (8)
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.
Papers & references (4)
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.
Papers & references (4)
MoE decouples parameters from FLOPs by activating a subset of experts. Qwen's argument is that embeddings decouple them further, and better: "Embeddings provide a unique axis for parameter scaling that requires less computation and is more amenable to offloading than Mixture-of-Experts (MoE). By indexing with short n-grams, this approach makes parameter scaling highly efficient for memory-constrained accelerators without sacrificing quality." The implementation is a 20,000,000-entry table of bigrams and trigrams (ngram_size 3, ngram_vocab_size_base 20,000,000), injected at a single layer — ple_layer_ids [2], i.e. layer 2 — with heads_per_ngram 8 and the table sharded into split_ngram_parts 128 pieces. The card's own parameter accounting keeps it separate from the model proper: "125B with 6B activated, plus 51B n-gram embedding and 4B MTP". So roughly a third as many parameters as the entire rest of the network sit in a lookup table that never participates in a matrix multiply. Because a table lookup is a gather and not compute, those 51B can sit in host memory and be fetched, which is exactly what "amenable to offloading" is doing in that sentence — the accelerator holds the 125B, the host can hold the rest. The mechanism also rhymes with per-layer embeddings (PLE) as shipped in Gemma 3n, and the config uses ple_* field names for it.
Papers & references (1)
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.
Papers & references (4)
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.
Papers & references (2)
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.
Papers & references (3)
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.
Papers & references (2)
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.
Papers & references (6)
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.
Papers & references (5)
Speculative decoding needs a cheap drafter whose guesses a big model can verify in parallel; the usual drafter is a small autoregressive model, which still emits one token per forward pass. DFlash makes the drafter a block diffusion model instead: it predicts an entire block of positions simultaneously from a masked input, keeps the top candidates at each position, and a selector traces a coherent path through them for the target model to check. Because verification is lossless — the target model accepts only what it would have produced anyway — output distribution is unchanged. DFlash 2 adds two-tap dynamic convolutions to counter quality decay toward the end of a block. This matters for a field guide because it inverts the usual relationship between the two paradigms: the atlas's existing diffusion-language-models entry covers diffusion as the language model, an approach that has struggled to displace autoregression on quality. Here diffusion does the one thing it is unambiguously better at — filling many positions at once — while autoregression keeps final say. The drafters are real artifacts you can download: Meta ships Muse-Glimmer-30B-assistant (2.56B, block_size 16, 5 layers, reading the target's hidden states at layers 1/13/25/37/49), and Inco AI publishes drafters fitted to other vendors' models, including Qwen3.8-27B and GLM-5.3-Flash.
Papers & references (3)
Speculative decoding needs a drafter. MTP makes the model its own: during training, extra heads predict tokens beyond the immediate next one, and at inference those predictions become a draft the main model verifies in parallel. It is now standard equipment — the field guide's own config work found `num_nextn_predict_layers` in GLM-5.3-Flash, Ling-3.0-flash, Nemotron-3.5-Lightning, Hy4 and Qwen3.8-Flash-Next, and its absence in the released Kimi K3 checkpoint was notable enough to record. The 2026 refinement addresses a train/inference mismatch that the original DeepSeek-V3-style design has: each offset head is trained under ground-truth hidden states, but at inference it must condition on its own generated ones, and the mismatch compounds with draft length. Nemotron 3 Super's answer is to stop training a separate module per offset. It trains two MTP layers that share one parameter set and applies the same head recursively at inference, feeding it its own generated hidden state to extend the draft. NVIDIA's stated rationale is that the shared-weight formulation regularizes the head across prediction horizons and makes it robust to exactly the self-generated states it will meet, and the reported result is an average acceptance length of 3.45 at draft length 7, with degradation at draft indices 4-7 'substantially milder than with independently trained offset heads'. The config shows the shape: `num_nextn_predict_layers: 1` with `mtp_hybrid_override_pattern: "*E"` — the MTP module is itself one attention plus one MoE layer — against 88 hidden layers.
Papers & references (1)
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.
Papers & references (7)
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.
Papers & references (5)
Qwen publishes the layout as a formula — "12 × (3 × (Gated DeltaNet → MoE) → 1 × (Qwen Sparse Attention → MoE))" — and the config agrees exactly: 48 layers with full_attention_interval 4 and a layer_types array that runs linear_attention three times, then full_attention, twelve times over. That is the same 3:1 ratio Kimi K3 uses for KDA:MLA (69:24) and that Qwen3-Next and Kimi Linear established, now stated by the vendor rather than inferred. The linear path is Gated DeltaNet with a deliberately asymmetric head split — 48 value heads against 16 query/key heads, head dim 128, a 4-wide short convolution and a sigmoid output gate. The full-attention path is Qwen Sparse Attention, whose indexer is MQA with 4 query heads over 1 shared key head at head_dim 128 and a 2,048-token budget. Every one of the 48 blocks is followed by a MoE layer: 512 experts, 10 routed plus 1 shared, expert intermediate dimension 640 — very fine-grained, the DeepSeek-style direction taken further. Two parameter pools sit outside that: a 20M-entry n-gram embedding table worth 51B parameters injected at layer 2, and a 4B single-layer MTP head trained with multiple steps. Total accounting from the card: 125B parameters, 6B activated, plus 51B n-gram, plus 4B MTP. The checkpoint is natively multimodal (a vision tower and interleaved mRoPE with mrope_section [11, 11, 10]) and its config sets max_position_embeddings 262,144, while Qwen states the productized Qwen3.8-Flash build defaults to 1M context.
Papers & references (3)
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.
Papers & references (9)
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.
Papers & references (3)
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.
Papers & references (6)
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.
Papers & references (3)
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).
Papers & references (4)
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.
Papers & references (5)
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.
Papers & references (3)
A field guide has to say something honest about models whose weights nobody outside the lab has seen, and the honest thing changed in 2026. It is no longer true that nobody wrote the numbers down. Under the EU AI Act, providers of general-purpose AI models must prepare Annex XI technical documentation, and the GPAI Code of Practice's Model Documentation Form has a field for the total parameter count 'to at least two significant figures' alongside training compute in FLOPs, training time and energy. Both OpenAI and Anthropic are signatories. So the numbers exist, on a form, today. The catch is routing: that form goes to the AI Office and national competent authorities, and is released only on their request. The single artifact that must be public — the Article 53(1)(d) training-content summary — was designed without an architecture field at all. OpenAI's public summary duly gives real bucketed data volumes (text >10 trillion tokens, images >1 billion, audio and video >1 million hours each) and the useful statement that Astra 'is not a modification or a fine-tune of a prior model', and says nothing whatever about the model's shape. Anthropic states its reasoning outright in the Fable 5.1 system card: it declines to disclose 'competitively sensitive information'. The other channels are exhausted too, and their emptiness is itself informative. Patents: OpenAI's estate covers a modality-routed MoE, chain-of-thought serving with a second summarizing model, and prefix KV-cache reuse — but a patent claims an invention, never a shipped product, and Anthropic's ~20 filings turn out to be an inherited Adept portfolio describing Fuyu-8B, not Claude. Interpretability papers, historically a leak, have been closed off: Anthropic now reports layer positions as percentages of '25 evenly spaced layers … reindexed to the range [0-100]'. What remains is mechanism-level disclosure — serving topology, tokenizer changes, decode-time watermarking, effort semantics, probes on live activations — and that is what this atlas records for closed models instead of a blank cell.
Carlini et al. showed in 2024 that a model's hidden dimension leaks through its logit API: the outputs of a final linear layer lie on a low-rank subspace, so enough queries reveal the rank — they recovered 1024 for ada and babbage. Vendors responded by closing the surface, removing logit-bias and full-logprob access, which shut those attacks down. NightVision (2026) attacks the restricted regime that remains: it uses common-set prompting plus spectral analysis to recover hidden dimension, and time-to-first-token scaling to estimate depth and parameter count, under single-logit output and no logit bias. This belongs in a field guide for two opposite reasons. First, it is the only route by which anyone outside a lab could ever put a number on GPT-6 Astra or Claude Fable 5.1 — the disclosure regime having closed every other one. Second, it is a discipline check: the method reports roughly 23% mean relative error, so it produces an order of magnitude and an error bar, not a spec sheet. A measurement with stated error is a different object from a leaked figure with none, and only the first kind is worth recording — with its error bar attached.
Papers & references (2)
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.
Papers & references (4)
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.
Papers & references (1)
A looped transformer applies one weight-tied block repeatedly, so effective depth is decoupled from parameter count and can be varied at inference. Ouro-2.6B runs 48 layers looped 4x with deep supervision; Huginn-0125 recurs a 4-layer core 16 times. Retrofitting shows the idea does not require training from scratch: a pretrained Qwen2.5-0.5B can be split into Prelude / weight-tied Recurrent Block / Coda with an identity-preserving one-loop path, installed with as few as 6M trained parameters over frozen base weights, and it then extrapolates to about 1.5x the supervised depth — beating a same-size scratchpad model 84% to 72% overall, and 53% to 2.5% beyond depth 10, while running 7.6x faster. Note the weakness the paper itself carries: one base model, at 0.5B. The interesting 2026 result is what looping does to interpretability, which matters because chain-of-thought monitoring is now a safety-critical dependency for every frontier lab. Testing Ouro and Huginn against a conventional 64-layer baseline, a global workspace does still form in the iterated part — but recurrence changes how it can be accessed: Ouro reconstructs workspace content on every loop, so linear transport cannot cross loop boundaries and any intervention must span every remaining loop, while Huginn carries content across all sixteen recurrences but reads and writes act only within a sliding window of about two. In other words, if a model loops, what a monitor can see and steer changes shape. That is why the persistent claim that GPT-6 Astra uses recurrent depth matters — and why this entry does not assert it. It originates in a single anonymously-sourced press report behind a paywall that no one in this project's research could read; there is no technical report, no code, no patent and no vendor confirmation, and the one quantitative statement OpenAI's Chief Scientist has made publicly — that the computation graph depth of present frontier models is within a factor of two of GPT-4 — sits awkwardly with heavy looping rather than supporting it.
Papers & references (4)
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.
Papers & references (2)
Every architecture elsewhere in this atlas is a way of producing the next token faster or cheaper. This one is defined by refusing to produce tokens at all. A request carries one `state` — the thing being judged — plus a map of named questions, each of one of three types: a Noul (yes/no, returning the probability of yes), a Choice (one option from a set of up to 255, returning the full distribution), or a Score (a position along 2–10 ordered levels you describe, returned as the probability-weighted mean of the level indices). The state is ingested once and every question is evaluated against it in the same parallel pass, independently: one question’s answer is never context for another, so adding a question changes neither the other answers nor, materially, the latency. The answer is constrained to the option set supplied, which makes a type error structurally impossible and removes the parsing step entirely. What is NOT disclosed is almost everything a reader of this atlas would want: no parameter count, no layer count, no attention mechanism, no training compute. TypeSafe describes the sampling as "parallel" rather than sequential and says outputs are "type-safe structured values" whose "possible outputs and structure are defined in advance", and it names its training method RLCD — Reinforcement Learning for Calibrated Decisions — positioned against RLHF (optimizing human preference) and RLVR (optimizing verifiable correctness), aimed instead at "epistemically honest probabilities". Beyond those characterizations there is nothing to verify, and "non-autoregressive" should be read as the vendor’s own description rather than an established structural fact. The honest reading is that this is an output-contract innovation whose implementation is closed, launched 2026-09-15 and gated behind a waitlist that itself limits outside scrutiny. The calibration claim is the load-bearing one and the least tested. Every Choice and Score answer carries a `confidence` in [0,1] summarizing how peaked the distribution is; TypeSafe does not publish the formula, though the interactive widget in its own docs gives the three-option case as (3·p_max − 1)/2, i.e. normalized peak probability, which reproduces 12 of the 14 worked examples in the documentation exactly and misses two Score examples. Nouls deliberately carry no confidence at all, because a two-outcome distribution is fully described by its single value. No calibration curve has been published by TypeSafe or by anyone else, so whether these probabilities track real-world frequencies is untested in public — which matters, because calibration is the entire product.
Papers & references (6)
| Family | Version | Year | Architecture | Params | Ctx | Architecture notes | Refs |
|---|---|---|---|---|---|---|---|
Llama Meta | LLaMA | 2023 | dense decoder | 7B–65B | 2k | Pre-norm RMSNorm, SwiGLU, RoPE, MHA; research-only weights; the template most later open models copied. | 2302.13971 ↗ |
Llama Meta | Llama 2 | 2023 | dense decoder | 7B / 13B / 70B | 4k | Adds GQA on the 70B; first commercial-use community license; RLHF-tuned Chat variants. | 2307.09288 ↗ |
Llama Meta | Llama 3 / 3.1 | 2024 | dense decoder | 8B / 70B / 405B | 8k → 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 4 | 2025 | sparse MoE | Scout 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 | Qwen | 2023 | dense decoder | 1.8B–72B | 2k–32k | RoPE, SwiGLU, RMSNorm, untied embeddings, QKV bias; dynamic-NTK/logn ctx extension; Tongyi Qianwen license. | 2309.16609 ↗ |
Qwen Alibaba | Qwen2 | 2024 | dense decoder | 0.5B–72B dense; 57B total / 14B active MoE | 32k–128k | GQA at all sizes; dual chunk attention + YARN for long ctx; fine-grained-expert A14B MoE; succeeds interim Qwen1.5. | 2407.10671 ↗ |
Qwen Alibaba | Qwen2.5 | 2024 | dense decoder | 0.5B–72B | 128k (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 | Qwen3 | 2025 | sparse MoE | Dense 0.6B–32B; MoE 30B / 3B active and 235B / 22B active | 32k 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.5 | 2026 | sparse MoE | 397B total / 17B active; 122B / 10B active at the mid tier | 262k native, documented as extensible to 1,010,000 via YaRN | The generation between Qwen3 and Qwen3.8, and the one that established the sparse-MoE flagship shape Qwen carried forward. Served on NVIDIA NIM; the 1M-token figure is a documented YaRN RoPE-scaling extension of a 262k-native window, not a natively-trained context. | report ↗ |
Qwen Alibaba | Qwen3.8-27B | 2026 | SSM / hybrid | 27.8B dense | 256k | Apache-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-A95B | 2026 | SSM / hybrid | 2.45T total / ~95B active (512 experts, 10 routed) | 256k | Qwen3_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 ↗ |
Qwen Alibaba | Qwen3.8-Flash-Next | 2026 | sparse MoE | 125B total / 6B active (512 experts, 10 routed + 1 shared) + 51B n-gram embedding + 4B MTP | 262k in config (1M on the productized Qwen3.8-Flash) | 48 layers as 12 × (3 × Gated DeltaNet → 1 × Qwen Sparse Attention), each followed by MoE. Introduces block-level sparse attention and a 20M-entry n-gram embedding table; carries hc_count 4 multi-stream residuals. Natively multimodal. | report ↗ |
Qwen Alibaba | Qwen3.8-Max | 2026 | undisclosed | undisclosed — no open weights | 1M (API) | Alibaba's closed flagship tier: served through the API and third-party routers at $2.00/$6.00 per 1M as of 2026-09-05, with no Qwen-published weights or architecture. The only Qwen3.8 entries with open weights are 27B, 2.4T-A95B and Flash-Next. | report ↗ |
DeepSeek DeepSeek-AI | DeepSeek LLM | 2024 | dense decoder | 7B / 67B | 4k | LLaMA-style; GQA on the 67B; hyperparameter scaling-law study; permissive DeepSeek model license. | 2401.02954 ↗ |
DeepSeek DeepSeek-AI | DeepSeek-V2 | 2024 | sparse MoE | 236B total / 21B active | 128k | Introduces Multi-head Latent Attention (low-rank KV compression) + DeepSeekMoE shared/fine-grained experts; ~93% KV-cache cut. | 2405.04434 ↗ |
DeepSeek DeepSeek-AI | DeepSeek-V3 | 2024 | sparse MoE | 671B total / 37B active | 128k | MLA; 256 routed + 1 shared experts (8 active); aux-loss-free load balancing; multi-token prediction; FP8 pretraining. | 2412.19437 ↗ |
DeepSeek DeepSeek-AI | DeepSeek-R1 | 2025 | sparse MoE | 671B total / 37B active | 128k | Same 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.1 | 2025 | sparse MoE | 671B total / 37B active | 128k | One 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-Exp | 2025 | sparse MoE | 671B total / 37B active | 128k | Adds DeepSeek Sparse Attention (lightning indexer + top-k token selection) for near-linear long-context cost. | report ↗ |
DeepSeek DeepSeek-AI | DeepSeek-V4-Flash | 2026 | sparse MoE | 284B total / 13B active (technical report); the released checkpoint's safetensors metadata totals 290,944,616,402 | 1M | The small half of the V4 pair, same CSA + HCA hybrid attention, 1M context (1,310,720 as served on Cloudflare). Note the two parameter figures differ by ~2%: the paper's 284B against 290.9B counted from the released weights — quote whichever you cite with its source, and prefer the paper for the architecture and the checkpoint for what you actually download. | 2606.19348 ↗ report ↗ |
DeepSeek DeepSeek-AI | DeepSeek-V4-Pro | 2026 | sparse MoE | 1.6T total / 49B active (technical report) | 1M | Hybrid attention combining Compressed Sparse Attention and Heavily Compressed Attention: CSA compresses every m KV tokens into one learned entry then runs lightning-indexer top-k over the compressed stream plus a sliding window, while HCA compresses far harder and attends densely over the short result. DeepSeek reports 27% of V3.2's single-token inference FLOPs and 10% of its KV cache (vendor figure). 1M context. Served on Cloudflare and NVIDIA as the dated 0813 checkpoint. | 2606.19348 ↗ |
Mistral Mistral AI | Mistral 7B | 2023 | dense decoder | 7.3B | 8k (4k sliding window) | GQA + sliding-window attention with rolling KV cache; Apache 2.0. | 2310.06825 ↗ |
Mistral Mistral AI | Mixtral 8x7B / 8x22B | 2023 | sparse MoE | 8x7B: 47B / 13B active; 8x22B: 141B / 39B active | 32k / 64k | Top-2-of-8 sparse MoE feedforward, GQA; Apache 2.0; 8x22B (2024) extends ctx to 64k. | 2401.04088 ↗ |
Mistral Mistral AI | Mistral Large 2 | 2024 | dense decoder | 123B | 128k | Dense decoder; weights open under Mistral Research License (non-commercial), unlike Apache-2.0 siblings. | report ↗ |
Mistral Mistral AI | Mistral Small 3 / 3.1 | 2025 | dense decoder | 24B | 32k → 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 | Magistral | 2025 | dense decoder | 24B (Small); Medium undisclosed | 128k (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) | 2025 | sparse MoE | Large 3: 675B total / 41B active; Ministral 3B / 8B / 14B dense | 256k | First Mistral MoE since Mixtral; image understanding; NVFP4 checkpoint for Blackwell; entire family Apache 2.0. | report ↗ report ↗ |
Gemma Google | Gemma | 2024 | dense decoder | 2B / 7B | 8k | GeGLU, RoPE; MQA on 2B, MHA on 7B; open weights under Gemma terms of use. | 2403.08295 ↗ |
Gemma Google | Gemma 2 | 2024 | dense decoder | 2B / 9B / 27B | 8k | Alternating 4k-local / 8k-global layers, GQA, logit soft-capping, pre+post RMSNorm; 2B/9B distilled from larger teachers. | 2408.00118 ↗ |
Gemma Google | Gemma 3 | 2025 | adapter multimodal | 1B / 4B / 12B / 27B | 128k (1B: 32k) | SigLIP vision encoder on 4B+; 5:1 local:global attention, QK-norm replaces soft-caps; official QAT int4 checkpoints. | 2503.19786 ↗ |
Gemma Google | Gemma 4 | 2026 | dense decoder | dense 2.3B / 4.5B / 12B / 31B, plus an MoE variant at 26B total / 3.8B active | 256k | The KV cache is the whole design story. Global attention layers re-use keys as values — the value projection is deleted and V is set equal to K — and the E2B/E4B variants add cross-layer KV sharing at ratios of 20/35 and 18/42, on top of a 5:1 local-sliding-window to global interleave (4:1 on the 2.3B) with p-RoPE at p=0.25 on global layers. Google reports the combination cuts the global KV footprint by up to 37.5%. Served on NVIDIA NIM (gemma-4-31b-it) and Cloudflare (gemma-4-26b-a4b-it). | 2607.02770 ↗ |
Phi Microsoft | Phi-1 / Phi-1.5 | 2023 | dense decoder | 1.3B | 2k | '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-2 | 2023 | dense decoder | 2.7B | 2k | Scaled phi-1.5 recipe with knowledge transfer from phi-1.5 initialization; MIT-licensed in Jan 2024. | report ↗ |
Phi Microsoft | Phi-3 | 2024 | dense decoder | 3.8B mini / 7B small / 14B medium | 4k / 128k via LongRoPE | mini 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-4 | 2024 | dense decoder | 14B | 16k | Synthetic-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-6B | 2023 | dense decoder | 6B | 2k (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) | 2024 | dense decoder | 9B | 128k (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.5 | 2025 | sparse MoE | 355B total / 32B active; Air: 106B / 12B active | 128k | Deep-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.6 | 2025 | sparse MoE | 355B total / 32B active | 200k | Same base architecture as 4.5 with context extended 128k → 200k; agentic-coding focus; MIT weights. | report ↗ |
GLM / ChatGLM Zhipu AI / Z.ai | GLM-5 | 2026 | sparse MoE | 744B / 40B active (~753B all-in) | ~200k | Released 2026-02-11/12, MIT. "From Vibe Coding to Agentic Engineering"; 28.5T-token base; DSA added via continued pre-training and called lossles | 2602.15763 ↗ report ↗ |
GLM / ChatGLM Zhipu AI / Z.ai | GLM-5.1 | 2026 | sparse MoE | 744B / 40B active (~753B all-in) | ~200k | Released 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 au | report ↗ report ↗ |
GLM / ChatGLM Zhipu AI / Z.ai | GLM-5.2 | 2026 | sparse MoE | 753B total / 40B active | 1M | IndexShare: DSA indexer run in 21 of 78 layers, reused ×4; MLA base; MTP shares indices; MIT, BF16+FP8 weights | report ↗ 2603.12201 ↗ |
GLM / ChatGLM Zhipu AI / Z.ai | GLM-5.3 | 2026 | sparse MoE | same base model as GLM-5.2 (78 layers, 256 routed + 1 shared experts, 8 active) | 1M | Z.ai states it outright: "GLM-5.3 uses the same base model as GLM-5.2 — every gain comes from post-training." A clean worked example of a major version number that is not an architecture change. Vendor claims open-weights SOTA on coding and a large jump in cyber/exploitation benchmarks over 5.2. | report ↗ |
GLM / ChatGLM Zhipu AI / Z.ai | GLM-5.3-Flash | 2026 | sparse MoE | 45 layers, 288 routed + 1 shared experts (8 active) | 1M | The architectural release of the 5.3 pair, and a different model class from GLM-5.3 (glm5_next, not glm_moe_dsa): 34 KDA linear-attention layers to 11 DSA full-attention layers (3:1), NoPE MLA with qk_rope_head_dim 0, a k-pooled sparse indexer at a 2,048 budget, MHC 4-stream residuals with 20 Sinkhorn iterations, aux-loss-free sigmoid routing, and one MTP layer. Natively multimodal. | report ↗ |
Kimi Moonshot AI | Kimi K2 | 2025 | sparse MoE | 1.04T total / 32B active | 128k | 384 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 Thinking | 2025 | sparse MoE | 1T total / 32B active | 256k | Interleaved 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.5 | 2026 | sparse MoE | 1T total / 32B active | 256K | moonshotai/Kimi-K2.5 on HF, updated ~2026-04-30, ~1.05M downloads/mo (1,053,459); Modified MIT; iterative K2 successor before K3 | report ↗ |
Kimi Moonshot AI | Kimi K2.6 | 2026 | sparse MoE | 1T total / 32B active | 256K | moonshotai/Kimi-K2.6 on HF, updated ~2026-05-19, ~1.15M downloads/mo (1,151,976); Modified MIT | report ↗ |
Kimi Moonshot AI | Kimi K2.7-Code | 2026 | sparse MoE | 1T total / 32B active | 256K | moonshotai/Kimi-K2.7-Code on HF, updated ~2026-06-15, ~722K downloads/mo (722,058); Modified MIT; last K2-family drop before K3 | report ↗ |
Kimi Moonshot AI | Kimi K3 | 2026 | sparse MoE | 2.78T total / 16-of-896 experts + 2 shared | 1M | Open 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-20b | 2025 | sparse MoE | 20.9B total / 3.6B active | 128k | 32 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-120b | 2025 | sparse MoE | 116.8B total / 5.1B active | 128k | 128 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) | OLMo | 2024 | dense decoder | 1B / 7B | 2k | Non-parametric LayerNorm, SwiGLU, RoPE; Dolma corpus + full training code released; Apache 2.0. | 2402.00838 ↗ |
OLMo Allen Institute for AI (Ai2) | OLMo 2 | 2024 | dense decoder | 7B / 13B; 32B (2025) | 4k | Reordered 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 3 | 2025 | dense decoder | 7B / 32B | 65k | Base/Think/Instruct/RL-Zero variants; releases the full 'model flow' (Dolma 3 data, checkpoints, code). | report ↗ |
Falcon TII (UAE) | Falcon 7B/40B/180B | 2023 | dense decoder | 7B / 40B / 180B | 2k | Multiquery (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 2 | 2024 | dense decoder | 11B | 8k | Multi-stage long-context training to 8k; 11B-VLM sibling adds vision; permissive TII license. | 2407.14885 ↗ |
Falcon TII (UAE) | Falcon Mamba | 2024 | SSM / hybrid | 7B | trained 8k; constant-memory decode | Pure Mamba-1 SSM, fully attention-free (not actually a hybrid); extra RMSNorms for stability; TII Falcon license. | 2410.05355 ↗ |
Falcon TII (UAE) | Falcon 3 | 2024 | dense decoder | 1B–10B | 32k (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-H1 | 2025 | SSM / hybrid | 0.5B–34B | up to 256k | Parallel hybrid: attention heads and Mamba-2 SSM heads run side-by-side within each block; 18 languages. | 2507.22448 ↗ |
Command Cohere | Command R | 2024 | dense decoder | 35B | 128k | RAG 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+ | 2024 | dense decoder | 104B | 128k | GQA; multilingual, multi-step tool use; CC-BY-NC 4.0 non-commercial license. | report ↗ |
Command Cohere | Command A | 2025 | dense decoder | 111B | 256k | Interleaved 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-4 | 2024 | dense decoder | 15B; 340B | 4k | RoPE, squared-ReLU MLP, GQA, no biases; 340B ships Base/Instruct/Reward for synthetic-data generation. | 2402.16819 ↗ 2406.11704 ↗ |
Nemotron NVIDIA | Llama-Nemotron | 2025 | dense decoder | Nano 8B / Super 49B / Ultra 253B | 128k | Puzzle NAS-compressed Llama 3 derivatives with irregular per-layer blocks; runtime 'detailed thinking on/off' toggle. | 2505.00949 ↗ |
Nemotron NVIDIA | Nemotron-H | 2025 | SSM / hybrid | 8B / 47B / 56B | undisclosed | Majority of attention layers replaced by Mamba-2 (constant per-token compute); FP8 pretraining; 47B distilled via MiniPuzzle. | 2504.03624 ↗ |
Nemotron NVIDIA | Nemotron Nano 2 | 2025 | SSM / hybrid | 9B (pruned from 12B) | 128k | Mamba-2-heavy hybrid reasoner, up to ~6x decode throughput vs similar-size transformers; most pretraining data released. | 2508.14444 ↗ |
Nemotron NVIDIA | Nemotron-3.5-Lightning | 2026 | SSM / hybrid | 30B total / 3B active (128 routed + 1 shared experts, 6 active) | 262k | 52 layers interleaving mamba, attention and MoE blocks (nemotron_h) with aggressive GQA — 32 query heads to 2 KV heads — and one MTP layer. Released in BF16 and NVFP4; the NVFP4 build is the more downloaded of the two. | report ↗ 2604.12374 ↗ |
Granite IBM | Granite 3.x | 2024 | dense decoder | 2B / 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.0 | 2025 | SSM / hybrid | Small 32B / 9B active; Tiny 7B / 1B active; Micro 3B dense | 128k 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 ↗ |
Granite IBM | Granite 4.2 | 2026 | dense decoder | 3B / 8B (40 layers) / 30B (64 layers), all dense | 131k | Notable for what it is not: 4.0 was IBM's Mamba-2 hybrid line, but every 4.2 checkpoint published is a plain GraniteForCausalLM dense decoder with GQA (32 query / 8 KV heads) — no hybrid variant in the released set. Shipped across GGUF, MLX, FP8, MXFP4 and NVFP4 on day one. | report ↗ |
OpenAI GPT + o-series OpenAI · proprietary | GPT-1 | 2018 | dense decoder | 117M | 512 | 12-layer decoder-only Transformer; generative pretraining + supervised task finetuning. Fully disclosed. | report ↗ |
OpenAI GPT + o-series OpenAI · proprietary | GPT-2 | 2019 | dense decoder | 1.5B | 1k | 48-layer decoder-only; scaled GPT-1 with pre-LayerNorm tweaks. Weights fully released (staged, 2019). | report ↗ |
OpenAI GPT + o-series OpenAI · proprietary | GPT-3 | 2020 | dense decoder | 175B | 2k | 96 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 / ChatGPT | 2022 | dense decoder | undisclosed (GPT-3 lineage) | 4k-16k | RLHF-tuned GPT-3-series models (InstructGPT method). No new architecture disclosed; exact sizes undisclosed. | 2203.02155 ↗ report ↗ |
OpenAI GPT + o-series OpenAI · proprietary | GPT-4 | 2023 | undisclosed | undisclosed (~1.8T MoE reported) | 8k / 32k | Tech 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 Turbo | 2023 | undisclosed | undisclosed | 128k | Cheaper, faster GPT-4 tier with 128k ctx and newer knowledge cutoff; zero architecture facts disclosed. | report ↗ |
OpenAI GPT + o-series OpenAI · proprietary | GPT-4o | 2024 | native multimodal | undisclosed | 128k | Disclosed: 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.1 | 2025 | undisclosed | undisclosed | 1M | API-focused line with 1M-token context; long-context training improvements described, architecture not. | report ↗ |
OpenAI GPT + o-series OpenAI · proprietary | o1 (training-paradigm note) | 2024 | undisclosed | undisclosed | 128k (preview) / 200k | Paradigm 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) | 2025 | undisclosed | undisclosed | 200k | o1 successor: further-scaled RL on CoT plus agentic tool use inside the reasoning chain. Architecture undisclosed. | report ↗ |
OpenAI GPT + o-series OpenAI · proprietary | GPT-5 | 2025 | undisclosed | undisclosed | 400k (API) | Disclosed only at system level: real-time router over a fast model and a deeper reasoning model. Component archs undisclosed. | report ↗ report ↗ |
OpenAI GPT + o-series OpenAI · proprietary | GPT-5.5 / GPT-5.6 (Sol, Terra, Luna) | 2026 | undisclosed | undisclosed | 1,050,000 (128k max output) | The generation between GPT-5 and GPT-6. GPT-5.6 shipped as three named variants at three price points ($4/$20, $2/$12, $0.20/$1.20 per 1M), all sharing a 2026-02-16 knowledge cutoff. Sol was the frontier member until Astra replaced it. | report ↗ |
OpenAI GPT + o-series OpenAI · proprietary | GPT-6 Astra | 2026 | undisclosed | undisclosed — but no longer merely absent: the EU AI Act obliges OpenAI to file the exact total to two significant figures with the AI Office, which releases it only on request | 1,050,000 (922k max input, 128k output) | System card dated 2026-09-03; 1,050,000 context (922k max input, 128k output), text+image in, text out, knowledge cutoff 2026-04-30, reasoning effort low→max with 'none' unsupported. Searching both the 117-page system card and the launch page returns zero hits for parameter count, layers, experts, MoE, FLOPs, GPU-hours or attention variant — Section 2, 'Model Data and Training', is a single paragraph (RL-trained reasoning producing a long internal chain of thought, over diverse filtered datasets). What does exist, and is worth more than an empty cell: (1) An EU Article 53(1)(d) training-content summary with real bucketed figures — text >10 trillion tokens, images >1 billion, audio >1 million hours, video >1 million hours; a crawl window running to May 2026; synthetic data generated by GPT-5.6, GPT-5.5 and GPT-5.4; and the flat statement that Astra 'is not a modification or a fine-tune of a prior model'. (2) A serving-stack disclosure: misalignment monitoring runs as 'a system of classifiers which check the model's reasoning and actions', asynchronously over all tool-using inference, at 'significant compute cost', able to hard-stop a request with HTTP 403. (3) A second, more conservative refusal boundary trained into the model itself. (4) A disclosed regression: OpenAI states Astra's chain of thought is harder to monitor than GPT-5.6 Sol's under adversarial evasion. The only quantitative architectural constraint in existence is relative and comes from a post on X by Chief Scientist Jakub Pachocki (2026-09-01): the depth of the computation graph for present frontier models including Astra is 'within a factor of two of GPT-4' `(reported)` — an attributed statement, not a formal disclosure, and one this project could not re-verify because X is unreachable from its research environment and the only archived capture of that account predates the post by a year. Treat it accordingly, and see the looped-transformer entry for the separate, single-source claim that Astra uses recurrence — which is NOT established. Every circulating parameter figure (~5T, ~8T, ~10T MoE) traces to press estimates or anonymous posts with no method; one of them repudiates itself on its own page. None belong in a catalog. | report ↗ report ↗ report ↗ |
Anthropic Claude Anthropic · proprietary | Claude 1 | 2023 | undisclosed | undisclosed | 9k → 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 2 | 2023 | undisclosed | undisclosed | 100k (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) | 2024 | undisclosed | undisclosed | 200k | First multimodal (vision-input) tier, three sizes. Model card gives evals and ctx; params/architecture undisclosed. | report ↗ report ↗ |
Anthropic Claude Anthropic · proprietary | Claude 3.5 Sonnet | 2024 | undisclosed | undisclosed | 200k | Mid-generation upgrade (speed/cost/evals disclosed; later 3.5 Haiku and computer use). Architecture undisclosed. | report ↗ |
Anthropic Claude Anthropic · proprietary | Claude 3.7 Sonnet | 2025 | undisclosed | undisclosed | 200k | First '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) | 2025 | undisclosed | undisclosed | 200k (Sonnet 4: 1M beta) | Hybrid reasoning with tool use during extended thinking; detailed system cards published. Architecture undisclosed. | report ↗ |
Anthropic Claude Anthropic · proprietary | Claude Sonnet 5 / Opus 5 | 2026 | undisclosed | undisclosed | 1M (128k max output) | Sonnet 5 released 2026-06-30, Opus 5 on 2026-07-24 at $5/$25 per 1M. Anthropic's guidance makes Opus 5 the default starting point for most workloads rather than the top of the range. | report ↗ |
Anthropic Claude Anthropic · proprietary | Claude Fable 5.1 (and Mythos 5.1) | 2026 | undisclosed | undisclosed, and explicitly so — the system card says Anthropic withholds 'competitively sensitive information' (§6.1.3) | 1M (128k max output) | Released 2026-09-01 as claude-fable-5-1, 1M context / 128k output, $10/$50 per 1M, knowledge cutoff June 2026. The 212-page system card contains no parameter, layer, expert, MoE, attention or training-compute figure anywhere — but it is dense with mechanism, and several of these are genuine architectural facts: (1) **Fable 5.1 and Mythos 5.1 are one model.** Verbatim: 'Claude Fable 5.1 and Claude Mythos 5.1 are two configurations of a new large language model from Anthropic, sharing identical model weights.' Mythos relaxes life-sciences safeguards for vetted users; the difference is safeguards, not weights. (2) **A quantified tokenizer change** — Fable 5.1 uses the tokenizer introduced with Claude Opus 4.7, on which the same text yields roughly 30% more tokens than on pre-4.7 models, which is why 1M tokens is ≈555k words rather than ≈750k. (3) **A two-model serving topology**: thinking summaries are produced by a different model from the one serving the request, and the thinking model never sees the summary; raw chain of thought is never returned, and the `signature` field is an encrypted copy of the full reasoning. (4) **A decoding-layer watermark**: keyed pseudorandom next-token selection replaces the arbitrary RNG, adding no tokens and no hidden characters — a real change at the decode step. (5) **Probes on live activations**: production traffic is screened by a linear probe reading Claude's internal activations, escalating to a trained classifier — a white-box fact about the deployed stack, though it names no layer index or width. (6) Thinking is always on and cannot be disabled (forced tool use now errors precisely because it would skip thinking); effort is 'a behavioral signal, not a strict token budget', implemented by shaping the rendered prompt rather than constraining the decoder; sampling is locked — non-default temperature/top_p/top_k return 400. Anthropic's non-disclosure is deliberate and extends to its research: its interpretability papers report results on '25 evenly spaced layers of the model's residual stream reindexed to the range [0-100]', a normalization that destroys the layer-count leak this genre used to produce. | report ↗ report ↗ report ↗ |
Google Gemini (+ PaLM lineage) Google / Google DeepMind · proprietary | PaLM (precursor) | 2022 | dense decoder | 540B | 2k | Fully 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) | 2023 | undisclosed | undisclosed (stated smaller than PaLM) | undisclosed | Report 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 1 | 2023 | native multimodal | undisclosed (Nano-1 1.8B / Nano-2 3.25B disclosed) | 32k | Decoder-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.5 | 2024 | sparse MoE | undisclosed | 1M (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.0 | 2024 | undisclosed | undisclosed | 1M | Agentic-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.5 | 2025 | sparse MoE | undisclosed | 1M | Report: sparse-MoE Transformers, natively multimodal, with 'thinking' (RL on chain-of-thought). Params undisclosed. | 2507.06261 ↗ |
Google Gemini (+ PaLM lineage) Google / Google DeepMind · proprietary | Gemini 3 → 3.8 Flash | 2026 | sparse MoE | undisclosed — MoE is disclosed, expert and parameter counts are not | 1,048,576 (65,536 output) | Eight releases from Gemini 3 Pro Preview (2025-11-18) to Gemini 3.8 Flash GA (2026-09-02), which is text/image/video/audio/PDF in at $0.75/$3.75 per 1M with a March 2026 cutoff and a restricted Flash Cyber sibling. The architecture disclosure is real but only reachable by reference chain: each Flash card defers to the previous one back to the Gemini 3 Pro card, which states the line is a "sparse mixture-of-experts (MoE) … transformer" with native multimodal support, trained on TPUs. Cite the Gemini 3 Pro card for that fact, not the 3.8 Flash card. | report ↗ report ↗ |
xAI Grok xAI · proprietary | Grok-1 | 2023 | sparse MoE | 314B total / ~25% active per token (2-of-8 experts) | 8k | Open-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.5 | 2024 | undisclosed | undisclosed | 128k | 128k ctx and improved reasoning/math; no architecture disclosure (1.5V added vision via unstated means). | report ↗ |
xAI Grok xAI · proprietary | Grok-2 | 2024 | sparse MoE | undisclosed at launch | 128k | No disclosure at launch; weights published on Hugging Face in Aug 2025, making the large-MoE checkpoint inspectable. | report ↗ report ↗ |
xAI Grok xAI · proprietary | Grok 3 | 2025 | undisclosed | undisclosed | 1M | Trained on Colossus (~200k GPUs); Reasoning variants with test-time compute ('Think'). No architecture facts disclosed. | report ↗ |
xAI Grok xAI · proprietary | Grok 4 | 2025 | undisclosed | undisclosed | 256k | RL scaled toward pretraining-level compute; native tool use and multi-agent 'Heavy' variant. Architecture undisclosed. | report ↗ |
xAI Grok xAI · proprietary | Grok 4.5 / 4.6 | 2026 | undisclosed | undisclosed | 500k on 4.6 (the older 4.20 and 4.3 carry 1M) | Grok 4.6 released 2026-08-12 at $2/$6 per 1M, doubling above 200k tokens. Unusually for this cohort xAI does disclose training method — a longer supplemental run than 4.5, curated model-generated data for reasoning, regenerated SFT trajectories and agentic RL environments — while still publishing no parameter count or MoE claim. Note the context inversion: the newer 4.6 has half the window of the older 4.20/4.3. The x.ai footer now identifies the entity as SpaceXAI LLC. | report ↗ report ↗ |
Amazon Nova Amazon (AGI) · proprietary | Nova 1.0 (Micro / Lite / Pro) | 2024 | undisclosed | undisclosed | 128k (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 Premier | 2025 | undisclosed | undisclosed | 1M | Top 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 Large | 2024 | undisclosed | undisclosed | 32k | API/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) | 2024 | dense decoder | 123B | 128k | Disclosed 123B dense decoder, 128k ctx; weights downloadable under the non-commercial Mistral Research License. | report ↗ |
Ling / Bailing InclusionAI (Ant Group) | Ling 3.0 tiny | 2026 | sparse MoE | 24 layers, 128 experts, 8 active | 131k | The small end of the Bailing V3 line: hidden size 1,536, MLA-style compression (kv_lora_rank 512, q_lora_rank 256), grouped routing over 8 groups selecting 4, and partial rotary (factor 0.5). No MTP head in this checkpoint. | report ↗ |
Ling / Bailing InclusionAI (Ant Group) | Ling 3.0 flash | 2026 | sparse MoE | 42 layers, 512 experts, 8 active | 262k | Four times the expert count at under twice the depth — 512 experts of intermediate size 768, routed 8-at-a-time through 8 groups with top-4 group selection, plus one MTP layer. Served on OpenRouter at $0.06/$0.18 per 1M with domain-tuned 'fin' and 'sante' variants, including free tiers. | report ↗ |
LFM (Liquid Foundation Models) Liquid AI | LFM2.5 (dense) | 2026 | SSM / hybrid | 230M / 1.2B (16 layers) / 2.6B | 128k | layer_types interleaves 'conv' and 'full_attention' — short causal convolutions with conv_L_cache 3 doing most of the sequence mixing, GQA (32 query / 8 KV) on the attention layers. A different bet from Mamba-style SSMs: a 3-wide convolution has no recurrent state to manage at all. | report ↗ |
LFM (Liquid Foundation Models) Liquid AI | LFM2.5-8B-A1B (MoE) | 2026 | SSM / hybrid | 8B total / ~1B active (32 experts, 4 active) | 128k | The same conv/attention interleave over 24 layers with a sparse FFN — 32 experts of intermediate size 1,792, 4 routed per token. A vision variant (LFM2.5-VL-1.6B) ships alongside the text line. | report ↗ |
Hunyuan Tencent | Hy4-preview | 2026 | sparse MoE | 779,960,992,733 (~780B) total / 49B active — 256 routed + 1 shared experts, top-8 | 1M | 78 layers, MoE in 77 of them, MLA (kv_lora_rank 512, q_lora_rank 2048) with DeepSeek sparse attention on every layer at a 2,048 index budget. Three mechanisms rarely seen together: gated MLA with learnable attention sinks (gated_mla, learnable_sink), IndexCache (indexer_types 21 full / 57 shared), and iHC identity hyper-connections (hc_mult 4). Apache-2.0; param total is weight-verified and matches the card's 770B + 10B MTP accounting. | report ↗ |
Muse Meta Superintelligence Labs · proprietary | Muse Spark (1.1 / 1.2 / 1.3) | 2026 | undisclosed | undisclosed | 1,048,576 | Announced 2026-04-08 as the first Muse model, "a natively multimodal reasoning model with support for tool-use, visual chain of thought, and multi-agent orchestration". Text/image/video/audio/PDF in, text out; $1.25/$4.25 per 1M with a cheaper 'contributor' tier that trades training-data rights for price. Meta's own 160-page safety report contains no parameter count, no MoE claim and no training compute. Meta publishes one regression: audio understanding is "not fully supported" in 1.3. | report ↗ |
Muse Meta Superintelligence Labs · proprietary | Muse Glimmer 30B | 2026 | dense decoder | 29,776,626,688 (~29.8B) — dense, no MoE | 131k+ | The open half of the line, Apache-2.0, and a deliberate counter-current: dense at a moment when almost every peer is sparse. 52 layers, hidden 6,656, GQA at 32 query heads to 2 KV heads (16:1), and an attention pattern of three sliding-window layers (window 2,048) to one global — with the 13 global layers carrying layer_rope_theta 0, i.e. NoPE. Vision comes from Meta's Perception Encoder (~1.8B ViT-G/14, up to 4,096 visual tokens per image). Distilled from Muse Spark as teacher, quantized to run in 24–32GB. Ships with a block-diffusion speculative drafter. | report ↗ 2504.13181 ↗ |