23/34
Part 4 of 5 · Big jobs and preemptionLearn and do

Bigger jobs fail more often, so they checkpoint more often

Meta's report on Llama 3 pre-training counted 466 job interruptions in a 54-day snapshot, and 419 of them were unexpected. That's 1,296 hours / 419, one unexpected interruption every 3.1 hours, for a model the paper says was trained on up to 16K H100 GPUs.

Halve MM, and the best interval is divided by 2\sqrt{2}: it becomes about 0.71 of what it was.

Netflix's frameworks build this in at two levels. Metaflow treats each step of a flow as a checkpoint boundary, saving the step's state so a run can resume from it. Inside long training steps, Netflix's GPU post says jobs checkpoint their state, and after a lost machine they resume from the last healthy checkpoint instead of from the start of a multi-week run.

In the editor, write mtbf_hours(days, interruptions) and gang_interval(node_mtbf, nodes, cost). The stub gives you young, and the last lines use Llama 3's 419 interruptions in 54 days. Then they take gangs of 8 and 16 nodes, where each node on its own fails once every 3,840 minutes (64 hours) and a checkpoint pauses for half a minute. Keep the gang lines in minutes, like the example.