Correct why topology changes a result: the data stream is invariant, the arithmetic is not
Browse files- README.md +20 -17
- batch-sweep-250M/README.md +1 -1
- batch-sweep-500M/README.md +1 -1
- batch-sweep-60M/README.md +1 -1
- lr-batch-sweep-125M/README.md +1 -1
- lr-sweep-8k-60M/README.md +1 -1
- lr-transfer-250M/README.md +1 -1
- moe-lr-sweep-8k/README.md +1 -1
README.md
CHANGED
|
@@ -39,26 +39,29 @@ at 20 tokens per parameter, batch 128, base learning rate 2^-8, seed 1337.
|
|
| 39 |
|
| 40 |
## A seed does not identify a run on its own
|
| 41 |
|
| 42 |
-
The training stream is
|
| 43 |
-
|
| 44 |
-
```
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
All studies here ran at 4 processes over 16 chips except `batch-sweep-500M`,
|
| 59 |
whose 20-tokens-per-parameter arm ran at 1 process over 8. Those two arms are
|
| 60 |
-
|
| 61 |
-
|
| 62 |
|
| 63 |
## The format
|
| 64 |
|
|
|
|
| 39 |
|
| 40 |
## A seed does not identify a run on its own
|
| 41 |
|
| 42 |
+
The training stream *is* invariant under the process count. The global batch
|
| 43 |
+
sequence is fixed by the seed alone, and each rank takes a slice of it:
|
| 44 |
+
`_prepare_epoch` mixes only the seed and the epoch, and `next_batch` advances a
|
| 45 |
+
global cursor by the whole global batch. Verified directly — 1, 4, and 8
|
| 46 |
+
processes produce byte-identical global batches.
|
| 47 |
+
|
| 48 |
+
Results still differ across topologies. The same configuration and seed on
|
| 49 |
+
8 chips versus 16 lands 0.004 to 0.023 nats apart, which is the same size as
|
| 50 |
+
the seed effect itself. The data is identical and so is the attention tile
|
| 51 |
+
plan; both were checked. What differs is floating point: gradients are reduced
|
| 52 |
+
across a different number of devices, so the sum is accumulated in a different
|
| 53 |
+
order, and each chip holds a different number of sequences, which changes the
|
| 54 |
+
shapes XLA compiles for. Neither is addressable by seeding, and both are the
|
| 55 |
+
same non-associativity that makes any reduction order-dependent.
|
| 56 |
+
|
| 57 |
+
So `--seed N` plus the configuration does not pin a number; the topology is
|
| 58 |
+
part of it. Every run records `data_processes` and `devices` in its study's
|
| 59 |
+
`records.jsonl`, alongside `system.process_count` in `result.json`.
|
| 60 |
|
| 61 |
All studies here ran at 4 processes over 16 chips except `batch-sweep-500M`,
|
| 62 |
whose 20-tokens-per-parameter arm ran at 1 process over 8. Those two arms are
|
| 63 |
+
separate experiments — their token budgets differ — so the split does not cross
|
| 64 |
+
a comparison that was being made.
|
| 65 |
|
| 66 |
## The format
|
| 67 |
|
batch-sweep-250M/README.md
CHANGED
|
@@ -11,7 +11,7 @@ The 250M rung, extended to batch 512 to see whether the batch optimum keeps movi
|
|
| 11 |
- **learning rates:** 2^-7, 2^-8, 2^-9
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter (~1.2B tokens), 2,331-18,650 steps
|
| 14 |
-
- **data processes:** 4 (16 chips) — the
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
|
|
|
| 11 |
- **learning rates:** 2^-7, 2^-8, 2^-9
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter (~1.2B tokens), 2,331-18,650 steps
|
| 14 |
+
- **data processes:** 4 (16 chips) — the data stream itself is invariant under this, but gradient reduction order and per-chip batch are not, so the same seed on a different count lands 0.004-0.023 nats away
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
batch-sweep-500M/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Whether the optima found at 5 tokens per parameter survive a four-times-longer h
|
|
| 12 |
- **seeds:** 1337, 1338, 1339 (5 TPP arm); 1337, 1338 (20 TPP arm)
|
| 13 |
- **budgets:** 5 and 20 tokens per parameter -- 9,586 to 153,382 steps
|
| 14 |
- **note:** the two budgets are different experiments; their losses are not comparable to each other, which is why run names carry the budget
|
| 15 |
-
- **data processes:** 6 runs at 1 (8 chips), 6 runs at 4 (16 chips) — the
|
| 16 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 17 |
- **parameterization:** Complete(d)P
|
| 18 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
|
|
|
| 12 |
- **seeds:** 1337, 1338, 1339 (5 TPP arm); 1337, 1338 (20 TPP arm)
|
| 13 |
- **budgets:** 5 and 20 tokens per parameter -- 9,586 to 153,382 steps
|
| 14 |
- **note:** the two budgets are different experiments; their losses are not comparable to each other, which is why run names carry the budget
|
| 15 |
+
- **data processes:** 6 runs at 1 (8 chips), 6 runs at 4 (16 chips) — the data stream itself is invariant under this, but gradient reduction order and per-chip batch are not, so the same seed on a different count lands 0.004-0.023 nats away
|
| 16 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 17 |
- **parameterization:** Complete(d)P
|
| 18 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
batch-sweep-60M/README.md
CHANGED
|
@@ -11,7 +11,7 @@ The widest grid in the collection: every batch size against every learning rate,
|
|
| 11 |
- **learning rates:** 2^-6, 2^-7, 2^-8, 2^-9, 2^-10
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter (~300M tokens), 571-9,143 steps depending on batch
|
| 14 |
-
- **data processes:** 4 (16 chips) — the
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
|
|
|
| 11 |
- **learning rates:** 2^-6, 2^-7, 2^-8, 2^-9, 2^-10
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter (~300M tokens), 571-9,143 steps depending on batch
|
| 14 |
+
- **data processes:** 4 (16 chips) — the data stream itself is invariant under this, but gradient reduction order and per-chip batch are not, so the same seed on a different count lands 0.004-0.023 nats away
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
lr-batch-sweep-125M/README.md
CHANGED
|
@@ -11,7 +11,7 @@ The 125M rung of the batch/learning-rate grid. The same product read either way:
|
|
| 11 |
- **learning rates:** 2^-7, 2^-8, 2^-9
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter (~617M tokens), 2,355-9,419 steps
|
| 14 |
-
- **data processes:** 4 (16 chips) — the
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
|
|
|
| 11 |
- **learning rates:** 2^-7, 2^-8, 2^-9
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter (~617M tokens), 2,355-9,419 steps
|
| 14 |
+
- **data processes:** 4 (16 chips) — the data stream itself is invariant under this, but gradient reduction order and per-chip batch are not, so the same seed on a different count lands 0.004-0.023 nats away
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
lr-sweep-8k-60M/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Whether the learning-rate optimum moves when the context length grows eight-fold
|
|
| 11 |
- **learning rates:** 2^-6, 2^-7, 2^-8, 2^-9, 2^-10
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter, 2,286 steps -- identical to the 1,024-context ladder
|
| 14 |
-
- **data processes:** 4 (16 chips) — the
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
|
|
|
| 11 |
- **learning rates:** 2^-6, 2^-7, 2^-8, 2^-9, 2^-10
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter, 2,286 steps -- identical to the 1,024-context ladder
|
| 14 |
+
- **data processes:** 4 (16 chips) — the data stream itself is invariant under this, but gradient reduction order and per-chip batch are not, so the same seed on a different count lands 0.004-0.023 nats away
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
lr-transfer-250M/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Run to settle a 250M result that a single seed had gotten wrong, and the evidenc
|
|
| 11 |
- **learning rates:** 2^-6, 2^-7, 2^-8, 2^-9
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter, 9,325 steps
|
| 14 |
-
- **data processes:** 4 (16 chips) — the
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
|
|
|
| 11 |
- **learning rates:** 2^-6, 2^-7, 2^-8, 2^-9
|
| 12 |
- **seeds:** 1337, 1338, 1339
|
| 13 |
- **budget:** 5 tokens per parameter, 9,325 steps
|
| 14 |
+
- **data processes:** 4 (16 chips) — the data stream itself is invariant under this, but gradient reduction order and per-chip batch are not, so the same seed on a different count lands 0.004-0.023 nats away
|
| 15 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 16 |
- **parameterization:** Complete(d)P
|
| 17 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
moe-lr-sweep-8k/README.md
CHANGED
|
@@ -17,7 +17,7 @@ dropped — actually does.
|
|
| 17 |
- **learning rates:** 2^-6, 2^-7, 2^-8, 2^-9, 2^-10 at 60M; 2^-7, 2^-8, 2^-9 at 125M
|
| 18 |
- **batch size:** 16 sequences — 131,072 tokens per step, matching the dense ladder
|
| 19 |
- **budget:** 5 tokens per parameter, sized by *active* parameters
|
| 20 |
-
- **data processes:** 4 (16 chips) — the
|
| 21 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 22 |
- **parameterization:** Complete(d)P
|
| 23 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|
|
|
|
| 17 |
- **learning rates:** 2^-6, 2^-7, 2^-8, 2^-9, 2^-10 at 60M; 2^-7, 2^-8, 2^-9 at 125M
|
| 18 |
- **batch size:** 16 sequences — 131,072 tokens per step, matching the dense ladder
|
| 19 |
- **budget:** 5 tokens per parameter, sized by *active* parameters
|
| 20 |
+
- **data processes:** 4 (16 chips) — the data stream itself is invariant under this, but gradient reduction order and per-chip batch are not, so the same seed on a different count lands 0.004-0.023 nats away
|
| 21 |
- **dataset:** FineWeb-Edu, GPT-2 tokenizer (`fineweb-8b-gpt2`)
|
| 22 |
- **parameterization:** Complete(d)P
|
| 23 |
- **optimizer:** AdamW, beta1 0.9, beta2 0.95, weight decay 0.1, no gradient clipping
|