Skip to content
Agentmart
Submit a tool

accelerate

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model…

Skill by VectorSpaceLab

IndexedApache-2.0★ 341
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/vectorspacelab-accelerate

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

Use cases: backend, ml

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/accelerate

What's inside

Skill name
accelerate
Description
Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.
License
Apache-2.0
Metadata
disco-role: operating
Instructions
49 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (34)

  • SKILL.md
  • repo-provenance.md · references/
  • repo-routing-metadata.json · references/
  • troubleshooting.md · references/
  • check_accelerate_environment.py · scripts/
  • SKILL.md · sub-skills/big-model-inference/
  • api-reference.md · sub-skills/big-model-inference/references/
  • troubleshooting.md · sub-skills/big-model-inference/references/
  • workflows.md · sub-skills/big-model-inference/references/
  • big_model_api_smoke.py · sub-skills/big-model-inference/scripts/
  • SKILL.md · sub-skills/checkpointing-and-tracking/
  • api-reference.md · sub-skills/checkpointing-and-tracking/references/
  • checkpointing.md · sub-skills/checkpointing-and-tracking/references/
  • tracking-and-logging.md · sub-skills/checkpointing-and-tracking/references/
  • troubleshooting.md · sub-skills/checkpointing-and-tracking/references/
  • checkpoint_tracker_smoke.py · sub-skills/checkpointing-and-tracking/scripts/
  • SKILL.md · sub-skills/configuration-and-cli/
  • cli-reference.md · sub-skills/configuration-and-cli/references/
  • configuration.md · sub-skills/configuration-and-cli/references/
  • launching.md · sub-skills/configuration-and-cli/references/
  • troubleshooting.md · sub-skills/configuration-and-cli/references/
  • print_accelerate_help_summary.py · sub-skills/configuration-and-cli/scripts/
  • validate_accelerate_config.py · sub-skills/configuration-and-cli/scripts/
  • SKILL.md · sub-skills/distributed-training-backends/
  • api-reference.md · sub-skills/distributed-training-backends/references/
  • deepspeed-fsdp.md · sub-skills/distributed-training-backends/references/
  • parallelism-and-precision.md · sub-skills/distributed-training-backends/references/
  • troubleshooting.md · sub-skills/distributed-training-backends/references/
  • validate_backend_config.py · sub-skills/distributed-training-backends/scripts/
  • SKILL.md · sub-skills/training-loop-integration/
  • api-reference.md · sub-skills/training-loop-integration/references/
  • troubleshooting.md · sub-skills/training-loop-integration/references/
  • workflows.md · sub-skills/training-loop-integration/references/
  • accelerator_loop_smoke.py · sub-skills/training-loop-integration/scripts/

SKILL.md (first lines)

# Accelerate

Use this repo skill when a task involves Hugging Face Accelerate: adapting PyTorch code with `Accelerator`, building `accelerate launch` commands, validating config files, choosing distributed backends, loading large models with device maps/offload, or saving/logging training state.

## Install And Import Check

For normal package use:

```bash
pip install accelerate
python - <<'PY'
import accelerate
from accelerate import Accelerator
print(accelerate.__version__)
print(Accelerator)
PY
```

Install optional backends only for workflows that need them, such as DeepSpeed, torch-xla, transformer-engine, torchao, bitsandbytes, experiment trackers, or model libraries. Do not install broad development or testing extras unless the user explicitly asks for repository development coverage.

## Route By Task

- Use `sub-skills/training-loop-integration/` to migrate raw PyTorch training/evaluation loops to `Accelerator`, `prepare()`, `backward()`, mixed precision, dataloader handling, gradient accumulation, DDP kwargs, and distributed-loop debugging.
- Use `sub-skills/configuration-and-cli/` to create or validate Accelerate config YAML, construct `accelerate launch` commands, inspect `accelerate env`, estimate memory, merge weights, and plan multi-node or SLURM launches without executing them.
- Use `sub-skills/distributed-training-backends/` to choose and configure DeepSpeed, FSDP/FSDP2, Megatron-LM, TPU/XLA, FP8, quantization, compilation, tensor/context parallelism, Local SGD, or DDP communication hooks.
- Use `sub-skills/big-model-inference/` for `init_empty_weights`, `infer_auto_device_map`, `load_checkpoint_and_dispatch`, CPU/disk offload, model hooks, PiPPy/distributed inference, and memory-sizing workflows.
- Use `sub-skills/checkpointing-and-tracking/` for `save_state`, `load_state`, checkpoint hooks, `ProjectConfiguration`, model export, experiment trackers, distributed-safe logging, profiling, and memory cleanup.

## Shared References And Scripts

- Read `references/troubleshooting.md` first for cross-cutting install/import, CLI, optional dependency, hardware, and distributed hang triage.
- Read `references/repo-provenance.md` before deciding whether this skill matches a current Accelerate checkout or should be refreshed.
- Run `scripts/check_accelerate_environment.py --help` or the script itself for a safe import/CLI/backend availability diagnostic.

## Common Decision Points

- Prefer `Accelerator` and `accelerator.prepare(...)` for ordinary training loops; do not start with backend-specific plugins until the baseline loop is clear.
- Prefer `accelerate config` or a reviewed config YAML when launch commands become long, multi-node, or backend-specific.
- Treat DeepSpeed, FSDP, TPU/XLA, FP8, and quantization as optional backend surfaces with package, hardware, and version constraints.
- Use big-model dispatch/offload APIs for model loading and inference memory pressure; do not use them as a replacement for normal training-loop preparation.
- Use checkpointing/tracking helpers from the nearest sub-skill before adding custom save/load or logging code in distributed jobs.

## Safety Defaults

- Run helper scripts with `--help` first when adapting them.
- Avoid commands that download models/datasets, launch multi-process distributed jobs, require GPUs/TPUs/SLURM, or contact external tracker services unless the user explicitly asks and the environment is ready.
- For verification in limited environments, prefer parser checks, config validation, tiny CPU smoke tests, and static backend diagnostics over full distributed execution.

From VectorSpaceLab/AREX-Skill, Apache-2.0.

More from VectorSpaceLab/AREX-Skill

Signals

Stars
341
Forks
26
Open issues
0
Last commit (this folder)
Aug 26, 2026 (2 months ago)
Last release
Sep 2, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from VectorSpaceLab

Cite this page

accelerate skill. Agent Mart. https://agentmart.dev/skills/vectorspacelab-accelerate (last updated 2026-10-24)