Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Baidu · Architecture map

ERNIE 4.5 300B-A47B

A text mixture of experts with 64 large experts and no shared expert, from a family built to share experts across text and vision.

ERNIE-4.5-300B-A47B-PT, 2025 · ERNIE release timeline

Inside ERNIE 4.5 300B-A47B

Parameters
300B · 47B active
Layers
54
Width
8,192
Mixer
Grouped-query
Select a component to explore it.
The complete ERNIE 4.5 300B-A47B architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. 64 query heads share 8 key/value heads; no bias on the projections. Keys and values for 8 heads per token per layer. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup103,4248,192Input token vectorsCL8,192Transformer layers 1–3Transformer layers 1–3 · 3 repetitions3 layers · one layer shown3RMSNorm before this operation.RMSNormGrouped-query attention: Dense feed-forward networks (intermediate size 28672).Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Dense feed-forward networks (intermediate size 28672).RoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormDense feed-forward: Dense feed-forward networks (intermediate size 28672).Densefeed-forwardAdd the branch output to the original stream. +Transformer layers 4–54Transformer layers 4–54 · 51 repetitions51 layers · one layer shown51RMSNorm before this operation.RMSNormGrouped-query attention: 64 text experts (size 3584), 8 chosen per token, no shared expert. Softmax scores with a selection-only bias, weights renormalised.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. 64 text experts (size 3584), 8 chosen per token, no shared expert. Softmax scores with a selection-only bias, weights renormalised.RoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: 64 text experts (size 3584), 8 chosen per token, no shared expert. Softmax scores with a selection-only bias, weights renormalised.MoE8 of 64 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Add the branch output to the original stream. +8 of 64 expertsResidual streamLast columnCL8,192Final RMSNormA separate learned vocabulary projection.Output weights8,192103,424Vocabulary scoresSoftmax103,424Next-token probabilities
Inside grouped-query attention · Transformer layers 1–3
8 query heads per group × 8 K/V groups.

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

ERNIE 4.5 300B-A47B: Transformer layers 1–3 · grouped-query attention64 query heads share 8 key/value heads; no bias on the projections. Keys and values for 8 heads per token per layer.8 KV groups; the front face shows one representative.8 KV groups8 heads / group; the front face shows one representative.8 heads / groupAttention input. 64 query heads share 8 key/value heads; no bias on the projections.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input8,192CLWq. 64 query heads share 8 key/value heads; no bias on the projections.Wq8,192128Wk. 64 query heads share 8 key/value heads; no bias on the projections.Wk8,192128Wv. 64 query heads share 8 key/value heads; no bias on the projections.Wv8,192128RoPE. 64 query heads share 8 key/value heads; no bias on the projections.RoPERoPE. 64 query heads share 8 key/value heads; no bias on the projections.RoPEK cache. 64 query heads share 8 key/value heads; no bias on the projections.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 64 query heads share 8 key/value heads; no bias on the projections.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 64 query heads share 8 key/value heads; no bias on the projections.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 64 query heads share 8 key/value heads; no bias on the projections.CLCL×. 64 query heads share 8 key/value heads; no bias on the projections.×Joined heads. 64 query heads share 8 key/value heads; no bias on the projections.64Wo. 64 query heads share 8 key/value heads; no bias on the projections.Wo8,1928,192Attention output. 64 query heads share 8 key/value heads; no bias on the projections.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output8,192CL
Model-specific details
Transformer layers 1–3 · 3 repetitions
Dense feed-forward networks (intermediate size 28672).
Transformer layers 4–54 · 51 repetitions
64 text experts (size 3584), 8 chosen per token, no shared expert. Softmax scores with a selection-only bias, weights renormalised.
Attention and positions
64 query heads share 8 key/value heads; no bias on the projections.
Memory
Keys and values for 8 heads per token per layer.

The text-only 300B checkpoint

This page covers ERNIE-4.5-300B-A47B-PT; the family’s modality-specific vision experts are outside this text checkpoint.

How it scores

AA Intelligence Index

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

Checkpoint / sizeResultEvaluation
ERNIE 4.5 300B A47B8Estimated by AAAA Index 4.3.2Published checkpoint

Explore the components

Sources for this map