Accelerate

Hugging Face library that runs the same PyTorch training loop on CPU, one GPU, many GPUs or TPUs with minimal code changes.

Accelerate wraps device placement, mixed precision and distributed back-ends (DDP, FSDP, DeepSpeed) behind a small API so a plain PyTorch loop becomes portable. It also provides big-model loading utilities that spread weights across devices. Transformers' Trainer uses it internally.

Type
Library
Category
AI & ML
Maintainer
Hugging Face
First released
2021
License
Open source (Apache-2.0)
Pricing
Open source
Level
Advanced
Technologies
python, pytorch, distributed-systems
GitHub stars
9,965
Weekly downloads
5,844,432 (pypi)
Latest release
[object Object]
Last verified
26 Nov 2026

What Accelerate is used for

  • Multi-GPU training without rewriting code
  • Loading models larger than one GPU

Strengths

  • Thin layer over plain PyTorch
  • Supports FSDP and DeepSpeed

Limitations

  • Configuration of distributed back-ends still requires understanding them

Accelerate alternatives

How it relates to other tools

Built with the same technologies

Learn Accelerate

Official links

Sources

Explore