huggingface/accelerate
🚀 A simple way to launch, train, and use PyTorch models on almost any device and distributed configuration, automatic mixed precision (including fp8), and easy-to-configure FSDP and DeepSpeed support observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 88
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 26
- age_days: 2133
- days_rel: 83
- days_push: 7
- n_releases_24m: 22
Adoption not part of the score
9838 stars · 1444 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Hugging Face Accelerate is a Python library that lets you run the same PyTorch training and inference code on any device or distributed configuration (multi-GPU, TPU, fp16/fp8 mixed precision, FSDP, DeepSpeed) by adding just a few lines of code. It abstracts the boilerplate of distributed training while leaving your training loop unchanged.
Use cases
- train pytorch models on multiple gpus
- run the same training script on gpu, tpu, or cpu
- add mixed precision fp16 or fp8 to my training loop
- scale pytorch training with fsdp or deepspeed
- run inference with very large models that don't fit in memory
- launch distributed training without writing torchrun boilerplate
- fine-tune large language models across distributed hardware
When to choose
- you write custom PyTorch training loops and want minimal changes to scale them
- you need portability across GPUs, TPUs, and distributed setups with one codebase
- you want easy mixed precision, FSDP, or DeepSpeed integration without learning each framework's API
- you're in the Hugging Face ecosystem (Transformers, Diffusers, TRL)
When to avoid
- you use a high-level training framework like PyTorch Lightning or Keras and don't need fine-grained control
- you need fully managed distributed training rather than a library you integrate into your own loop
- your project isn't PyTorch-based (e.g., JAX or TensorFlow)
Facets
library · maturity stable
machine-learning llm-training gpu-computing cli deep-learning machine-learning large-language-models developer-tools python cross-platform cli pytorch distributed-training mixed-precision fsdp deepspeed multi-gpu tpu huggingface gpu
10 sources
- readme: https://github.com/huggingface/accelerate · fetched 2026-08-28 · 1335a12ee6e6
- homepage: https://huggingface.co/docs/accelerate · fetched 2026-08-29 · ed8b2be074ad
- site_page: https://huggingface.co/docs · fetched 2026-08-29 · bdec26667b98
- site_page: https://huggingface.co/docs/accelerate/basic_tutorials/install · fetched 2026-08-29 · 3bfd1618a5c3
- site_page: https://huggingface.co/docs/accelerate/quicktour · fetched 2026-08-29 · b89a3c5cc2e6
- site_page: https://huggingface.co/docs/accelerate/basic_tutorials/overview · fetched 2026-08-29 · d0b73258e84e
- site_page: https://huggingface.co/docs/accelerate/basic_tutorials/migration · fetched 2026-08-29 · bb6d628bd730
- site_page: https://huggingface.co/docs/accelerate/basic_tutorials/execution · fetched 2026-08-29 · e48eb40708aa
- site_page: https://huggingface.co/docs/accelerate/basic_tutorials/tpu · fetched 2026-08-29 · 0ede16cd560a
- registry_pypi: https://pypi.org/pypi/accelerate/json · fetched 2026-08-29 · 8e499b75d67d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| huggingface/accelerate | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="huggingface/accelerate")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem