Show HN: Microgpt-ts – Full GPT in 500 lines of TypeScript, zero dependencies
https://microgpt-ts.vercel.app/
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...