Skip to content

Commit e481360

Browse files
committed
Keep curation workers busy and recover cleanly from failures
1 parent d2268de commit e481360

5 files changed

Lines changed: 461 additions & 185 deletions

File tree

‎docs/data.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ The presentations are `zero` (suffix only), `full` (complete thought), and `rand
7171

7272
## Release and validation
7373

74-
A producer release contains shards and `release.json`. Each shard stores `data.parquet`, `champions.jsonl`, and its manifest. The local Parquet schema has seventeen columns: eleven shared fields plus `root_id`, `split`, `trace_token_ids`, `trace_len`, `state_best`, and `state_value`. Trace IDs and the two best-state lists are ragged; padding is added only when forming a training batch. `trace_len` counts the stored IDs, including the final suffix and excluding the initial board prefix. State counts come from list offsets, and their ordinal alignment follows complete thought operations in the expanded base sequence. Initial board tokens derive from FEN and repetition. Shards are published atomically, registered by index and row count, and can be recovered or resumed against the selected roots. A persistent worker pool processes at most two shards at a time while completed shards are written.
74+
A producer release contains shards and `release.json`. Each shard stores `data.parquet`, `champions.jsonl`, and its manifest. The local Parquet schema has seventeen columns: eleven shared fields plus `root_id`, `split`, `trace_token_ids`, `trace_len`, `state_best`, and `state_value`. Trace IDs and the two best-state lists are ragged; padding is added only when forming a training batch. `trace_len` counts the stored IDs, including the final suffix and excluding the initial board prefix. State counts come from list offsets, and their ordinal alignment follows complete thought operations in the expanded base sequence. Initial board tokens derive from FEN and repetition. Shards are published atomically, registered by index and row count, and can be recovered or resumed against the selected roots. A persistent worker pool refills root searches independently of shard completion, with at most twice the worker count in flight. Each worker checkpoints its result before reporting completion; shard publication loads records from those checkpoints.
75+
76+
Checkpoints remain under `.roots/` until their shard is registered. Roots exceeding the search timeout are recorded under `dropped` in `release.json` and are never retried. Other collection failures get up to three attempts across runs; a shard with unresolved failures stays unpublished. Engine startup failures abort the run without consuming a root attempt. An abort cancels queued searches and interrupts running engines while preserving completed checkpoints. A shard whose roots all time out contains an empty Parquet file, which encoding preserves.
7577

7678
Trace datasets use manifest `format_version = 11` and `grammar_version = 2`; stored trace IDs use list<int32>. The release identity includes the joint recipe and presentation probabilities; rows store teacher depth and configured width, with effective width derived from legal moves when needed. The shared columns are `fen`, `presentation`, `repetition`, `turn`, `teacher_depth`, `teacher_width`, `trace_text`, `final_move`, `final_value`, `mate_distance`, and `source`. `trace_text` is authoritative and transcribes the selected trace in absolute SAN, including board observations, evaluations, control operations, and the final suffix. `final_value` is nullable float32 `(W-L)/1000` from the deepest teacher WDL; mates use a null value and a signed mate distance. This scalar is distinct from the quantized value represented by trace tokens. Depth, width, repetition, and mate distance use int16; the remaining shared fields are strings.
7779

0 commit comments

Comments
 (0)