opensource

This interactive visualization teaches how transformer language models work.

github.com/poloclub/transformer-explainer
opensource homepage screenshot

About opensource

Transformer Explainer is an interactive visualization tool for learning how Transformer-based models like GPT work. It runs a live GPT-2 model in the browser, where users can enter their own text and observe how internal components and operations work together to predict next tokens.

The project is open source under the MIT License and can also be run locally. Local use requires Node.js v20 or higher and NPM v10 or higher.

Key features

  • Runs a live GPT-2 model in the browser
  • Accepts user-entered text for experimentation
  • Shows internal components working to predict next tokens
  • Supports local setup with Node.js and npm
Best for: People learning how Transformer-based models like GPT predict text.
Good for
  • Runs a live model in the browser for direct experimentation
  • Open source under the MIT License
  • Includes a live demo and local setup instructions
Watch out for
  • Local setup requires Node.js v20 or higher and NPM v10 or higher

opensource at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

opensource alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Science, Math & Technology

Well-known listings from the same topic.

All 276

opensource FAQ

How can I try Transformer Explainer?
Use the live demo at http://poloclub.github.io/transformer-explainer.
How do I run it locally?
Clone the repository, run npm install and npm run dev, then open http://localhost:5173 in a browser. Requires Node.js v20 or higher and NPM v10 or higher.
What license does it use?
MIT License.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing