poloclub/transformer-explainer
Transformer Explained Visually: Learn How LLM Transformer Models Work with Interactive Visualization
About the project
Interactive visualization of how Transformer models work: runs a live GPT-2 in the browser and shows how internal components predict the next tokens.
Useful for
- Learn how a Transformer works using a live GPT-2 in the browser
- Test with your own text how the model predicts the next tokens
- Walk through attention and other internal components step by step
README summarized by DeepSeek V4.1 Flash. Details may be inaccurate.
Why it’s trending
- 9 stars so far today, about 28 expected by the end of the day. The usual pace is 7 per day, so that's 4.2× as much.
- Over the last two days the pace is 10× that of the previous week and a half.
- The spike has held for 3 days in a row — not a one-off blip.
- GitHub Trending JavaScript today: #5, +54 stars.
- Hacker News: “Transformers Explained Visually” — 616 points, 1 day ago.
- Recent forks include notable developers: @millette (309 followers).
Stars per day
Bars are daily stars, the line is the usual pace. Red marks spike days.
Numbers
- Total stars
- 8,719
- Today
- 9 · ≈ 28 by evening
- Forks
- 983
- Issues and pull requests
- 87
- Watchers
- 73
- Language
- JavaScript
- License
- MIT
- Latest release
- v0.0.1 · June 11, 2024
- Created
- May 16, 2024
- Last push
- June 6, 2026
Star trust
Growth looks organic: forks and discussion are in line with active projects, and stars arrive unevenly, the way people give them.
These are heuristics, not a verdict: we judge by the repository’s behavior, not by a list of stargazers.
Hacker News discussions
- Transformers Explained Visually616 points, September 21, 2026
Spotted in
- September 23, 2026GitHub Trending JavaScript today: #5, +54 stars
Similar by description
-
4.0
FareedKhan-dev/train-llm-from-scratch
Educational project: a from-scratch PyTorch Transformer plus a full LLM training pipeline — from raw text through SFT, reward modeling, PPO/DPO/GRPO to chat, without transformers, trl or peft.
-
0.8
petergpt/transformer-architecture
Interactive 3D visualization of the Transformer and DeepSeek V4.1 Flash architectures, showing token flow, attention heads, expert routing and caching. An educational JavaScript project with no build step or API keys.
-
0.0
Binaire-0101/FRZi-inference
FRZi-inference is an inference engine for running machine learning models. It is designed to execute pre-trained models and obtain predictions.