---
title: "Accelerate 1.0.0"
description: "Hugging Face has published the first release candidates for Accelerate 1.0.0."
url: "https://swe.quest/articles/accelerate-1-0-0-3876b57c9168d12c"
canonical: "https://huggingface.co/blog/accelerate-v1"
source: "Hugging Face"
published: "2024-09-13"
difficulty: "medium"
kind: "Release"
reading_minutes: 5
tags: ["model-training","python","machine-learning"]
---

# Accelerate 1.0.0

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-09-13, 5 min read, Release. Original: [https://huggingface.co/blog/accelerate-v1](https://huggingface.co/blog/accelerate-v1)

## Summary

Hugging Face has published the first release candidates for Accelerate 1.0.0. The library has grown from a thin multi-GPU/TPU training-loop wrapper into the base layer for transformers, diffusers, peft and trl, covering six accelerator types, a launch CLI and big-model inference via device\_map="auto". Before 1.0 the team added FP8 support through MS-AMP and TransformerEngine, multi-model DeepSpeed orchestration, torch.compile for big model inference, torch.distributed.pipelining and StatefulDataLoader. Migration notes list the breaking deprecations, such as moving dataloader flags into DataLoaderConfiguration, using AutocastKwargs and renaming is\_tpu\_available to is\_torch\_xla\_available.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)

## Prerequisites

- PyTorch training loops ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- distributed training basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))

## Keywords

Accelerate, PyTorch, DeepSpeed, FSDP, FP8, TransformerEngine, torchao, Hugging Face

## Related posts

- [Introducing 🤗 Accelerate](https://swe.quest/articles/introducing-accelerate-aaf88192c9f162b5.md): Hugging Face · 2021-04-16 · Medium · 7 min read · Model training, Python, Machine learning
  🤗 Accelerate lets PyTorch users keep their own training loops while running the same script on CPU, single or multi-GPU, multi-node, TPU, and with mixed precision, by adding about five lines: an Accelerator object, accelerator.prepare() for model/optimizer/dataloader, and accelerator.backward(). prepare() wraps the model in the right container such as DistributedDataParallel, wraps the optimizer for mixed precision, and shards any sampler's indices per process using synchronized RNGs instead of requiring DistributedSampler.
- [From PyTorch DDP to Accelerate to Trainer, mastery of distributed training with ease](https://swe.quest/articles/from-pytorch-ddp-to-accelerate-to-trainer-mastery-of-distributed-training-with-8ad821e28b1383c4.md): Hugging Face · 2022-10-21 · Medium · 9 min read · Model training, Python, Machine learning
  Converting a basic PyTorch MNIST training script to multi-GPU Distributed Data Parallel training is shown at three levels of abstraction.
- [Parameter-Efficient Fine-Tuning using 🤗 PEFT](https://swe.quest/articles/parameter-efficient-fine-tuning-using-peft-5c28b9ec4e65b0a1.md): Hugging Face · 2023-02-10 · Medium · 5 min read · Model training, LLMs, Python
  Hugging Face's PEFT library brings parameter-efficient fine-tuning methods (LoRA, Prefix Tuning, Prompt Tuning, P-Tuning) to Transformers and Accelerate.
- [Accelerate Large Model Training using DeepSpeed](https://swe.quest/articles/accelerate-large-model-training-using-deepspeed-d18dbe7623c821c0.md): Hugging Face · 2022-06-28 · Medium · 8 min read · Model training, Python, Performance engineering
  Hugging Face Accelerate can enable DeepSpeed ZeRO data parallelism, which shards optimizer states, gradients and parameters across GPUs and optionally offloads them to CPU, with no or minimal code changes.
- [From DeepSpeed to FSDP and Back Again with Hugging Face Accelerate](https://swe.quest/articles/from-deepspeed-to-fsdp-and-back-again-with-hugging-face-accelerate-15016dbd4b4a46b2.md): Hugging Face · 2024-06-13 · Hard · 6 min read · Model training, Machine learning, Python
  DeepSpeed ZeRO-3 and PyTorch FSDP gave different training results on Mistral-7B loaded in bfloat16 because DeepSpeed silently upcasts flattened parameters and optimizer state to fp32, while FSDP keeps them in the loaded dtype.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
