Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

DeepSpeed

> 包管理
Open source

DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.

42.8K stars0 likes8 views
WebsiteGitHub

About

DeepSpeed is a deep learning optimization library that makes distributed training and inference easy, efficient, and effective.

Office Hours

DeepSpeed hosts regular office hours on the last Tuesday of each month at 12:00 America/New_York to discuss development plans, features, etc. This meeting is public for anyone to join and ask questions. The meeting is hosted on Zoom and can be joined here.

Latest News

  • [2026/05] Using Muon Optimizer with DeepSpeed

  • [2026/05] System DMA (SDMA) for ZeRO-3: offload collectives off compute units on AMD GPUs for better overlap

  • [2026/03] DeepSpeed Team gave a tutorial at ASPLOS 2026 titled "Building Efficient Large-Scale Model Systems with DeepSpeed: From Open-Source Foundations to Emerging Research"

  • [2026/03] Our SuperOffload work received an Honorable Mention for the ASPLOS 2026 Best Paper Award

  • [2025/12] DeepSpeed Core API updates: PyTorch-style backward and low-precision master states

  • [2025/11] DeepSpeed ZeRO++ powers large-scale distillation training of LLMs for Recommendation Systems at LinkedIn

  • [2025/10] We hosted the Ray x DeepSpeed Meetup at Anyscale. We shared our most recent work on SuperOffload, ZenFlow, Muon Optimizer Support, Arctic Long Sequence Training and DeepCompile. Please find the meetup slides here.

  • [2025/10] SuperOffload: Unleashing the Power of Large-Scale LLM Training on Superchips

  • [2025/10] Study of ZenFlow and ZeRO offload performance with DeepSpeed CPU core binding

  • [2025/08] ZenFlow: Stall-Free Offloading Engine for LLM Training

  • [2025/06] Arctic Long Sequence Training (ALST) with DeepSpeed: Scalable And Efficient Training For Multi-Million Token Sequences

  • [2025/06] DeepNVMe: Affordable I/O scaling for Deep Learning Applications

More news
  • [2025/04] DeepCompile: Unlocking Compiler Optimization for Distributed Training
  • [2025/03] DeepSpeed AutoTP: Automatic Tensor Parallel Training of Hugging Face models
  • [2024/12] Ulysses-Offload: Democratizing Long Context LLM Training

Extreme Speed and Scale for DL Training

DeepSpeed enabled the world's most powerful language models (at the time of this writing) such as MT-530B and BLOOM. DeepSpeed offers a confluence of system innovations, that has made large scale DL training effective, and efficient, greatly improved ease of use, and redefined the DL training landscape in terms of scale that is possible. These innovations include ZeRO, ZeRO-Infinity, 3D-Parallelism, Ulysses Sequence Parallelism, DeepSpeed-MoE, etc.


DeepSpeed Adoption

DeepSpeed was an important part of Microsoft’s AI at Scale initiative to enable next-generation AI capabilities at scale, where you can find more information here.

DeepSpeed has been used to train many different large-scale models, below is a list of several examples that we are aware of (if you'd like to include your model please submit a PR):

  • Megatron-Turing NLG (530B)
  • Jurassic-1 (178B)
  • BLOOM (176B)
  • GLM (130B)
  • xTrimoPGLM (100B)
  • YaLM (100B)
  • GPT-NeoX (20B)
  • AlexaTM (20B)
  • Turing NLG (17B)
  • METRO-LM (5.4B)

DeepSpeed has been integrated with several different popular open-source DL frameworks such as:

Documentation
Transformers with DeepSpeed
Accelerate with DeepSpeed
Lightning with DeepSpeed
MosaicML with DeepSpeed
Determined with DeepSpeed
MMEngine with DeepSpeed

Build Pipeline Status

Description Status
NVIDIA
AMD
CPU
Intel Gaudi
Intel XPU
Integrations
Misc
Huawei Ascend NPU

Installation

The quickest way to get started with DeepSpeed is via pip, this will install the latest release of DeepSpeed which is not tied to specific PyTorch or CUDA versions. DeepSpeed includes several C++/CUDA extensions that we commonly refer to as our 'ops'. By default, all of these extensions/ops will be built just-in-time (JIT) using torch's JIT C++ extension loader that relies on ninja to build and dynamically link them at runtime.

Requirements

  • PyTorch must be installed before installing DeepSpeed.
  • For full feature support we recommend a version of PyTorch that is >= 2.0 and ideally the latest PyTorch stable release.
  • A CUDA or ROCm compiler such as nvcc or hipcc used to compile C++/CUDA/HIP extensions.
  • Specific GPUs we develop and test against are listed below, this doesn't mean your GPU will not work if it doesn't fall into this category it's just DeepSpeed is most well tested on the following:
    • NVIDIA: Pascal, Volta, Ampere, and Hopper architectures
    • AMD: MI100 and MI200

Contributed HW support

  • DeepSpeed now support various HW accelerators.
Contributor Hardware Accelerator Name Contributor validated Upstream validated
Huawei Huawei Ascend NPU npu Yes No
Intel Intel(R) Gaudi(R) 2 AI accelerator hpu Yes Yes
Intel Intel(R) Xeon(R) Processors cpu Yes Yes
Intel Intel(R) Data Center GPU Max series xpu Yes Yes
Tecorigin Scalable Data Analytics Accelerator sdaa Yes No

PyPI

We regularly push releases to PyPI and encourage users to install from there in most cases.

bash
pip install deepspeed

After installation, you can validate your install and see which extensions/ops your machine is compatible with via the DeepSpeed environment report.

bash
ds_report

If you would like to pre-install any of the DeepSpeed extensions/ops (instead of JIT compiling) or install pre-compiled ops via PyPI please see our advanced installation instructions.

Windows

Many DeepSpeed features are supported on Windows for both training and inference. You can read more about this in the original blog post here. Among features that are currently not supported are async io (AIO) and GDS (which does not support Windows).

  1. Install PyTorch, such as pytorch 2.3+cu121.
  2. Install Visual C++ build tools, such as VS2022 C++ x64/x86 build tools.
  3. Launch Cmd console with Administrator permissions for creating required symlink folders and ensure MSVC tools are added to your PATH or launch the Developer Command Prompt for Visual Studio 2022 with administrator permissions.
  4. Run build_win.bat to build wheel in dist folder.

Further Reading

All DeepSpeed documentation, tutorials, and blogs can be found on our website: deepspeed.ai

Description
Getting Started First steps with DeepSpeed
[DeepSpeed JSON Configurat

Issues· 1470 open

View all issuesOpen on GitHub
  • #8672

    DeepSpeed - Q4 2026 Roadmap

    roadmapUpdated Sep 30, 2026
  • #8707

    [BUG] Flaky: TestZero2CPUOffloadGradAccumNorm::test fails intermittently (accumulated_grads_in_cpu should be non-zero after first backward)

    bugci-failureUpdated Sep 30, 2026
  • #8700

    [REQUEST] DeepCompile ZeRO-1: reduce-to-owner instead of AllReduce

    enhancementUpdated Sep 29, 2026
  • #8696

    [REQUEST] Add pipeline section in `config.json` for pp

    enhancementUpdated Sep 28, 2026
  • #8104

    DeepSpeed - Q3 Roadmap

    roadmapUpdated Sep 28, 2026
  • #8692

    Gradient scale under sequence parallelism differs between ZeRO reduction paths

    Updated Sep 28, 2026
  • #8439

    Default gradient_clipping divides every Muon update by its own norm, shrinking the step by a model-sized factor

    Updated Sep 27, 2026
  • #8173

    [RFC] Support sharding LM heads and adopting Online Softmax

    enhancementUpdated Sep 26, 2026
  • #7861

    [Roadmap] DeepSpeed Roadmap Q2 2026

    roadmapUpdated Sep 26, 2026
  • #8660

    [BUG] get_global_grad_norm() returns None with fp32 at ZeRO stage 0

    Updated Sep 25, 2026

> Tags

Pythonbillion-parameterscompressiondata-parallelismdeep-learning

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image