poloclub

    poloclub/transformer-explainer

    #94 this week

    Transformer Explained Visually: Learn How LLM Transformer Models Work with Interactive Visualization

    deep-learning
    ai
    llm
    analytics
    generative-ai
    gpt
    langauge-model
    visualization
    JavaScript
    MIT
    9.0K stars
    1.0K forks
    9.0K GitHub watchers
    Updated Oct 17, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #94 of 2,531 repositories GStars tracks this week (top 4%).

    No releases in the last 90 days; the most recent was 858 days ago, with 12 contributors on GitHub.

    Peaked at #31 in the weekly ranking the week of Feb 8, its best in the past year.

    Use Cases & Benefits

    • Provides an interactive visualization tool to learn how Transformer-based language models like GPT-2 generate text.
    • Enables real-time experimentation with live GPT-2 models directly in the browser for intuitive understanding of Transformer internals.
    • Use for educational purposes to teach students and researchers the mechanics of Transformer models through hands-on interaction.
    • Use for AI developers to debug and analyze Transformer model behavior by visualizing token predictions and attention mechanisms.
    • Use for AI enthusiasts to explore and experiment with text generation processes without requiring complex setup or deep technical knowledge.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Transformer Explainer is an interactive visualization tool designed to help anyone learn how Transformer-based models like GPT work. It runs a live GPT-2 model right in your browser, allowing you to experiment with your own text and observe in real time how internal components and operations of the Transformer work together to predict the next tokens. Try Transformer Explainer at http://poloclub.github.io/transformer-explainer and watch a demo video on YouTube https://youtu.be/TFUc41G2ikY.

    Try Transformer Explainer: http://poloclub.github.io/transformer-explainer

    Transformer Explainer: Interactive Learning of Text-Generative Models. Aeree Cho, Grace C. Kim, Alexander Karpekov, Alec Helbling, Zijie J. Wang, Seongmin Lee, Benjamin Hoover, Duen Horng Chau. Poster, IEEE VIS 2024.

    Excerpt from the poloclub/transformer-explainer README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Jul 25: +6Sep 24: +5Oct 14: +29

    +719 stars over 86 days across 11 snapshot days; best day +29 on Oct 14.

    Forks

    1.0K+113

    Open issues

    23+1

    Compared with peers in Deep Learning

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 18, by 7-day star growth

    poloclub/transformer-explainer compared with Deep Learning repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    koharu-rs/koharu6.4K+1926330 days ago
    poloclub/transformer-explainer9.0K+14375858 days ago
    vllm-project/vllm94.9K+0753 days ago
    sapientinc/HRM12.7K+075—
    Project-MONAI/MONAI8.8K+07520 days ago
    opengeos/segment-geospatial4.2K+07559 days ago
    Category median8.8K+075—

    Discover Repositories

    Search across tracked repositories by name or description