nanochat

Karpathy's open-source "teaching ChatGPT" — train a chat model from scratch for under $100

★ 58,350 stars, verified 2026-09-30Category: Foundation ModelsGitHub repository ↗

Karpathy's open-source "teaching ChatGPT": train a chat-capable model from scratch for under $100 — the best LLM educational code.

Open foundation models — the base layers everything builds on.

Key features

Good for

Stack & tags

Pythonllm-trainingeducationopen-sourcegpt-2speedrunharnessresearch

Quick start

bash runs/speedrun.sh

From the project README on GitHub.

Screenshots

Screenshots from the project’s GitHub README.

Similar open-source projects

Kronos

★ 41,634

Kronos: A Foundation Model for the Language of Financial Markets

Foundation ModelsGitHub ↗

Laya

★ 29,933

Non-autoregressive System 1 decision engine — typed decisions in a single forward pass, 100+ languages

Foundation ModelsGitHub ↗