gpt2-webgl
github.com · Open source · Quiet
GPT-2 implementation in WebGL2 shaders with attention visualization
- AI & agents
- Open source
- TypeScript
- Day-7 check
- Day-30 check
- gpt 2
- webgl
- visualization
- gpt2 in browser
- webgl ml inference
- transformer visualization
- gpu shader llm
- browser language model
- Stars
- 349
- Forks
- 12
- Open issues
- 2
- Last commit
- Releases
- 1
- Found
- 19 months ago
GitHub figures as of . They are context, not a ranking.
A browser-based implementation of GPT-2 that runs on WebGL2 shaders, with visualizations of the transformer blocks and attention matrices. It shows how shader programming can run a language model without CUDA. It suits readers who want to see how a transformer works in a browser.
Repository description on GitHub: “A browser-based, WebGL2 implementation of GPT-2 with transform block and attention matrix visualization”
What it does
- Full GPT-2 small forward pass on the GPU via WebGL2 shaders
- Tokenizes text in the browser with js-tiktoken
- Python script downloads pretrained GPT-2 weights
- Visualizes transformer blocks and attention matrices
Good for
- Run GPT-2 text generation in a browser without CUDA
- Study how attention is computed on the GPU
- See how a transformer works with its blocks visualized
Suits: Readers who want to see how a transformer runs in a browser.
Worth knowing: Needs Node.js, Python and a WebGL2-capable browser to run locally
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw gpt2-webgl on , when nathan-barry posted it to Show HN. The oldest published release on GitHub is v1.0, dated . Its first tagged release landed the same day it was found.
Day-7 and day-30 updates
Day 7 1 release shipped
- 1 release in the first 7 days: v1.0 (2 May 2025)
- Show HN discussion at check time: 228 points, 25 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 1 release shipped
- 1 release in the first 30 days: v1.0 (2 May 2025)
- Show HN discussion at check time: 228 points, 25 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: nathan-barry/gpt2-webgl
- Found: nathan-barry posted it to Show HN. Show HN
- Release v1.0
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was gpt2-webgl released?
- Its first tagged release on GitHub is dated 2 May 2025. Kip found it on Show HN on 2 May 2025.
- Is gpt2-webgl open source?
- Its source is public on GitHub at nathan-barry/gpt2-webgl; check the repository for licence terms.
- What does gpt2-webgl run on?
- Web.
- Is gpt2-webgl free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is gpt2-webgl still maintained?
- It has had no commit or release for over a year as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | nathan-barry/gpt2-webgl REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-43870998. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.