Debugging exact DDP checkpoint resumption: CUDA atomics, Triton autotune and bucket layout pitfalls

ReinforcedKnowledge · reddit · 2026-08-28

The author tested exact checkpoint resumption in DDP training (Qwen3.5-0.8B, open-Instruct, 4×A100): a continuous 10-step run vs one checkpointed at step 5 and resumed. Even after verifying every state — optimizer, model, schedulers, Python/NumPy/Torch CPU RNG, every CUDA RNG stream, data packs and document maps — the runs still diverged.

Hooks everywhere revealed two pre-communication culprits:

The final fix: initialize the fresh reducer with a deterministic synthetic full-graph backward, explicitly rebuild buckets, clear gradients, and restore protected state before real data arrives. Useful only when strict reproducibility actually matters.

Original post →

More from Infra

Infra channel →