Commit Graph
2 Commits
Author SHA1 Message Date
rektdieandclaude 05fd552e0b fix: download Lc0 tars over 32 connections across days
storage.lczero.org limits each connection to about 2.3 MB/s but not
the number of connections: 8 give 23 MB/s, 16 give 43 MB/s, 32 give
72 MB/s. fetch.ps1 downloaded one day (about 24 tars) at a time, which
capped it at 24 connections; it now fills batches of whole days with
about two tars per connection, downloads them with -Parallel 32 by
default, then converts and deletes each day as before.

Checked: Nov 14-15 (45 tars, 2.9 GB) in one batch at 32 MB/s, 13.9M
positions, no record dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:35:27 +01:00
rektdieandclaude 1c9d2beec3 feat: policy network trainer on Lc0 visit distributions
train/policy is a fork of montytrain's policy trainer (the one Monty,
Vine and Jackal use: bullet at a pinned revision plus two CUDA
operations, SelectAffine over the legal moves' output rows and a
softmax cross-entropy against the visit distribution). Rigby's
version drops Monty's SEE split of the outputs (3920 rows, as in
Vine), takes its arguments on the command line and checks a
checkpoint with --check.

The Stockfish binpacks used for the value net only keep the played
move, so the data comes from Lc0's raw V6 training tars instead.
lc02monty rebuilds each game from its first record and the played
moves and checks every record: pieces must match, and the moves Lc0
gave a probability must be exactly the legal moves. Lc0 writes
castling as king-takes-rook; Chess960 games keep their rook files.
On a test91 tar all 351,454 records convert. fetch.ps1 downloads a
run's hourly tars day by day, converts and deletes them, and
interleave shuffles the day files into one.

Defaults sized for a 20-minute run on the RTX 3070: 1024 hidden,
10 superbatches of 100M positions (~1M positions/s). The pinned
cudarc does not know CUDA 13.3, so env.ps1 sets
CUDARC_CUDA_VERSION=13000.

Checked: a smoke run on one tar lowers the loss from 2.89 to 2.38 and
gives plausible opening priors; a checkpoint reloads to identical
output; interleaved data trains.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:27:08 +01:00