DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a tiny Nanochat training on CPU or Apple Silicon with Nanochat

Use the CPU or MPS setup and the runcpu example to learn the pipeline without GPUs.

Short answer: Run uv sync --extra cpu; then run source .venv/bin/activate; read and run the runs/runcpu.sh script. All steps.

  • Research
  • Intermediate
  • 45 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor

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

  1. Run uv sync --extra cpu
  2. Run source .venv/bin/activate
  3. Read and run the runs/runcpu.sh script
  4. Optionally set NANOCHAT_DTYPE=bfloat16 on 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer