GoogleShutong Li, Colin GaffneyBenchmark
Boost Training Goodput: How Continuous Checkpointing Optimizes Reliability in Orbax and MaxText
Summary
Orbax and MaxText introduce continuous checkpointing to balance training reliability and performance when hardware failures or preemption events interrupt long-running jobs. Fixed checkpoint intervals create a trade-off: infrequent saves risk substantial lost work, while frequent saves can block or bottleneck training, particularly over unstable networks. MaxText enables asynchronous checkpointing that attempts a new save only after the previous background request is fulfilled; its continuous mode overrides checkpoint_period, and max_num_checkpoints_to_keep can limit storage use. A llama-3.1-70B benchmark on two v5p-128 slices found smaller P50 checkpoint intervals, but average training step time increased because of more frequent device-to-host transfers; the analysis estimated resource conservation against mean-time-between-failure assumptions. Orbax also supports minimum intervals and customizable preservation policies, while co-locating storage with training is recommended because cross-metro bandwidth can reduce checkpointing speed and reliability.
Context
Fixed checkpoint intervals force a difficult balance between preserving progress after hardware failures or preemption and avoiding training slowdowns from frequent, resource-intensive saves. The source also identifies network bandwidth, especially across metros and in multi-slice training, as a factor affecting checkpointing effectiveness.
Approach / What changed
Continuous checkpointing uses asynchronous saves and starts another checkpoint only after the preceding save request is fulfilled. MaxText exposes configuration flags for the feature and storage retention, while Orbax provides minimum-interval saving and customizable preservation policies. The design keeps substantial checkpoint communication between storage and a single slice asynchronous.
Takeaways
Continuous checkpointing produced smaller P50 checkpoint intervals than checkpointing every 100 steps in the described llama-3.1-70B benchmark, but increased average training step time because of more frequent device-to-host transfers.
In MaxText, continuous checkpointing overrides checkpoint_period and attempts a save after the previous background saving request is fulfilled; max_num_checkpoints_to_keep limits retained storage.
Orbax supports minimum intervals and custom preservation logic, while co-locating storage with the training cluster helps avoid cross-metro bandwidth degrading checkpoint speed and reliability.
Source and freshness
- Source
- developers.googleblog.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.