Who it is forA student who wants to read and run the code before renting GPUs.
The problemGPU clusters are expensive just to learn how the pipeline fits together.
The outcomeA shrunken model trained in tens of minutes on CPU or MPS, for learning only.
What you need first
- uv
- An 8XH100 or 8XA100 node for the speedrun (a single GPU works, 8 times slower)
- CPU or Apple Silicon only for the tiny runcpu example
Steps
- Run
uv sync --extra cpu - Run
source .venv/bin/activate - Read and run the runs/runcpu.sh script
- Optionally set
NANOCHAT_DTYPE=bfloat16on recent macOS MPS to save memory
Prompt for your agent
Set up nanochat for CPU with `uv sync --extra cpu`, run runs/runcpu.sh, and explain each stage it runs as it goes.
Caveat. The README says you will not get strong results this way.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for karpathy/nanochat and "Run a tiny Nanochat training on CPU or Apple Silicon"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer