Updated

nanochat is Andrej Karpathy's minimal, hackable harness for training a ChatGPT-style LLM from scratch on a single GPU node.

Pricing Free open source
Visit site

Follow nanochat to get an email when its listing changes, such as new pricing or features. One digest a day at most, and you can unsubscribe anytime.

Company Andrej Karpathy
Pricing model Open Source
Paid plans None listed
Category peers 9
01Overview

It covers the full pipeline (tokenization, pretraining, supervised finetuning, reinforcement learning, evaluation and inference) in a small PyTorch codebase, and you can talk to the resulting model over a CLI or web UI.

02Key features
  1. 01

    End-to-end pipeline: tokenizer, pretraining, SFT, RL, evaluation and KV-cache inference in one small codebase

  2. 02

    Single --depth dial that derives width, heads, learning rates, training horizon and weight decay for compute-optimal models

  3. 03

    runs/speedrun.sh trains a GPT-2-grade model in about 2 hours on an 8xH100 node

  4. 04

    Public time-to-GPT-2 leaderboard measured by the DCLM CORE score

  5. 05

    Built-in evals (CORE, ARC, GSM8K, HumanEval, MMLU), a Python tool-use sandbox and CPU/MPS support for small runs

03Pricing

Open Source

nanochat is free and open-source under the MIT license. The only cost is GPU compute: the reference GPT-2-grade speedrun takes about 2 hours on an 8xH100 node (roughly $48 at ~$3 per GPU-hour, or closer to $15 on spot instances), while small experiments can run on a single GPU, CPU or Apple Silicon.

04Who it's for

Best for

Developers, researchers and students who want to understand or experiment with every stage of LLM training using a readable codebase and a modest GPU budget.

Not ideal for

Anyone wanting a production-quality assistant or coding model: the resulting models are small and hallucinate freely, and serious runs need multi-GPU H100 or A100 hardware.

05Verdict
The clearest hands-on reference for how a modern chat LLM is built end to end, best used as a learning and research harness rather than a model to deploy.
ai.dosa.dev editorial · Nov 1, 2026
06Recent updates

The 2026 work focused on pretraining speed: the time-to-GPT-2 record fell from about 3.04 hours (January) to 1.65 hours (March) through fp8, larger batches, the NVIDIA ClimbMix dataset and agent-driven autoresearch rounds. July 2026 commits added inference benchmarking (scripts/infer_bench.py), tests, a unified optimizer implementation and a hardened execution sandbox.

As of

07Pricing & FAQ
Is nanochat free?

Yes - nanochat is Open Source. nanochat is free and open-source under the MIT license. The only cost is GPU compute: the reference GPT-2-grade speedrun takes about 2 hours on an 8xH100 node (roughly $48 at ~$3 per GPU-hour, or closer to $15 on spot instances), while small experiments can run on a single GPU, CPU or Apple Silicon.

Is nanochat open source?

Yes - nanochat is open source. nanochat is free and open-source under the MIT license. The only cost is GPU compute: the reference GPT-2-grade speedrun takes about 2 hours on an 8xH100 node (roughly $48 at ~$3 per GPU-hour, or closer to $15 on spot instances), while small experiments can run on a single GPU, CPU or Apple Silicon.

Who is nanochat best for?

Developers, researchers and students who want to understand or experiment with every stage of LLM training using a readable codebase and a modest GPU budget.

Who is nanochat not ideal for?

Anyone wanting a production-quality assistant or coding model: the resulting models are small and hallucinate freely, and serious runs need multi-GPU H100 or A100 hardware.

What are the best nanochat alternatives?

The closest nanochat alternatives on ai.dosa.dev are Copperhead, NVIDIA Personal AI Router (PAIR), WebLLM - all listed under Hardware & Edge AI.

Who makes nanochat?

nanochat is developed by Andrej Karpathy. It is listed in the Hardware & Edge AI category on ai.dosa.dev.

08More in Hardware & Edge
09Tags
  • Hardware & Edge AI
  • LLM Training
  • PyTorch
  • Education
  • Open Source
Track nanochat in your AI stack

Favorite this tool to revisit it later, or Zap it to contribute to the public vote count.

Compare Hardware & Edge Sign in to save
Content on this page is AI-generated. Please verify details with the vendor's website for accuracy. Are you the maker? Get your Featured badge ← Back to directory