Skip to content

About

Resume LLM fine-tuning, evaluation and batch inference after Spot GPU preemption. Agent skill + CLI on SkyPilot: checkpoint recovery, sharded evaluation that skips finished work, continue on a replacement GPU. 面向 AI Agent 的 GPU 任务恢复层。

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GPU Resume: checkpoint recovery for interruptible GPU jobs

English · 简体中文

Checks Apache 2.0 license

GPU Resume · Long-running compute. Beyond interruptions.

A GPU task recovery layer for AI agents, powered by SkyPilot.

A long experiment should outlive the machine running it. GPU Resume connects application checkpoints, persistent storage, and resource rescheduling: when a GPU is reclaimed, the job waits for available resources and resumes from saved progress.

For LLM fine-tuning, model evaluation, and batch inference on Spot GPUs and temporary GPU capacity.

From restarting machines to recovering work

SkyPilot handles resource scheduling and Managed Jobs recovery. The application tracks how far it has progressed. GPU Resume connects application state with compute orchestration. Agents inspect the code, adapt its recovery path, verify interruption behavior, and submit the job.

GPU checkpoint recovery architecture: AI Agent and GPU Resume prepare the job, SkyPilot schedules workers, GPU A commits durable progress, and GPU B restores state after preemption.

Workload Recovery path
LLM fine-tuning / model training Restore model, optimizer, RNG, and data position
Model evaluation / batch inference Commit independent shards; skip completed work on retry
Experiment batches Keep separate state for each job and continue on available resources

State lives beyond the machine. Recovery belongs to the workload. Checkpoints live outside the GPU host; the save interval determines the amount of work that may need repeating after an interruption.

Bring your agent

Recovery contracts and operating instructions are delivered as a Markdown skill; operations use the gpu-resume CLI. Neither interface is tied to a particular agent. Agents that can read instructions and execute terminal commands can load SKILL.md. Custom agents can expose the CLI through tool calling. The installer provides entries in ~/.agents/skills and ~/.claude/skills; other runtimes can use their own skill-loading mechanism.

Or install just the skill:

# Claude Code
/plugin marketplace add Protocol-zero-0/gpu-resume-skill
/plugin install gpu-resume@gpu-resume-skill

# Codex, Cursor, Gemini CLI and other agents
npx skills add Protocol-zero-0/gpu-resume-skill

Give your agent the code and a recovery requirement:

Prepare this evaluation as a resumable GPU job with gpu-resume. Skip completed shards and allow up to two minutes of lost progress. Adapt and verify recovery first, then generate the SkyPilot configuration.

Quick start

Requires Git, Python 3.12+, and uv.

git clone https://github.com/Protocol-zero-0/gpu-resume-skill.git ~/work/gpu-resume-skill
cd ~/work/gpu-resume-skill
python3 scripts/install.py
gpu-resume self-test

The self-test terminates a local example process, restores its checkpoint, and verifies the completed computation. Keep the checkout in place, add ~/.local/bin to PATH, and load the skills in a new agent session.

To submit a workload, configure a remote SkyPilot service, GPU resources, and independent persistent storage:

gpu-resume connect https://YOUR_API_SERVER
gpu-resume doctor
gpu-resume submit path/to/task.yaml
gpu-resume queue
gpu-resume logs JOB_ID --tail 100 --no-follow

Submitted jobs run under the remote service beyond the lifetime of the agent session. Without a connected service, doctor reports setup_required.

Engineering and documentation

The client and upstream skill are version-pinned. Weekly checks report new releases; upgrades follow validation. Run gpu-resume check-updates for a manual check.


More from Protocol Zero

  • compound-memory — Cross-session, cross-machine long-term memory for Claude Code and Codex (local-first, zero dependencies).
  • evolution-kernel — Open-source AlphaEvolve / FunSearch-style self-improving code loop, sandboxed and ledgered.
  • link-rot-scanner — Zero-false-positive dead link auditor for large awesome lists.

About

Resume LLM fine-tuning, evaluation and batch inference after Spot GPU preemption. Agent skill + CLI on SkyPilot: checkpoint recovery, sharded evaluation that skips finished work, continue on a replacement GPU. 面向 AI Agent 的 GPU 任务恢复层。

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages