
Nanochat Llm Training
Train a GPT-2-class LLM for about $48 with nanochat's minimal, hackable end-to-end harness.
- skills.sh installs
- 1.3K
- GitHub stars
- 98
- last updated
- Jul 14, 2026
What it does
- Covers tokenization, pretraining, SFT finetuning, RL, DCLM CORE evaluation, KV-cache inference, and a chat UI
- Uses a single
--depthdial that auto-derives width, heads, learning rate, training horizon, and weight decay - Provides
runs/speedrun.shfor the 8×H100 reference pipeline, plus CPU/Apple Silicon and single-GPU paths - Designed for researchers and hobbyists who want a readable training stack they can modify and reproduce
Install
$ npx -y skills add reason-machines/trending-skills --skill nanochat-llm-training -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
nanochat LLM Training
Skill by ara.so — Daily 2026 Skills collection.
nanochat is Karpathy's minimal, hackable harness for training LLMs end-to-end on a single GPU node. It covers tokenization, pretraining, SFT finetuning, RL, evaluation (DCLM CORE score), inference with KV cache, and a ChatGPT-like web UI. A single complexity dial (--depth) auto-configures all other hyperparameters (width, heads, LR, training horizon, weight decay) for compute-optimal training. You can reproduce GPT-2 capability (~$43,000 in 2019) for ~$48 on an 8×H100 node (~2 hours).
Installation
nanochat uses uv for dependency management:
git clone https://github.com/karpathy/nanochat.git
cd nanochat
# Install uv if needed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create venv and install deps
uv sync
source .venv/bin/activate
Key Commands
Full GPT-2 Speedrun (8×H100 node, ~2–3 hours, ~$48)
# Run the reference pipeline: data download, pretraining, SFT, eval, chat
bash runs/speedrun.sh
Pretraining (distributed)
Details
- Repository
- github.com/reason-machines/trending-skills
- Categories
- AI Agents & LLM Apps, Data Science & Analytics
- First seen
- Apr 16, 2026
More from reason-machines/trending-skills
All 163- Open Autoglm Phone Agent1.3K
- Openclaw Rl Training1.3K
- Openviking Context Database1.3K
- Picoclaw Ai Assistant1.3K
- Posterskill Academic Posters1.3K
- Tavily Key Generator Proxy1.3K
- Toon Format1.3K
- Translate Book Parallel1.3K
- Trump Code Market Signals1.3K
- Vinext Vite Nextjs1.3K
- Voicebox Voice Synthesis1.3K
- Aracli Deploy Management1.2K
- Codex Autoresearch Loop1.2K
- Fabro Workflow Factory1.2K
- Grimmory Self Hosted Library1.2K
- Keyid Agent Kit Mcp1.2K
- Kimodo Motion Diffusion1.2K
- Nightingale Karaoke1.2K
- Openhanako Personal Ai Agent1.2K
- Slug Font Rendering1.2K
- Taiwan Md Knowledge Base1.2K
- Witr Process Inspector1.2K
- Zeroboot Vm Sandbox1.2K
- Code Review Graph1.1K
Similar to Nanochat Llm Training
More AI Agents & LLM Apps
nanogptorchestra-research/ai-research-skills1.1K installsMinimal GPT training codebase that reproduces GPT-2 (124M) for learning transformers from scratch.
llmmindrally/skills762 installsBroad LLM development guidance covering architecture, fine-tuning, distributed training, evaluation, and deployment.
awesome-free-llm-apisreason-machines/trending-skills904 installsCurated reference for permanent free-tier LLM APIs, with rate limits, model lists, and OpenAI-compatible integration code.
implementing-llms-litgptorchestra-research/ai-research-skills1.1K installsClean single-file LLM implementations and LoRA/QLoRA fine-tuning workflows built on Lightning AI's LitGPT.
picoclaw-ai-assistantreason-machines/trending-skills1.3K installsUltra-lightweight Go AI assistant under 10MB RAM with multi-provider LLM support and single-binary deployment.
llm-fine-tuning-guideqodex-ai/ai-agent-skills196 installsPractical guide to fine-tuning LLMs covering full tuning, LoRA, QLoRA, and domain-specific data preparation.