Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Meituan · Architecture map

LongCat-2.0

A 1.6 trillion parameter LongCat-Flash successor with a sparse-attention indexer shared by pairs of attentions, 135B of n-gram embedding and 768 real experts.

LongCat-2.0, July 2026 · LongCat release timeline

Inside LongCat-2.0

Parameters
1.6T · 48B active
Layers
38
Width
8,192
Mixer
Latent
Select a component to explore it.
The complete LongCat-2.0 architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens. A 512-value KV latent plus a 64-value rotary key per token per attention block. Sparse attention reduces compute, not the size of the cache. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup163,8408,192Each token's embedding is averaged with hashed embeddings of its last 2 to 5 tokens, 16 tables in all (135B parameters).N-gram lookupAverage embeddingsInput token vectorsCL8,192Layers 1–38 (two attentions per lay…Layers 1–38 (two attentions per layer) · 38 repetitions38 layers · one layer shown38RMSNorm before this operation.RMSNormLatent attention: Two latent attentions and two dense SwiGLU networks (size 12288). After the first attention, the MoE branch runs alongside the first dense network, second attention and second dense network; its output is added at the end. Each pair of attentions shares one indexer pass.Latent attentionRotate query and key position components before attention scores; values are unchanged. Two latent attentions and two dense SwiGLU networks (size 12288). After the first attention, the MoE branch runs alongside the first dense network, second attention and second dense network; its output is added at the end. Each pair of attentions shares one indexer pass.RoPEA light indexer picks 2,048 tokens per query (16 initial, 1,024 local, the rest chosen). One indexing pass serves two consecutive attentions.Shared indexerSelected positionsAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormDense feed-forward: Two latent attentions and two dense SwiGLU networks (size 12288). After the first attention, the MoE branch runs alongside the first dense network, second attention and second dense network; its output is added at the end. Each pair of attentions shares one indexer pass.Densefeed-forwardAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormLatent attention: Two latent attentions and two dense SwiGLU networks (size 12288). After the first attention, the MoE branch runs alongside the first dense network, second attention and second dense network; its output is added at the end. Each pair of attentions shares one indexer pass.Latent attentionRotate query and key position components before attention scores; values are unchanged. Two latent attentions and two dense SwiGLU networks (size 12288). After the first attention, the MoE branch runs alongside the first dense network, second attention and second dense network; its output is added at the end. Each pair of attentions shares one indexer pass.RoPEA light indexer picks 2,048 tokens per query (16 initial, 1,024 local, the rest chosen). One indexing pass serves two consecutive attentions.Shared indexerSelected positionsAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormDense feed-forward: Two latent attentions and two dense SwiGLU networks (size 12288). After the first attention, the MoE branch runs alongside the first dense network, second attention and second dense network; its output is added at the end. Each pair of attentions shares one indexer pass.Densefeed-forwardAdd the branch output to the original stream. +RMSNorm768 routed experts (size 2048) plus 128 zero-computation identity experts; 12 chosen from 896; weights scaled by 9. The result is held and added at the end of the layer.MoE12 of 896 (128identity)12 of 768 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Residual streamLast columnCL8,192Final RMSNormA separate learned vocabulary projection.Output weights8,192163,840Vocabulary scoresSoftmax163,840Next-token probabilities
Inside latent attention · Layers 1–38 (two attentions per layer)
64 heads · 512 cached latent values + 64 rotary values.

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

LongCat-2.0: Layers 1–38 (two attentions per layer) · latent attention64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens. A 512-value KV latent plus a 64-value rotary key per token per attention block. Sparse attention reduces compute, not the size of the cache.1 shared latent cache; the front face shows one representative.1 shared latent cache64 attention heads; the front face shows one representative.64 attention headsAttention input. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input8,192CLWq↓. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Wq↓8,1921,536RMSNorm. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.RMSNormWq↑. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Wq↑1,536192RoPE 64. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.RoPE 64Wkv↓. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Wkv↓8,192512RMSNorm. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.RMSNorm512Wkᴿ. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Wkᴿ8,19264RoPE 64. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.RoPE 64cᴷⱽ ⊕ kᴿ. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.cᴷⱽ ⊕ kᴿLatent cache. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.Latent cache576CLWk↑. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Wk↑512128Wv↑. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Wv↑512128kᶜ ⊕ kᴿ. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.kᶜ ⊕ kᴿ192Q context. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Q context192CLTop 2048. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Top 2048Scaled query–key scores, masking and softmax. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.CLCL×. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.×Joined heads. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.64Wo. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Wo8,1928,192Attention output. 64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output8,192CL
Model-specific details
Layers 1–38 (two attentions per layer) · 38 repetitions
Two latent attentions and two dense SwiGLU networks (size 12288). After the first attention, the MoE branch runs alongside the first dense network, second attention and second dense network; its output is added at the end. Each pair of attentions shares one indexer pass.
sparse selection (shared indexer)
A light indexer picks 2,048 tokens per query (16 initial, 1,024 local, the rest chosen). One indexing pass serves two consecutive attentions.
n-gram embedding at the input
Each token's embedding is averaged with hashed embeddings of its last 2 to 5 tokens, 16 tables in all (135B parameters).
Attention and positions
64 heads; compressed KV latent of 512 with a 64-value rotary key; query rank 1536. Per-head content key 128, value 128. Rope base 1,000,000 with YaRN (factor 120 over 8,192). A sparse indexer with 32 heads of size 128 picks 2,048 tokens per query, among them 16 initial and 1,024 local tokens.
Memory
A 512-value KV latent plus a 64-value rotary key per token per attention block. Sparse attention reduces compute, not the size of the cache.

What changes from LongCat-Flash

The model reports about 1.6T total parameters and 48B active. Its card describes training on 1M-token sequences; the config’s position limit remains 262,144.

How it scores

AA Intelligence Index

Version 4.3.2 · higher is better · checked 2026-11-01. Separate from Epoch ECI.

Checkpoint / sizeResultEvaluation
LongCat 2.019AA Index 4.3.2Published checkpoint
AA Index distributionBest checkpoint per model variant among 97 scored variants in this atlas. LongCat 2.0 scores 19; its bin is highlighted. Known estimates are excluded.Model variants0.0–3.0: 0 variants3.0–6.0: 15 variants6.0–9.0: 21 variants9.0–12.0: 13 variants12.0–15.0: 9 variants15.0–18.0: 5 variants18.0–21.0: 5 variants21.0–24.0: 6 variants24.0–27.0: 4 variants27.0–30.0: 2 variants30.0–33.0: 2 variants33.0–36.0: 2 variants36.0–39.0: 2 variants39.0–42.0: 3 variants42.0–45.0: 4 variants45.0–48.0: 3 variants48.0–51.0: 0 variants51.0–54.0: 0 variants54.0–57.0: 1 variants57.0–60.0: 0 variants21003060AA Index 4.3.2 →
LongCat 2.0: 19. Distribution of 97 scored variants in this atlas, using each variant’s best checkpoint. Known estimates excluded.

Explore the components

Sources for this map