Exploring Karpathy's New NanoChat Project

Share
Markdown version
Exploring Karpathy's New NanoChat Project

OK. This is Big. If you don't know who Andrej Karpathy is, please get to know him and all of his amazing writing and projects.

💡
If you're a hands-on developer, I recommend Karpathy's "Technical Track" set of youtube videos where he basically builds an LLM from absolute scratch, including tokenization. Just be warned - it's about as deep as a rabbit hole goes.

Recently, Andrej released a new repository project called NanoChat -

"A minimal, from scratch, full stack training/inference pipeline of a simple chatGPT clone. "

You can read all about it in his own words:

Now What?

My background is software development & engineering, and less research, and I've been slowly getting into the "deep" side of LLMs and how models work under the covers. So I'll be walking through the code , run the training myself and document any insights or findings here on this blog.

I'll be starting from this page, and as we speak I'm running the training on lambda.ai. But my goal is to understand all the steps in a deep way. Today I understand them in a very surface level way, and have been working to change that. Will report back as I progress.

Terminal output of nanochat training steps showing loss, learning rate and tokens per second
Training in progress

Read next

  1. Reference Architecture: OpenClaw (Early Feb 2026 Edition, Opus 4.6)
  2. Graphlin - Jev-Enabled Live Architecture Visualizer
  3. The New Bottlenecks After Coding