Dataset card: add the 8k batch-size grid, refresh run counts
Browse files
README.md
CHANGED
|
@@ -12,7 +12,7 @@ pretty_name: rig training logs
|
|
| 12 |
# rig training logs
|
| 13 |
|
| 14 |
Complete training logs for every GPT pretraining run in
|
| 15 |
-
[honglu2875/rig](https://github.com/honglu2875/rig) —
|
| 16 |
studies, at full recorded resolution. Loss and learning-rate curves at every
|
| 17 |
optimizer step; per-layer parameter, gradient, and update statistics at every
|
| 18 |
diagnostic step. Nothing here is downsampled.
|
|
@@ -68,6 +68,7 @@ and the dashboards show them beside each run.
|
|
| 68 |
| `lr-transfer-250M` | TPU v4 — 4 processes, 16 chips |
|
| 69 |
| `lr-sweep-8k-60M` | TPU v4 — 4 processes, 16 chips |
|
| 70 |
| `moe-lr-sweep-8k` | TPU v4 — 4 processes, 16 chips |
|
|
|
|
| 71 |
|
| 72 |
`batch-sweep-500M` is the only study spanning two chip types, and the split
|
| 73 |
follows its 5- against 20-tokens-per-parameter arms. Those are separate
|
|
@@ -180,6 +181,19 @@ second, separately labelled click that states the size before it starts:
|
|
| 180 |
Everything it fetches is an ordinary report payload, so the page never needs to
|
| 181 |
understand the packed log format — the two only have to agree about JSON.
|
| 182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
## Contents
|
| 184 |
|
| 185 |
| report | runs | tier(s) | what varies | logs |
|
|
@@ -191,6 +205,7 @@ understand the packed log format — the two only have to agree about JSON.
|
|
| 191 |
| [3-seed-gradient-spike](3-seed-gradient-spike.html) | 12 | 250M | LR × seed | [`lr-transfer-250M`](https://huggingface.co/datasets/quintic/rig-logs/tree/main/lr-transfer-250M) |
|
| 192 |
| [8k-lr-sweep-60M](8k-lr-sweep-60M.html) | 15 | 60M | LR × seed at 8k context | [`lr-sweep-8k-60M`](https://huggingface.co/datasets/quintic/rig-logs/tree/main/lr-sweep-8k-60M) |
|
| 193 |
| [moe-lr-sweep-8k](moe-lr-sweep-8k.html) | 18 | 60M/125M | LR × seed, top-2 of 8 experts | [`moe-lr-sweep-8k`](https://huggingface.co/datasets/quintic/rig-logs/tree/main/moe-lr-sweep-8k) |
|
|
|
|
| 194 |
| [transfer-charts](transfer-charts.html) | — | — | derived figures, not a run dashboard | — |
|
| 195 |
|
| 196 |
Each study also carries a `snapshot.json.gz` (loss curves only, 0.05–0.30 MB)
|
|
@@ -369,6 +384,45 @@ for lr in 0.015625 0.0078125 0.00390625 0.001953125 0.0009765625; do
|
|
| 369 |
done
|
| 370 |
```
|
| 371 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 372 |
## transfer-charts.html
|
| 373 |
|
| 374 |
Not a run dashboard. Derived figures built from recorded results by
|
|
|
|
| 12 |
# rig training logs
|
| 13 |
|
| 14 |
Complete training logs for every GPT pretraining run in
|
| 15 |
+
[honglu2875/rig](https://github.com/honglu2875/rig) — 237 runs across eight
|
| 16 |
studies, at full recorded resolution. Loss and learning-rate curves at every
|
| 17 |
optimizer step; per-layer parameter, gradient, and update statistics at every
|
| 18 |
diagnostic step. Nothing here is downsampled.
|
|
|
|
| 68 |
| `lr-transfer-250M` | TPU v4 — 4 processes, 16 chips |
|
| 69 |
| `lr-sweep-8k-60M` | TPU v4 — 4 processes, 16 chips |
|
| 70 |
| `moe-lr-sweep-8k` | TPU v4 — 4 processes, 16 chips |
|
| 71 |
+
| `batch-size-grid-8k` | TPU v4 — 4 processes, 16 chips |
|
| 72 |
|
| 73 |
`batch-sweep-500M` is the only study spanning two chip types, and the split
|
| 74 |
follows its 5- against 20-tokens-per-parameter arms. Those are separate
|
|
|
|
| 181 |
Everything it fetches is an ordinary report payload, so the page never needs to
|
| 182 |
understand the packed log format — the two only have to agree about JSON.
|
| 183 |
|
| 184 |
+
## Hardware is part of a result
|
| 185 |
+
|
| 186 |
+
The same configuration and seed lands 0.004–0.023 nats apart on a 16-chip
|
| 187 |
+
v4 slice versus an 8-chip v6e — the same size as the seed effect. The data is
|
| 188 |
+
identical (the stream is invariant under process count, verified) and so is the
|
| 189 |
+
attention tile plan; what differs is that gradients reduce across a different
|
| 190 |
+
number of devices and each chip holds a different share of the batch.
|
| 191 |
+
|
| 192 |
+
Every dashboard therefore shows chip kind, chip count, and process count beside
|
| 193 |
+
each run, and the run filter matches on chip. Every study is TPU v4, 4
|
| 194 |
+
processes, 16 chips, except `batch-size-sweep-500M`, which mixes that with 6
|
| 195 |
+
runs on TPU v6 lite at 1 process and 8 chips — its 20-TPP arm.
|
| 196 |
+
|
| 197 |
## Contents
|
| 198 |
|
| 199 |
| report | runs | tier(s) | what varies | logs |
|
|
|
|
| 205 |
| [3-seed-gradient-spike](3-seed-gradient-spike.html) | 12 | 250M | LR × seed | [`lr-transfer-250M`](https://huggingface.co/datasets/quintic/rig-logs/tree/main/lr-transfer-250M) |
|
| 206 |
| [8k-lr-sweep-60M](8k-lr-sweep-60M.html) | 15 | 60M | LR × seed at 8k context | [`lr-sweep-8k-60M`](https://huggingface.co/datasets/quintic/rig-logs/tree/main/lr-sweep-8k-60M) |
|
| 207 |
| [moe-lr-sweep-8k](moe-lr-sweep-8k.html) | 18 | 60M/125M | LR × seed, top-2 of 8 experts | [`moe-lr-sweep-8k`](https://huggingface.co/datasets/quintic/rig-logs/tree/main/moe-lr-sweep-8k) |
|
| 208 |
+
| [batch-size-grid-8k](batch-size-grid-8k.html) | 42 | 60M/125M | batch × LR × seed at 8k, dense and routed | [`batch-size-grid-8k`](https://huggingface.co/datasets/quintic/rig-logs/tree/main/batch-size-grid-8k) |
|
| 209 |
| [transfer-charts](transfer-charts.html) | — | — | derived figures, not a run dashboard | — |
|
| 210 |
|
| 211 |
Each study also carries a `snapshot.json.gz` (loss curves only, 0.05–0.30 MB)
|
|
|
|
| 384 |
done
|
| 385 |
```
|
| 386 |
|
| 387 |
+
## batch-size-grid-8k.html
|
| 388 |
+
|
| 389 |
+
42 runs extending the two 8k ladders to batch 32 and 64 — `reference_8k` and
|
| 390 |
+
`reference_moe` at 60M with three seeds per cell, `reference_moe` at 125M with
|
| 391 |
+
one. Three learning rates at every batch, so no batch is judged at a rate
|
| 392 |
+
picked for another. The batch-16 arm is not in this study: it is the ladder
|
| 393 |
+
each family already had, in `lr-sweep-8k-60M` and `moe-lr-sweep-8k`.
|
| 394 |
+
|
| 395 |
+
The token budget is held fixed across batches, so doubling the batch halves the
|
| 396 |
+
optimizer steps — 2,286 down to 571 at 60M. **Batch 16 wins everywhere.** The
|
| 397 |
+
best batch-32 run costs 0.39 nats at 60M dense, 0.27 routed, 0.05 at 125M; the
|
| 398 |
+
best batch-64 run costs 1.30, 1.15, and 0.31. Throughput is flat across the
|
| 399 |
+
grid (1,041 → 1,100 → 1,093 TFLOP/s at 60M dense), so nothing is bought back in
|
| 400 |
+
wall-clock. This reverses the 1,024-context ladder, where batch 128 was optimal
|
| 401 |
+
and larger batches finished sooner on the same budget; at 8k a single sequence
|
| 402 |
+
is eight times longer, so batch 16 already saturates the chips.
|
| 403 |
+
|
| 404 |
+
The apparent best learning rate moves between cells, but the seed spread grows
|
| 405 |
+
with batch — median 0.011 at batch 16, 0.046 at 32, 0.068 at 64 — until it is
|
| 406 |
+
as large as the gaps between rates. The drift is not resolvable at three seeds,
|
| 407 |
+
and every large-batch cell is far worse than batch 16 at every rate tried, so
|
| 408 |
+
it was not worth more machine time.
|
| 409 |
+
|
| 410 |
+
```bash
|
| 411 |
+
for recipe in reference_8k reference_moe; do
|
| 412 |
+
tag=$([ "$recipe" = reference_8k ] && echo 8k || echo moe)
|
| 413 |
+
for batch in 32 64; do
|
| 414 |
+
for lr in 0.0078125 0.00390625 0.001953125; do
|
| 415 |
+
for seed in 1337 1338 1339; do
|
| 416 |
+
rig run "$recipe" --cluster v4-32 --profile dev --track open \
|
| 417 |
+
--tier 60m --tokens-per-parameter 5 --study-batch-size "$batch" \
|
| 418 |
+
--base-learning-rate "$lr" --seed "$seed" --checkpoint-policy none \
|
| 419 |
+
--name "60m-${tag}-bs${batch}-lr${lr}-s${seed}"
|
| 420 |
+
done
|
| 421 |
+
done
|
| 422 |
+
done
|
| 423 |
+
done
|
| 424 |
+
```
|
| 425 |
+
|
| 426 |
## transfer-charts.html
|
| 427 |
|
| 428 |
Not a run dashboard. Derived figures built from recorded results by
|