Pythia configs: effective batch 320 + clean one-epoch stop#73
Merged
Conversation
The config/pythia-like scaling-study runs target world size 1 and one pass over the Smith42/galaxies train split (N=8,474,566). Configs (all 12): - gradient_accumulation_steps 5*8 -> 5*4, so the effective batch is 16*20 = 320. One epoch is then floor(N/320) = 26483 steps. - lr_decay_iters 27000*1.1 -> 26500, so the cosine schedule reaches min_lr right as the single epoch ends (max_iters=30000 stays as an unreached upper cap). scripts/train.py: - Graceful end-of-stream handling: the streamed epoch is exhausted near step ~26.2-26.5k, before max_iters. The bare next(tdl) calls in the training loop, estimate_loss and validate now catch StopIteration and stop cleanly (saving a final checkpoint) instead of crashing. - Data shuffle uses a fixed, rank-independent seed (1337 rather than 1337 + seed_offset). At world size 1 this is a no-op, but it keeps the data order reproducible if these configs are ever run under DDP. Supersedes #70 (data order is already deterministic at world size 1), #71 (one epoch via batch size + graceful stop rather than max_iters) and #72 (no local sampler needed). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
Author
|
Solves data ordinance problem by pinning world size to 1 |
ksd3
approved these changes
Jun 14, 2026
ksd3
left a comment
Collaborator
There was a problem hiding this comment.
This is throttling to single-GPU which is fine for the moment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The config/pythia-like scaling-study runs target world size 1 and one pass over the Smith42/galaxies train split (N=8,474,566).
Configs (all 12):
scripts/train.py:
Supersedes #70 (data order is already deterministic at world size 1), #71 (one epoch via batch size + graceful stop rather than max_iters) and #72 (no local sampler needed).