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

How to train a compute-optimal miniseries by changing one depth dial with Nanochat

Run base training at different --depth values and compare validation bits per byte and CORE score.

Short answer: Run base training with torchrun --standalone --nproc_per_node=8 -m scripts.base_train and --depth=12; then Repeat at other depths (GPT-2 capability is around d24 to d26); Compare val_bpb and core_metric across runs. All steps.

  • Research
  • Advanced
  • 3 hours
  • From the README
  • Claude Code
  • Codex

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

  1. Run base training with torchrun --standalone --nproc_per_node=8 -m scripts.base_train and --depth=12
  2. Repeat at other depths (GPT-2 capability is around d24 to d26)
  3. Compare val_bpb and core_metric across runs
  4. Check train/mfu and train/tok_per_sec for 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

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