Lightlines
By orchestra-research

huggingface-accelerate

orchestra-research919 installs

Distributed PyTorch training with less code.

What it does

Guides conversion of PyTorch training scripts to distributed execution with automatic device placement and mixed precision.

When to use it

Use when simplifying distributed training, sharing one script across hardware, or quickly prototyping in the HuggingFace ecosystem.

How to use it

It changes how the agent writes PyTorch training scripts by using Accelerate to prepare training objects and perform backpropagation.

What you provide

  • An existing project

Uses

Latest review

What you need · 3

Declares accelerate as a dependency and uses its Accelerator API throughout the guide.

Declares torch as a dependency for the PyTorch training scripts.


Access · 2

This skill

accelerate

Execute

Installs accelerate

~/.cache/huggingface/accelerate/default_config.yaml

Write

Saves your Accelerate configuration