#5858th of 75 in ML frameworks and libraries

accelerate

Thin PyTorch wrapper that runs your training loop on CPU, GPU, TPU or multi-node

Stars
9.9k
License
Apache-2.0
Last commit
Oct 2026
Last release
Sep 2026
Language
Python
Stars, last 29 weeks+410
31 Mar 2026: 9,514 stars7 Apr 2026: 9,526 stars14 Apr 2026: 9,540 stars21 Apr 2026: 9,559 stars28 Apr 2026: 9,578 stars5 May 2026: 9,598 stars12 May 2026: 9,619 stars19 May 2026: 9,636 stars26 May 2026: 9,650 stars2 Jun 2026: 9,662 stars9 Jun 2026: 9,673 stars16 Jun 2026: 9,685 stars23 Jun 2026: 9,698 stars30 Jun 2026: 9,715 stars7 Jul 2026: 9,728 stars14 Jul 2026: 9,747 stars21 Jul 2026: 9,758 stars28 Jul 2026: 9,774 stars4 Aug 2026: 9,782 stars11 Aug 2026: 9,789 stars18 Aug 2026: 9,806 stars25 Aug 2026: 9,817 stars1 Sept 2026: 9,826 stars8 Sept 2026: 9,839 stars15 Sept 2026: 9,857 stars22 Sept 2026: 9,873 stars29 Sept 2026: 9,891 stars6 Oct 2026: 9,907 stars13 Oct 2026: 9,914 stars20 Oct 2026: 9,924 stars

9,514 on 31 Mar 20269,924 on 20 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Accelerate adds an Accelerator class to a plain PyTorch training script, handling device placement, distributed setup and mixed precision (fp16, bf16, fp8) with about five changed lines. It includes an optional `accelerate config` and `accelerate launch` CLI, a notebook launcher, and plugins for DeepSpeed, FSDP and Megatron-LM, which the README marks experimental. It is not a high-level trainer: you still write the loop yourself.

Who it is for: PyTorch users who write their own training loops and need multi-device scaling

Strengths

  • Whole API is one Accelerator class; the rest of the training loop stays unchanged
  • Same script runs on CPU, single or multi-GPU, multi-node and TPU
  • Optional CLI wraps torchrun, MPI and DeepSpeed launch config; plain python also works
  • Mixed precision includes fp8 via Transformer Engine or MS-AMP

Weaknesses

  • No built-in trainer; you must write and maintain your own training loop
  • DeepSpeed, FSDP and Megatron-LM support are labeled experimental in the README
  • PyTorch only; needs Python 3.8+ and PyTorch 1.10.0+ installed separately
  • With DeepSpeed you still handle gradient accumulation yourself

What it needs

  • GPU optional
  • Docker
  • Needs PyTorch, DeepSpeed (optional), Open MPI (optional), Transformer Engine or MS-AMP (optional, fp8)
  • Models: PyTorch models, Hugging Face Transformers

Also in ML frameworks and libraries

See all 75
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks167.9k starsApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd for deep learning104.9k starscustom license94 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models62.7k starsAGPL-3.092 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts37.2k starsApache-2.091 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.3k starsMIT90 out of 100