Microgpt-ts – Full GPT in 500 lines of TypeScript, zero dependencies
Show HN: Microgpt-ts – Full GPT in 500 lines of TypeScript, zero dependencies
Microgpt-ts – Full GPT in 500 lines of TypeScript, zero dependencies is a company in show hn launch.
Profile
I ported Karpathy's microgpt [1] to TypeScript. It implements a complete GPT-2 architecture (autograd, tokenizer, multi-head attention, RMSNorm, and Adam optimizer), all in ~500 lines with zero runtime dependencies. It runs natively in the browser, no Python runtime or backend needed.You can try it in the playground: https://microgpt-ts.vercel.app/playgroundThere are preset datasets (baby names, Pokemon, company names, movie titles, etc.) or you can paste your own text. The playground shows live loss curves as the model trains, and you can step through generation one token at a time to see the probability distribution at each step.One difference from Karpathy's original is style. His microgp
The company sits in the show hn launch segment, where it competes on its core product or service.
The company is listed at the Show HN launch stage of development.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: microgpt-ts.vercel.app
Browse related
Create a free account