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

How to use Nanochat: what you can do with it

What is Nanochat? nanochat is the simplest experimental harness for training LLMs on a single GPU node. Its minimal, hackable code covers tokenization, pretraining, finetuning, evaluation and inference, so you can train a GPT-2 capability model in about 2 hours on an 8XH100 node and talk to it over a CLI. One dial, --depth, sets the model size and every other hyperparameter is derived from it.

How do I use it? Run uv sync --extra gpu for CUDA; then run source .venv/bin/activate; run bash runs/speedrun.sh, ideally in a screen session. Full steps below.

Trended earlier

View repo on GitHub

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

3 use cases

Quick start with Nanochat

  1. Check you have what it needs: 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.
  2. Open karpathy/nanochat on GitHub and read the README and license.
  3. Run uv sync --extra gpu for CUDA
  4. Run source .venv/bin/activate
  5. Run bash runs/speedrun.sh, ideally in a screen session
  6. Run python -m scripts.chat_cli to talk to the model

These steps come from our top use case, Train a GPT-2 class chat model end to end and talk to it, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for karpathy/nanochat

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Research

About this repo

  • Who it is forML engineers, students and researchers who want to train a small LLM end to end and understand every stage.
  • Why it is hot60k stars, talked about in 2 AI sources we track
  • LanguagePython
  • Sourcegithub.com/karpathy/nanochat ยท Back to Hot repos

Requirements

  • 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

Add this badge to your README

Maintain Nanochat? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/karpathy/nanochat.svg)](https://dedupedai.com/use-cases/karpathy-nanochat/?utm_source=github&utm_medium=badge&utm_campaign=karpathy-nanochat)

HTML

<a href="https://dedupedai.com/use-cases/karpathy-nanochat/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=karpathy-nanochat"><img src="https://dedupedai.com/badge/karpathy/nanochat.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Nanochat

What is Nanochat?

nanochat is the simplest experimental harness for training LLMs on a single GPU node. Its minimal, hackable code covers tokenization, pretraining, finetuning, evaluation and inference, so you can train a GPT-2 capability model in about 2 hours on an 8XH100 node and talk to it over a CLI. One dial, --depth, sets the model size and every other hyperparameter is derived from it. It is an open-source project on GitHub: https://github.com/karpathy/nanochat.

How do I use Nanochat?

Run uv sync --extra gpu for CUDA; then run source .venv/bin/activate; run bash runs/speedrun.sh, ideally in a screen session. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Nanochat for?

ML engineers, students and researchers who want to train a small LLM end to end and understand every stage.

What can I do with Nanochat?

3 use cases so far, for example: Train a GPT-2 class chat model end to end and talk to it; Train a compute-optimal miniseries by changing one depth dial; Run a tiny Nanochat training on CPU or Apple Silicon. Each has steps and a copy-paste agent prompt.

What do I need to run Nanochat?

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.

What are alternatives to Nanochat?

Other hot AI repos in Research: Deep Tutor, Local Deep Research, Project Nomad, We Knora, OpenMAIC.

Is Nanochat safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.