huggingface-accelerate

Configure and launch distributed PyTorch training across multiple GPUs.

Updated Jun 25, 2026
One-click install
npx skills add https://github.com/Rheasilvia/hermes-desktop --skill huggingface-accelerate-rheasilvia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-accelerate
Source: https://github.com/Rheasilvia/hermes-desktop/tree/main/optional-skills/mlops/accelerate
Command: npx skills add https://github.com/Rheasilvia/hermes-desktop --skill huggingface-accelerate-rheasilvia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires accelerate, torch, transformers, and includes references (resource) components.

What problem does it solve?

This Skill solves the complexity of managing distributed training across different hardware configurations, allowing you to run the same training code on single GPUs, multi-GPU setups, or multi-node clusters without manual infrastructure changes.

Core Features & Use Cases

  • Unified API: Write your training loop once and run it on any hardware setup including DDP, DeepSpeed, FSDP, and Megatron.
  • Automatic Optimization: Handles device placement, mixed precision (FP16/BF16/FP8), and gradient accumulation automatically.
  • Use Case: Transition a research script from a single local GPU to a multi-node cluster by simply updating the configuration file and using the accelerate launch command.

Quick Start

Use the huggingface-accelerate skill to configure your environment and launch your training script across multiple GPUs.

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 across multiple GPUs without changing my code?

Distributed training across multiple GPUs requires a unified interface to handle DDP, DeepSpeed, and FSDP automatically. This Skill enables running the same PyTorch training script on single or multi-device setups with minimal code modifications.

What is the best way to scale a PyTorch training script to a multi-node cluster?

Scaling to a multi-node cluster involves updating a configuration file and using a launch command. This Skill simplifies multi-node execution by managing hardware-agnostic distributed setup, allowing seamless transition from local prototypes to production clusters.

Does PyTorch mixed precision training work automatically with DeepSpeed and FSDP?

Mixed precision training with FP16, BF16, and FP8 works automatically across DDP, DeepSpeed, and FSDP. This Skill handles device placement and precision optimization internally, eliminating the need for manual mixed-precision implementation.

Can I use the same PyTorch training loop for single GPU prototyping and multi-GPU execution?

You can use the same training loop for single GPU prototyping and multi-GPU execution. This Skill provides a unified API that handles automatic device placement and distributed execution, maintaining identical code logic across different hardware configurations.

Do I need to manually configure device placement for PyTorch distributed training?

Manual device placement is not required for distributed training. This Skill manages automatic device placement and gradient accumulation internally, allowing you to focus on the training logic while it handles the underlying hardware distribution.

Does Megatron-LM integrate with Hugging Face accelerate for unified distributed training?

Megatron-LM integrates with this unified interface for distributed training. The Skill supports transitioning training scripts across DDP, DeepSpeed, FSDP, and Megatron-LM using a single configuration, simplifying complex distributed setups.