huggingface-accelerate

Automates distributed PyTorch training across DDP, DeepSpeed, FSDP, and Megatron-LM with unified commands and automatic device placement.

Updated Apr 1, 2026
One-click install
npx skills add https://github.com/founderphantom/zola-agent --skill huggingface-accelerate-founderphantom
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: huggingface-accelerate
Source: https://github.com/founderphantom/zola-agent/tree/main/optional-skills/mlops/accelerate
Command: npx skills add https://github.com/founderphantom/zola-agent --skill huggingface-accelerate-founderphantom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Unified, minimal-discovery interface for distributed training that abstracts boilerplate, handles device placement, and streamlines switching across backends.

Core Features & Use Cases

  • Unified API for DDP, DeepSpeed, FSDP, Megatron-LM and related backends without changing your code.
  • Automatic device placement, mixed-precision support (FP16, BF16, FP8), and interactive configuration.
  • Simple, one-command launch workflow that scales from a laptop to a multi-node cluster.

Quick Start

Configure your environment with accelerate config and launch your training script with accelerate launch <script> to start distributed training.

Frequently Asked Questions about huggingface-accelerate

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

FAQPage Schema
How do I run PyTorch distributed training without changing my code for different backends?▼

You can run PyTorch distributed training across backends like DDP, DeepSpeed, and FSDP using a unified API that abstracts boilerplate and handles automatic device placement. This allows scalable training from a single machine to multi-node clusters seamlessly.

What is the best way to switch between DDP and DeepSpeed in PyTorch?▼

The best way to switch between DDP and DeepSpeed is using an interactive configuration tool that applies a single, consistent API. It abstracts backend-specific boilerplate, allowing you to change distributed training setups without altering your core PyTorch code.

Does accelerate work with Megatron-LM workflows for multi-node clusters?▼

Yes, accelerate works with Megatron-LM workflows and scales from a laptop to a multi-node cluster. It provides a unified API that supports automatic device placement and mixed-precision training for scalable PyTorch projects.

How do I enable automatic mixed precision training in PyTorch with FP16 or BF16?▼

To enable automatic mixed precision training in PyTorch, you can use a unified interface that supports FP16, BF16, and FP8. It handles device placement and allows you to launch the training script with a single command.

Can I launch multi-node PyTorch training from a single command?▼

Yes, you can launch multi-node PyTorch training from a single command. After interactively configuring your environment, a simple one-command launch workflow initiates distributed training across your specified backends.

Do I need to manually manage device placement for FSDP training?▼

No, you do not need to manually manage device placement for FSDP training. The unified API handles automatic device placement, abstracting boilerplate and streamlining the distributed training process across backends.