# Accelerate

> Hugging Face's library to run the same PyTorch code on any distributed setup

Source: https://talira.ai/catalog/accelerate-3p4v0csz
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [ai / ml / distributed training](https://talira.ai/categories/ai/ml/distributed-training)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Hugging Face](https://talira.ai/orgs/hugging-face.md)

Accelerate is Hugging Face's library for running the same PyTorch training and inference code on one GPU, several GPUs or machines, TPUs, Apple silicon, Intel CPUs and Gaudi by adding a few lines: an Accelerator object prepares the model, optimizer, data loaders and scheduler. It handles mixed precision including FP8, DeepSpeed, Fully Sharded Data Parallel (FSDP1 and FSDP2), Megatron-LM, gradient accumulation, checkpointing, experiment trackers and big-model inference that loads models larger than memory. Its accelerate command configures and launches distributed scripts, including from Jupyter notebooks and on Amazon SageMaker.

## Links

- Website: https://huggingface.co/docs/accelerate/index
- GitHub: https://github.com/huggingface/accelerate
- Docs: https://huggingface.co/docs/accelerate/index

## Problems it solves

- run my PyTorch training script on multiple GPUs without rewriting it
- use DeepSpeed or FSDP with PyTorch without lots of boilerplate
- train with mixed precision or FP8 in PyTorch
- launch distributed training from a Jupyter notebook
- load a model that's bigger than my GPU's memory for inference
- move the same training code between CPU, GPU and TPU

## Features

- Same PyTorch code on CPU, single and multi-GPU, multi-node and TPU
- Mixed precision including FP8
- DeepSpeed integration
- FSDP1 and FSDP2
- Megatron-LM
- Gradient accumulation and Local SGD
- Checkpointing and experiment trackers
- Big model inference
- accelerate config and launch commands
- Launching from Jupyter notebooks
- Amazon SageMaker, Apple silicon, Intel CPU and Intel Gaudi

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.74 out of 1.
Signals: maintenance 1.00, adoption 0.80, momentum 0.65, community 1.00, backing 0.30, extensibility 0.20.

- last commit 6 days ago
- 113 commits in the last 90 days
- latest release v1.16.0 13 days ago
- 10.0k GitHub stars
- 461 contributors
- backed by Hugging Face

## Related

- Works with [PyTorch](https://talira.ai/catalog/pytorch-95ycaf9h.md)

## Alternatives

- [DeepSpeed](https://talira.ai/catalog/deepspeed-s351xcrz.md): Deep learning optimization library for training and serving very large models
- [PyTorch Lightning](https://talira.ai/catalog/pytorch-lightning-2dcg53pn.md): Organises PyTorch code and handles the training engineering, from one CPU to thousands of GPUs
- [torchtitan](https://talira.ai/catalog/torchtitan-8k0bb5qf.md): A PyTorch-native platform for training generative AI models at scale
- [Colossal-AI](https://talira.ai/catalog/colossal-ai-gk5zdz5s.md): PyTorch library for distributed training, fine-tuning and inference of large AI models
- [Megatron-LM](https://talira.ai/catalog/megatron-lm-71m2gb8k.md): NVIDIA's GPU-optimized library for training transformer models at scale

## Sources

[^1]: https://github.com/huggingface/accelerate/blob/main/LICENSE (checked 26 Nov 2026)
[^2]: https://huggingface.co/docs/accelerate/index (checked 26 Nov 2026)
