🖥️ AI InfrastructureID:
checkpoint-resumeCheckpointing & Recovery
检查点与故障恢复
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep DiveCore Def
Explain the core definition, underlying mechanism/math, and key principles of Checkpointing & Recovery.
Use Cases
In production engineering, what are the primary use cases for Checkpointing & Recovery and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
List everything a checkpoint must save (weights, Adam /, step/epoch and LR schedule, RNG states, DataLoader cursors) and explain why saving only weights makes the resumed loss unstable (lost optimizer state and LR progress).
2
What sharded checkpointing fixes: a single 140 GB FP16 70B file takes minutes to persist and is fragile; how HF safetensors sharding (index.json + parallel writes + mmap zero-copy reads) solves it and why it is safer than pickle (.bin).
3
Async checkpointing: why synchronous saves must stop-the-world (weights keep changing); how async saves obtain a consistent snapshot (GPU→CPU copy + copy-on-write/versioning + background persistence) and the trade-offs.
4
How to save/resume under ZeRO-3/FSDP sharding: each rank persists its own shard and reads it back on resume (or gathers a consolidated file); why RNG and shuffle order must be restored as well.
5
Training stability: how to detect and handle loss/gradient spikes (roll back to a last-good checkpoint, lower LR, skip the bad batch), how to trade off save frequency (IO cost vs failure loss), with a per-epoch candidate-checkpoint strategy.
📖 In-depth Guide:📄 mlops-and-testing →
Updated 2026-08-12🎯
🚀 Start Card Practice ➔Test Your Knowledge: Practice Questions for "Checkpointing & Recovery"
Single choice pitfall questions with instant feedback and mistake tracking.