---
schema: "https://insidethemachine.ai/schema/listing.schema.json"
slug: "nanogpt"
name: "nanoGPT"
kind: "repo"
tier: "catalog"
category: "finetune"
category_label: "Fine-tuning"
stack_layer: "model"
homepage: null
repo: "https://github.com/karpathy/nanoGPT"
license: "MIT"
stars: 63835
last_push: "2025-11-12"
archived: false
tags: ["slow-activity"]
seen_in_videos: []
gap_score: null
gap_score_status: "pending test on Mac Studio"
verified_on: "2026-10-15"
---

# nanoGPT

**What:** The simplest repo to train small GPTs.

**Why:** Teach a model your data and style.

**Category:** Fine-tuning · **Stack layer:** model

## Status

Catalog entry. Existence and repo metadata checked 2026-10-15 via the GitHub API. Install commands below are auto-extracted from the README and have NOT been executed or verified. Read the README before running anything; prefer a sandbox or venv.

## Install (unverified)

1. [any] source: README (auto-extracted); status: unverified, not executed

```bash
pip install torch numpy transformers datasets tiktoken wandb tqdm
```

## Verify

No verified check yet. Minimum: the install command exits 0 and the tool's own help/version flag runs (exact flag: see README).

## Rollback (unverified)

1. source: derived inverse of install command

```bash
pip uninstall -y torch
```

## Links

- Repo: https://github.com/karpathy/nanoGPT
- README: https://github.com/karpathy/nanoGPT#readme
