Verified project record
karpathy/nanochat
nanochat is a minimal, hackable codebase that trains a GPT-2 capability LLM end to end for under ~$100 and lets you chat with the trained model over a CLI. It covers all major LLM stages, including tokenization, pretraining, finetuning, evaluation, and inference.