Skip to content
Back to skills

Checkpointing And Tracking

ASecurity

"Save and resume Accelerate training state, register checkpoint

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
devopspythonbackend

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill checkpointing-and-tracking --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Checkpointing And Tracking?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Checkpointing And Tracking
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-checkpointing-and-tracking/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-checkpointing-and-tracking)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: checkpointing-and-tracking
description: "Save and resume Accelerate training state, register checkpoint
  hooks and custom state, log safely across processes, use experiment trackers,
  profile runs, and clean up memory."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Checkpointing and Tracking

Use this sub-skill when the task involves Accelerate checkpoint save/load, model export, tracker initialization/logging, distributed-safe logging, profiling, state/RNG handling, or memory cleanup around those workflows.

## Route First

- For the core forward/backward/optimizer loop, gradient accumulation, prepared dataloaders, and `skip_first_batches`, use `../training-loop-integration/`.
- For FSDP, DeepSpeed, Megatron-LM, or backend-specific checkpoint strategy and consolidation details, use `../distributed-training-backends/`.
- For large-model dispatch/offload checkpoint loading, route to the large-model or big-modeling sub-skill if present.

## Fast Workflows

- Save and resume same-script training state with `Accelerator.save_state()` and `Accelerator.load_state()`; see `references/checkpointing.md`.
- Configure automatic checkpoint folders and retention with `ProjectConfiguration`; see `references/checkpointing.md`.
- Register custom checkpointable objects and save/load pre-hooks for extra metadata; see `references/checkpointing.md`.
- Initialize trackers with `Accelerator(log_with=...)`, `init_trackers()`, `log()`, `get_tracker()`, and `end_training()`; see `references/tracking-and-logging.md`.
- Use `accelerate.logging.get_logger()` for multiprocess-safe logs and ordered rank logs; see `references/tracking-and-logging.md`.
- Profile CPU/GPU/XPU sections with `ProfileKwargs` and `accelerator.profile()`; see `references/tracking-and-logging.md`.
- Diagnose common failures using `references/troubleshooting.md` before changing training code.

## Bundled Helper

- Run `python scripts/checkpoint_tracker_smoke.py --help` for usage.
- Run `python scripts/checkpoint_tracker_smoke.py` to verify a CPU-only tiny save/load/custom-tracker/logging smoke test without any external tracker service.

## Key Constraints

- `save_state()`/`load_state()` are for resuming the same training script shape, not arbitrary model conversion between unrelated scripts.
- Register custom objects only if they implement both `state_dict()` and `load_state_dict()`.
- For ordinary model artifact export, prefer `accelerator.unwrap_model()`, `accelerator.get_state_dict()`, `accelerator.save()`, or `accelerator.save_model()` rather than treating a training-state checkpoint as a deployment artifact.

Files in this skill

  • SKILL.md2.6 KB
  • references/api-reference.md8.5 KB
  • references/checkpointing.md7.2 KB
  • references/tracking-and-logging.md7.6 KB
  • references/troubleshooting.md8.4 KB
  • scripts/checkpoint_tracker_smoke.py8.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.