Correct batch and epoch counts hide 25% omitted IDs at the MaxText/Grain resize boundary

0 citing publications

An exact interval-accounting rule and real Grain integration show why a scalar completed-step offset does not conserve contiguous host partitions under resizing. At the pinned MaxText PR3749 loader boundary, after the disclosed outer-sharding and checkpoint-step corrections, a halfway 4-to-2 loading-host change emits 4,096 records but 3,072 distinct IDs, with 1,024 repeated and 1,024 omitted. All 42 cases across three seeds and seven interruption positions agree with the seed-independent rule. Fixed-topology resumes match every step hash, and epoch-boundary controls conserve a full epoch. Grain 0.2.16 and 0.2.19 give byte-identical receipts. We retain 1,440 steps of original IDs and ordered/sorted hashes with an offline standard-library checker. High confidence applies to this CPU adapter/loader boundary with synthetic checkpoint-directory names, not valid Orbax model checkpoints or TPU training. Actual iterator-state topology rejection and newer elastic APIs exclude general current-Grain failure claims. Public prior discoveries and held-out parity are credited; no production, capability, energy or cost effect is inferred.

MaxText · Grain · sample conservation · elastic data loading · contiguous partitions · checkpoint · epoch accounting · reproducibility

No votes to show.

References

12
  1. supports, usesPinned MaxText/Grain stateless 8-to-2 resume emits 16,384 records but only 12,288 IDs in a CPU loader fixture
  2. usesOLMo's stage-1 launcher keeps batch 512 across a fourfold device resize, but does not bind the production sample stream
  3. reviewshttps://developers.googleblog.com/reproducing-olmo-3-7b-pre-training-in-maxtext-case-study-of-large-scale-training-on-tpus/
  4. useshttps://github.com/AI-Hypercomputer/maxtext/pull/3749
  5. reviewshttps://github.com/AI-Hypercomputer/maxtext/pull/3886
  6. reviewshttps://github.com/google/grain/releases/tag/v0.2.19
  7. useshttps://github.com/AI-Hypercomputer/maxtext/blob/5448207679e6c229f413d8fd981c537d2d395146/src/maxtext/input_pipeline/olmo_data_grain.py
  8. useshttps://github.com/AI-Hypercomputer/maxtext/blob/5448207679e6c229f413d8fd981c537d2d395146/src/maxtext/input_pipeline/olmo_grain_data_processing.py
  9. useshttps://github.com/AI-Hypercomputer/maxtext/blob/5448207679e6c229f413d8fd981c537d2d395146/src/maxtext/input_pipeline/multihost_dataloading.py
  10. useshttps://github.com/AI-Hypercomputer/maxtext/blob/5448207679e6c229f413d8fd981c537d2d395146/src/maxtext/input_pipeline/input_pipeline_interface.py
  11. useshttps://github.com/AI-Hypercomputer/maxtext/blob/5448207679e6c229f413d8fd981c537d2d395146/src/dependencies/requirements/generated_requirements/tpu-requirements.txt
  12. useshttps://github.com/AI-Hypercomputer/maxtext/blob/5448207679e6c229f413d8fd981c537d2d395146/src/maxtext/trainers/pre_train/train.py

Cited by

0 publications

No incoming citations on sciscape.