nanochat
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Karpathy's nanochat gives anyone a complete, hackable ChatGPT-style stack they can train end-to-end for about $100, making full LLM training practical for individuals and classrooms rather than only well-funded labs.
Andrej Karpathy has released nanochat, an open-source project that contains everything needed to build a small ChatGPT-like chatbot: the training code, the program that runs it, and a website for chatting with it. The whole thing is about 8,000 lines of code. Renting powerful computers for four hours costs roughly $100 and produces a model that can hold a basic conversation; twelve hours produces one slightly better than GPT-2. Hobbyists, students and researchers can now afford to train their own chatbot from scratch.
Karpathy's nanochat is an open-source, full-stack ChatGPT replica that can be trained for about $100 of rented GPU time (an 8XH100 node at roughly $24/hour), producing a 561M-parameter model small enough to run on a Raspberry Pi. A 12-hour run slightly outperforms GPT-2. It lowers the barrier to hands-on LLM training for education and experimentation; it does not threaten commercial models, and longer-run results are not yet reported.
nanochat is a ~8,000-line PyTorch codebase with a Rust tokenizer (rustbpe), covering training, inference and a vanilla JavaScript web UI. Default pretraining uses ~24GB of karpathy/fineweb-edu-100b-shuffle, midtraining on 568K examples (SmolTalk, MMLU aux, GSM8K), then SFT on 21.4K examples (ARC-Easy/Challenge, GSM8K, SmolTalk). Output is ~561M parameters; 4 hours on 8XH100 (~$100) yields a near-coherent chat model, 12 hours slightly beats GPT-2. Long-run results unpublished.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
nanochat ChatGPT GPT-2 Raspberry Pi FineWeb-Edu SmolTalk GSM8K
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Self-hosted YouTube client that falls back to SABR when side doors close
A self-hosted YouTube client lets users watch videos without Google accounts, ads, or tracking, keeping data local and enabling shared libraries across devices.
datasette-charts 0.4a0
Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.
Node graph engine that runs big diffusion models on 4GB VRAM
ComfyUI's asynchronous weight streaming lets large diffusion models run on 4GB VRAM, meaning practitioners with modest GPUs no longer need expensive hardware for local image, video and audio generation.