Repository navigation
Transformer Concepts Logits
After the final layer of the transformer, the Unembedding matrix projects the 896-dimensional hidden state back into a 151,936-dimensional vector (one slot for every possible token in the vocabulary). These raw, unnormalized scores are called Logits.
Logits are the model's raw opinions before they are forced into probabilities. A logit can be any number (e.g., -45.2, 0.1, or 18.5). While logits cannot be directly interpreted as percentages, their relative differences determine the final token probabilities.
TokenPrint provides access to Logits primarily through the Logit Lens and the Debugger's Ablation tools.
-
Logit Lens Panel: This permanent HUD element shows what the model would predict if you took the intermediate hidden state at Layer
$L$ , applied a final RMSNorm, and multiplied it by the Unembedding matrix. It displays both the Logit score and the Softmax probability. - Ablation Diff: When using the Debugger to zero-out an attention head, TokenPrint shows the Before/After delta of the raw Logit values, allowing researchers to see exactly how much a specific head contributed to a specific token's score.
flowchart LR
Final[Final Hidden State: 896] --> Unembed[Unembedding Matrix]
subgraph Logits Vector
Unembed --> T1["Token A: -12.4"]
Unembed --> T2["Token B: 18.2"]
Unembed --> T3["Token C: 17.9"]
end
Logits Vector --> Softmax[To Softmax]
| Previous | Home | Next |
|---|---|---|
| Residual Connections | Home | Softmax |
TokenPrint Wiki | Home | Getting Started | User Guide | Concepts | Architecture | API | GitHub
TokenPrint is an interactive 3D visualization platform for exploring transformer architectures, tensors, and real-time LLM inference.
- User Guide
- Architecture Explorer
- Live Inference
- Tensor Inspector
- Camera Controls
- HUD
- Timeline
- Scene Navigation
- Transformer Concepts
- Tokenization
- Embeddings
- Positional Encoding
- RoPE
- Multi-Head Attention
- KV Cache
- LayerNorm
- Feed Forward Network
- Residual Connections
- Logits
- Softmax
- Sampling
- Autoregressive Generation
- Visualization System
- Scene Graph
- Geometry
- Materials
- Animation System
- Color Mapping
- Camera System
- Interaction Model
- Architecture
- Overall Architecture
- Frontend
- Backend
- WebSocket Protocol
- Data Pipeline
- Renderer
- Event System