Checkpoint Restart Design

Make a long compute job survive walltime limits, preemption and node failures. A checkpoint is valid only if resuming gives the same trajectory: step counter, model or state, optimiser, RNG states and data-loader position, written atomically (temp file, fsync, rename) keeping two. Interval from the Young/Daly estimate, about sqrt(2 x checkpoint cost x mean time between interruptions); catch the pre-kill signal (sbatch --signal=B:USR1@120 or SIGTERM), checkpoint, requeue. Proven first: kill -9 at a random step, resume, compare with an uninterrupted run, on another node. Use for "my 5-day run keeps getting killed", "add checkpointing", "resume training from where it died", "running on the preemptible queue". Not for a job that already died (slurm-job-failure-triage), queue-consumer retries (event-driven-reliability) or data backups (backup-recovery-design).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 3a0178a17b

Frequently asked questions

npx get-skill add greenblacked/checkpoint-restart-design