What problem does it solve? Scaling PyTorch training from a single GPU to multi-GPU or multi-node clusters normally requires rewriting code for DDP, DeepSpeed, FSDP, or Megatron, each with different APIs and launcher setups. This Skill provides a unified approach where the same training script runs on any hardware configuration with minimal changes. ## Core Features & Use Cases - Unified Distributed API: Convert any PyTorch script to distributed training by adding an Accelerator, calling prepare(), and replacing loss.backward() with accelerator.backward(). - Backend Flexibility: Switch between DDP, DeepSpeed ZeRO, FSDP, and Megatron-LM through configuration rather than code rewrites, with support for FP16, BF16, and FP8 mixed precision. - Use Case: You have a single-GPU training script that now needs to run on an 8-GPU node with BF16 mixed precision. Add the four Accelerate lines, run accelerate config interactively, and launch with accelerate launch train.py. ## Quick Start Convert my PyTorch training script to run on multiple GPUs using HuggingFace Accelerate with BF16 mixed precision.