← all repositories

poloclub/transformer-explainer

An interactive browser-based tool that runs a live GPT-2 model to visualize how Transformers predict the next token.

7.8k stars JavaScript Learning
transformer-explainer
Velocity · 7d
+10
★ / day
Trend
steady
star history

Transformer Explainer is an educational web application that lets users input text and watch a real GPT-2 model process it, visualizing attention patterns, feed-forward computations, and token prediction in real time. Built with JavaScript and based on research published at IEEE VIS 2024, it aims to make the internal mechanics of large language models accessible to learners without requiring deep ML expertise.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.