# DeepSpeed

> Deep learning optimization library for training and serving very large models

Source: https://talira.ai/catalog/deepspeed-s351xcrz
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / ml / distributed training](https://talira.ai/categories/ai/ml/distributed-training)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [DeepSpeed Team](https://talira.ai/orgs/deepspeed-team.md)

DeepSpeed is a deep learning optimization library for PyTorch that makes training and inference of very large models faster and cheaper. Its ZeRO family of optimizations (ZeRO, ZeRO-Offload, ZeRO-Infinity, ZeRO++) splits optimizer states, gradients and parameters across GPUs and offloads them to CPU and NVMe, alongside 3D parallelism, Ulysses sequence parallelism and mixture-of-experts training. It was used to train models such as Megatron-Turing NLG 530B and BLOOM, works with Hugging Face [Accelerate](https://talira.ai/catalog/accelerate-3p4v0csz.md) and PyTorch Lightning, runs on NVIDIA and AMD GPUs with contributed support for Intel Gaudi and other accelerators, and began as part of Microsoft's AI at Scale initiative.

## Links

- Website: https://www.deepspeed.ai/
- GitHub: https://github.com/deepspeedai/DeepSpeed
- Docs: https://deepspeed.readthedocs.io/

## Problems it solves

- my model doesn't fit in GPU memory when I fine-tune it
- train a multi-billion-parameter LLM across many GPUs
- cut GPU memory use during PyTorch training by offloading to CPU

## Features

- train models too big for one GPU with ZeRO sharding
- offload optimizer states and parameters to CPU and NVMe
- 3D, tensor and sequence parallelism
- mixture-of-experts training
- integrates with Hugging Face Transformers, Accelerate and Lightning

## Limitations

- PyTorch must be installed first, and its C++/CUDA extensions are compiled on first use, which needs a CUDA or ROCm compiler.[^1]
- Async I/O and GPUDirect Storage aren't supported on Windows.[^1]

## Trust

Overall: 0.76 out of 1.
Signals: maintenance 1.00, adoption 0.93, momentum 0.82, community 1.00, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 372 commits in the last 90 days
- latest release v0.20.1 5 days ago
- 43.4k GitHub stars
- 547 contributors
- backed by DeepSpeed Team

## Alternatives

- [Colossal-AI](https://talira.ai/catalog/colossal-ai-gk5zdz5s.md): PyTorch library for distributed training, fine-tuning and inference of large AI models
- [Accelerate](https://talira.ai/catalog/accelerate-3p4v0csz.md): Hugging Face's library to run the same PyTorch code on any distributed setup
- [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
- [MiniMind](https://talira.ai/catalog/minimind-7eb46pp5.md): Train a 64M-parameter language model from scratch in about two hours

## Sources

[^1]: https://github.com/deepspeedai/DeepSpeed/blob/master/README.md (checked 26 Nov 2026)
[^2]: https://github.com/deepspeedai/DeepSpeed/blob/master/LICENSE (checked 26 Nov 2026)
