huggingface-accelerate

Configure and launch distributed PyTorch training with HuggingFace Accelerate.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/t2ance/dr-claw-plugin --skill huggingface-accelerate-t2ance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-accelerate
Source: https://github.com/t2ance/dr-claw-plugin/tree/main/plugins/ml-training-stack/skills/distributed-training/accelerate
Command: npx skills add https://github.com/t2ance/dr-claw-plugin --skill huggingface-accelerate-t2ance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Simplifies distributed training setup for PyTorch models using HuggingFace Accelerate.

Core Features & Use Cases

  • Unified API for DDP, DeepSpeed, FSDP, and Megatron-LM backends.
  • Automatic device placement and mixed precision (FP16/BF16/FP8).
  • Interactive configuration with a single launch command for training across hardware.

Quick Start

Configure Accelerate with accelerate config and launch your training script using accelerate launch.

Frequently Asked Questions about huggingface-accelerate

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

FAQPage Schema
How do I simplify PyTorch distributed training setup for multi-GPU experiments?

You can simplify PyTorch distributed training setup by using a unified API that abstracts backend configurations for DDP, DeepSpeed, FSDP, and Megatron-LM. This enables single-script migrations and multi-node experiments with automatic device placement.

What is the best way to run mixed precision training across CPU and GPU environments?

The best way to run mixed precision training across hardware is using a backend abstraction layer that handles device placement automatically. It supports FP16, BF16, and FP8 precision modes within a single launch command workflow.

Does HuggingFace Accelerate support Megatron-LM style configurations?

Yes, HuggingFace Accelerate supports Megatron-LM style configurations alongside DDP, DeepSpeed, and FSDP backends. It provides a unified API to manage these distributed training strategies across multi-GPU and multi-node CPU or GPU environments.

How do I launch a PyTorch training script on multiple nodes without changing code?

You can launch multi-node training scripts without code changes by running the accelerate config setup once, then using the accelerate launch command. This handles backend abstraction and device placement automatically for your experiments.

Do I need specific dependencies to use unified APIs for DDP and FSDP?

You need Python, PyTorch, and the Accelerate package installed to use the unified API for DDP and FSDP. These dependencies provide the necessary environment for automatic device placement and backend abstraction.