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>
This commit is contained in:
rektdieandclaude committed 2026-11-15 21:35:27 +01:00
1 parent 15258f952a
commit 05fd552e0b
2 files changed
+49 -21

No files matched your search

+3 -1
View File
@@ -99,7 +99,9 @@ its tars are deleted. Days already converted are skipped, so an interrupted run
be restarted. Finally every day file is shuffled into `data/lc0/policy.binpack`.
One hourly tar (~73 MB) holds ~350k positions, which take ~12 MB converted; about
three weeks of test91 (~40 GB of tars, ~190M positions) is plenty for a
10-superbatch run. With 8 connections the download runs at ~12 MB/s.
10-superbatch run. The server limits each connection to ~2.3 MB/s (what a browser
gets) but not their number, so fetch.ps1 downloads 32 tars at a time across days
(`-Parallel`): 72 MB/s measured, about 10 minutes for three weeks.
Tars downloaded by hand can be converted directly: