Who it is forA researcher testing an idea across model sizes.
The problemChanging model size usually means retuning width, heads, learning rate and training horizon by hand.
The outcomeA set of compute-optimal models where only --depth changes and other hyperparameters follow.
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 base training with
torchrun --standalone --nproc_per_node=8 -m scripts.base_trainand--depth=12 - Repeat at other depths (GPT-2 capability is around d24 to d26)
- Compare
val_bpbandcore_metricacross runs - Check
train/mfuandtrain/tok_per_secfor throughput
Prompt for your agent
Run nanochat base_train sweeps at depth 12, 16 and 20 on this node, then tabulate val_bpb, core_metric and train/mfu for each run.
Caveat. Any change to the repo should work across all depth settings.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for karpathy/nanochat and "Train a compute-optimal miniseries by changing one depth dial"
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