Skip to content

Training: start a run from another run's network (init_from) - #7

Merged
DevomB merged 2 commits into
mainfrom
continue-run-from-network
Nov 12, 2026
Merged

DevomB merged 2 commits into
mainfrom
continue-run-from-network

Conversation

@DevomB

@DevomB DevomB commented Nov 11, 2026

Copy link
Copy Markdown
Owner

What

A training run can now start from another run's network instead of random weights, on any board size:

.venv/bin/python -m training.loop --run runs/13x13 --gofer bin/gofer --hours 48 \
  --set board_size=13 --set init_from=runs/9x9/ckpt/gen-0044.pt \
  --set temp_moves=20 --set champion_min_elo=0

No weight of GoferNet depends on the board size (convolutions and board-wide pooling), so this needs no change to the network. The new run takes the weights and nothing else: its own optimizer state, learning-rate schedule, replay window and rating ladder.

Why

The 9×9 run levels off within hours on a 32-vCPU machine. This is the first step towards one network for several board sizes: move the 9×9 network to 13×13 instead of starting 13×13 from random play.

Details

  • LoopConfig.init_from (empty by default: random weights, as before).
  • The loop refuses a missing checkpoint, or one whose blocks/channels differ from the run's, before the run directory is created. Resuming does not need the checkpoint.
  • champion.json and release notes name the starting checkpoint, because the game counts there cover only the new run.
  • Docs: "Moving to a larger board" in docs/training.md.

Tested

  • 29 Python tests pass (3 new): the new run's generation 0 has the source weights with the new board size, its ONNX export matches PyTorch on 13×13, mismatched and missing checkpoints are refused with nothing written, and release notes mention the starting network.
  • Two small 13×13 generations on a laptop starting from a 9×9 network trained for 44 generations: self-play, training, export, evaluation against GNU Go on 13×13 and the champion step all ran.

Not covered here: keeping the old board size in the training mix. A network trained only on the new size afterwards is not trained on the old one any more; the docs say to measure it there before calling it a network for both.

🤖 Generated with Claude Code

The network's weights do not depend on the board size, so a network trained
on 9x9 can start a run on 13x13. init_from names the checkpoint; the new run
takes the weights and nothing else (own optimizer state, learning-rate
schedule, replay window and rating ladder).

- loop refuses a missing checkpoint, or one of another network size, before
  the run directory is created
- champion.json and release notes name the starting checkpoint, because the
  game counts there cover only the new run
- docs: "Moving to a larger board"

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
gofer Ready Ready Preview Nov 12, 2026 5:15am UTC

An ONNX file plays one board size, so measuring a 13x13 run's network on 9x9
needs its checkpoint exported for 9x9. The docs said `gofer arena -size 9`
was enough; it is not.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@DevomB
DevomB merged commit 684db07 into main Nov 12, 2026
9 checks passed
@DevomB
DevomB deleted the continue-run-from-network branch November 12, 2026 05:41

This branch was successfully deployed

1 active deployment
Preview — 74c2257e Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant