Rotate an exploded transformer block. Select any marker to examine its maths, failure modes, and place in the stack.
Drag to rotate · Arrow keys move between markers
OutputLM head
ComputeFeed-forward
RoutingSelf-attention
InputEmbeddings
3D SPECIMEN · CLICK A DOT TO EXPLORE
Specimen annotations
Your browser does not expose WebGL, so the 3D view cannot be drawn. Everything below is the same content.
Input encoding
Tokenizer
Text into integers
Splits text into subword units and maps each to an integer. Every downstream cost — context length, price per call, throughput — is denominated in these units.
Parameters: None (a lookup table, not learned weights). Dominant cost: Negligible at inference.
Across architectures
The main alternatives are BPE · SentencePiece · byte-level BPE · Unigram.
A token's journey
Text into integers. Splits text into subword units and maps each to an integer. Every downstream cost — context length, price per call, throughput — is denominated in these units.
Failure modes
If this component is constrained or misconfigured, the model loses capacity for input encoding.
Where it sits
Historical marker: BPE: Sennrich et al., 2016. Variants in use: BPE · SentencePiece · byte-level BPE · Unigram.