exact-training-resume-guard

Preserve full training state and resume from the latest complete checkpoint.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/KwongFuk/codex-skills --skill exact-training-resume-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: exact-training-resume-guard
Source: https://github.com/KwongFuk/codex-skills/tree/main/global/exact-training-resume-guard
Command: npx skills add https://github.com/KwongFuk/codex-skills --skill exact-training-resume-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Exact resume is required for long-running training jobs, ensuring continuity from the last saved step with full state preservation after interruptions.

Core Features & Use Cases

  • Full training state preservation: model, optimizer, scheduler, RNG, and distributed/trainer state are saved and restored.
  • Safe interruption handling: trap termination signals and flush a resumable checkpoint to durable storage.
  • Clear resume paths: automatically select the latest complete checkpoint and verify required framework state before resuming.

Quick Start

Resume a long-running training task from its latest complete checkpoint with automatic state restoration.

Frequently Asked Questions about exact-training-resume-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ensure exact resume for distributed training jobs after an interruption?

To ensure exact resume for distributed training jobs, you must preserve the full training state, including model, optimizer, scheduler, RNG, and distributed states, and restore from the latest complete checkpoint on durable storage.

What training state needs to be saved for a fault-tolerant Hugging Face Trainer checkpoint?

A fault-tolerant Hugging Face Trainer checkpoint requires saving the model, optimizer, scheduler, RNG, and distributed trainer state. This full state preservation guarantees continuity from the last saved step upon resumption.

How do I safely handle termination signals to flush a resumable checkpoint during training?

To safely handle termination signals, your training launcher must trap these signals and immediately flush a resumable checkpoint containing the full training state to durable storage before the process exits.

Does DeepSpeed require saving distributed state for exact training resume?

Yes, DeepSpeed requires saving the full distributed state alongside the model, optimizer, scheduler, and RNG states to achieve exact training resume and verify required framework conditions before resuming.

What is the best way to automatically resume a long-running training task from its latest checkpoint?

The best way to automatically resume a long-running training task is to configure the entrypoint to select the latest complete checkpoint, verify the required framework state, and automatically restore the full training state.