Skip to content

Train from a checkpoint verified against its NNUE - #12

Merged
arhancanli merged 1 commit into
engine/macbook-continuous-20261005from
engine/champion-initialization-20261005
Oct 5, 2026
Merged

arhancanli merged 1 commit into
engine/macbook-continuous-20261005from
engine/champion-initialization-20261005

Conversation

@arhancanli

Copy link
Copy Markdown
Owner

The trainer can now start an isolated fine-tuning study from an existing PyTorch checkpoint instead of random weights. Both --init-checkpoint and --init-network are required, and the checkpoint must reproduce the supplied NNUE byte for byte with the configured architecture. Invalid layouts, keys, dtypes, nonfinite weights and output aliases fail before candidate export. Source hashes are checked again after training, and .init.json records initialization and selected artifact hashes. Warm initialization defaults to LR 1e-5; the existing cold default remains 1e-3.

Validation: all 62 local Python tests passed, including the original cold-run checkpoint regression. A real 512-hidden Metal zero-LR control visited all 69,613 frozen records, kept exactly the champion weights and NNUE, re-exported its checkpoint identically, matched 256 native integer evaluations and returned 16 legal searches. The reserved validation slot retained all 896 history-pruning games, configuration, seed and queue/settings hashes, and resumed the service.

This adds training mechanics for the later controlled study. The active controller remains on the explicit 512-hidden / 80M-fresh profile; no new learning result, strength gain or playing-engine promotion is claimed. The README reflects that installed profile.

@arhancanli
arhancanli marked this pull request as ready for review October 5, 2026 18:37
@arhancanli
arhancanli merged commit c306794 into engine/macbook-continuous-20261005 Oct 5, 2026
1 check passed
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