4 ms·
Show HN: PicoGPT v2 – GPT in <40 lines of vanilla JS running from a QR code
A few days ago I posted about PicoGPT - my take on MicroGPT by Andrej Karpathy, minified to 64 lines to run from a QR code
This is now v2 with minified JS! This version features a minimal GPT implementation with native browser execution through data URI with <40 lines of minified JS and no external dependencies
It makes use of the DecompressionStream Web API and a similiar logic to my past project of running a DOOM-like game from a QR code
you can quite literally "train" and run inference of a GPT model from your mobile device
Would love to hear what you think about it !
Related Links:
Show HN: PicoGPT – GPT in a QR Code
https://news.ycombinator.com/item?id=46993035 https://news.ycombinator.com/item?id=46993035
MicroGPT by Andrej Karpathy -
https://gist.github.com/karpathy/8627fe009c40f57531cb18360106ce95 https://gist.github.com/karpathy/8627fe009c40f57531cb1836010...
https://karpathy.github.io/2026/02/12/microgpt/ https://karpathy.github.io/2026/02/12/microgpt/
Show HN: I made a Doom-like game fit inside a QR code -
https://news.ycombinator.com/item?id=43729683 https://news.ycombinator.com/item?id=43729683
https://github.com/kuberwastaken/backdooms https://github.com/kuberwastaken/backdooms
(PS: You'd need something like https://qrscanner.org/ https://qrscanner.org/ that can scan larger QR codes)
- kuberwastaken 8mo ago++ the original python version does have a dependency on math and numpy but that's rather expected haha ; thought I should mention nonetheless