---
id: "andrej-karpathy-nanochat"
title: "nanochat"
creator: "Andrej Karpathy"
creator_url: "https://github.com/karpathy/nanochat"
url: "https://github.com/karpathy/nanochat"
level: "expert"
level_max: null
category: "model-training"
subcategory: "pretraining"
region: "West"
license: "open"
license_scope: "linked-resource"
models: ["any"]
source_date: null
date_added: "2026-10-18"
---

[Model Training](/model-training/index.md)

# nanochat

by [Andrej Karpathy](https://github.com/karpathy/nanochat)

[Read the original →](https://github.com/karpathy/nanochat)

A compact training harness spanning the model-development lifecycle.

Karpathy's nanochat connects tokenization, pretraining, fine-tuning, evaluation and inference in one repository. It is intended for studying and modifying a real training stack, not merely trying a chat interface.

Level: [Expert](/levels/index.md#expert)
Models: any
Category: [Model Training](/model-training/index.md)
Tags: 
Source date: date not stated
Added: 2026-10-18
Last verified: 2026-10-18
Status: ok
Prerequisites: Acts on model-training, infrastructure or research tooling; requires training-stack expertise.
Subcategory: [pretraining](/model-training/pretraining/index.md)
Region: West
Original language: en
Access: free
Resource reuse: open: Source states MIT. Applies to the linked resource, not every referenced model or dataset. [Facet definitions](/about/index.md#facets)

Summary in our own words. Rights remain with the original creator. [Credit and correction policy](/about/index.md#credit-policy).

[Plain-text Markdown copy](/model-training/pretraining/andrej-karpathy-nanochat/index.md)
