Repository navigation
v0.2.0-alpha.21
Pre-release
Pre-release
·
3 commits
to main
since this release
Dataset folds stay within a 2 GiB worker at any size and fold large backlogs in readable chunks, and run page snippets handle every run and question name. Zero new database migrations.
- Folds have bounded memory at any dataset size. Measured on prod-shaped runs: 10M rows completed every step, and a 100M run folded 72M rows, both with no worker OOM kills. Training reads now peak at 3.5 GB RSS at 10M records, down from 29.6 GB.
- The partition pass no longer keeps every row group's statistics until its files close: scratch files carry none, and each bucket starts a new file every 128 row groups.
- Each bucket merges on a fresh DuckDB connection, so memory outside DuckDB's limit no longer grows bucket by bucket.
- Past 4M rows, the bucket count grows with the data (64 buckets to 64M rows, 256 to 256M, 1,024 to 1B, capped at 4,096), keeping buckets at about 1M rows. A fold still partitions into at most 64 groups.
- Large backlogs fold in chunks, and each chunk is readable as it lands. A fold takes whole versions, at most
max(GRAD_DATASET_FOLD_MAX_ROWS (16M), the base's rows)pending rows,GRAD_DATASET_FOLD_MAX_PARTS(10,000) parts andGRAD_DATASET_FOLD_MAX_CHUNK_ROWS(128M) rows. Its last version becomes readable, and the next chunk is queued at once, without the fold throttle. Scaling the chunk with the base makes the base at least double per major fold: a 100M backlog is 4 folds and about 224M rows written, against 8 folds and 471M with fixed chunks. A failed fold retries only its chunk. A fold worker needs disk for its chunk's change inputs, about 450 bytes a row of Parquet (docs/DATASET_STORAGE.md). - Known cost: a fold reads 10–16× and writes 9–17× the compressed data it downloads (measured), mostly in DuckDB spill from carrying full payloads through each bucket's merge (inferred). A 2-CPU worker folds about 6–7k rows/s, so a 100M backlog takes about 10 h, readable chunk by chunk.
- Run page snippets compile for every name. A run named with a leading digit or a reserved word gets a
Modelprefix (Model123Triage,ModelNone). Question names that clean to the same Python attribute stay distinct (needs_escalation,needs_escalation_2) and keep the trained name asalias=._hiddenbecomeshiddenwithalias="_hidden",2fabecomesq_2fa, a__proto__question is a computed key, and sparse numeric levels (1, 3, 5) areLiteral[1, 3, 5]/z.literal([1, 3, 5]).