Hacker News
Train Your Own LLM from Scratch Hits 263 Points on HN — Build a ~10M Parameter GPT in Under an Hour on a Laptop
A GitHub repo by angelos-p for building a working GPT model from scratch in a few hundred lines of PyTorch hit 263 points on Hacker News. Inspired by Karpathy's nanoGPT, the project strips down to a ~10M parameter model that trains on a laptop in under an hour with no pre-trained weights or black-box libraries — you build the tokenizer, attention, training loop, and generation from scratch. The 29-comment HN discussion is mostly practitioners sharing what they learned about transformer internals through hands-on implementation.
↳ Follow the thread