huggingface-accelerate

Configure and run distributed PyTorch training across multi-GPU and multi-node environments.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/nelohenriq/hermes-agent-plus --skill huggingface-accelerate-nelohenriq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-accelerate
Source: https://github.com/nelohenriq/hermes-agent-plus/tree/main/skills/mlops/training/accelerate
Command: npx skills add https://github.com/nelohenriq/hermes-agent-plus --skill huggingface-accelerate-nelohenriq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Simplifies implementing distributed training for PyTorch by providing a single, high-level API that handles device placement, mixed precision, and multi-GPU/DP/ZeRO configurations.

Core Features & Use Cases

  • Unified API for single-script training across DDP, DeepSpeed, FSDP, Megatron-LM, and CPU/GPU backends.
  • Automatic device placement, mixed precision support (FP16/BF16/FP8), and interactive config.
  • Use cases include quickly scaling small to large models, prototyping distributed training strategies, and deploying reproducible training pipelines.

Quick Start

Install accelerate, configure your environment with accelerate config, and run a single script with Accelerate to enable 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 distributed training in PyTorch across multiple GPUs without rewriting code?

Distributed training in PyTorch is simplified by using a unified API that handles device placement and multi-GPU orchestration. You can run a single script across DDP, DeepSpeed, and FSDP backends without modifying your core training loop.

What is the easiest way to enable mixed precision training in PyTorch models?

Mixed precision training is enabled through a high-level API that automatically manages FP16, BF16, and FP8 configurations. This allows you to accelerate PyTorch model training with minimal code changes and automatic device placement.

Can I use a single script for both single-GPU and multi-node training in PyTorch?

Yes, a single PyTorch training script can scale across single-GPU and multi-node environments. By configuring your environment and using an accelerator wrapper, the same code runs seamlessly across different distributed setups.

Does PyTorch distributed training support Megatron-LM and DeepSpeed workflows?

Yes, PyTorch distributed training supports Megatron-LM and DeepSpeed workflows. A unified API manages the orchestration for these configurations, allowing you to prototype and scale large models using these specific distributed strategies.

How do I configure my environment before starting multi-GPU training in PyTorch?

To configure multi-GPU training, you run an interactive configuration command to set up your environment. This process generates the necessary configuration files to manage device placement, mixed precision, and distributed settings.

When should I use a unified API instead of native PyTorch DDP for distributed training?

A unified API is ideal when you need to quickly scale models or prototype distributed training strategies across different backends. It provides reproducible pipelines and automatic device placement, reducing the boilerplate required by native PyTorch DDP.