nathanrs/gpt2-webgl
View on GitHub ↗ ★ 348 TypeScript
A browser-based, WebGL2 implementation of GPT-2 with transform block and attention matrix visualization
4 mentions on Hacker News by 2 people: 1 story, 3 comments · first 2025-05-02 · latest 2025-05-27
20082026
-
…GPT-2 running and the visualizations of the attention matrices and transformer block outputs Repo: https://github.com/nathan-barry/gpt2-webgl
comment by nathan-barry · 2025-05-27 · in Running GPT-2 in WebGL: Rediscovering the Lost Art of GPU Shader Programming -
…simple that does something non-trivial. It reminded me of the early "GPGPU" days (early 2000s?) [1] https://github.com/nathan-barry/gpt2-webgl/blob/main/src/gpt...
comment by flakiness · 2025-05-27 · in Running GPT-2 in WebGL: Rediscovering the Lost Art of GPU Shader Programming -
…on load, but probably not today. There is a link to the zipped up folder with the weights here: https://github.com/nathan-barry/gpt2-webgl/releases/download... If anyone wants to make a PR which fetches the file from there, unzips it, then…
comment by nathan-barry · 2025-05-02 · in Show HN: GPT-2 implemented using graphics shaders -
▲ 228
Show HN: GPT-2 implemented using graphics shadersstory by nathan-barry · 2025-05-02 · 25 comments