Document optimizer shard / resuming pretraining
Browse files
README.md
CHANGED
|
@@ -17,3 +17,17 @@ This is a **base** (pretrained, not instruction-tuned) checkpoint at step 2162
|
|
| 17 |
(final step of pretraining). `meta_002162.json` has the full model/training config.
|
| 18 |
`tokenizer/` contains the matching BPE tokenizer (`tokenizer.pkl`) and token-byte
|
| 19 |
table (`token_bytes.pt`) needed to reproduce BPB evaluation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
(final step of pretraining). `meta_002162.json` has the full model/training config.
|
| 18 |
`tokenizer/` contains the matching BPE tokenizer (`tokenizer.pkl`) and token-byte
|
| 19 |
table (`token_bytes.pt`) needed to reproduce BPB evaluation.
|
| 20 |
+
|
| 21 |
+
## Resuming pretraining
|
| 22 |
+
|
| 23 |
+
`optim_002162_rank0.pt` is the matching Muon/AdamW optimizer state (momentum
|
| 24 |
+
buffers etc.) for this step. To continue pretraining, place both files under
|
| 25 |
+
`$NANOCHAT_BASE_DIR/base_checkpoints/lfm2-quantum-128m/` (named `model_002162.pt`
|
| 26 |
+
and `optim_002162_rank0.pt`) alongside `meta_002162.json`, then run:
|
| 27 |
+
|
| 28 |
+
```bash
|
| 29 |
+
RESUME_FROM_STEP=2162 MODEL_TAG=lfm2-quantum-128m bash runs/run_lfm2_quantum_mini.sh
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
For SFT/RL instead of continued pretraining, only `model_002162.pt` +
|
| 33 |
+
`meta_002162.json` + `tokenizer/` are needed (the optimizer shard is pretraining-only).
|