IT lexicon › AI & ML › DeepSpeed

DeepSpeed

AI & ML På svenska → Updated: 2026-07-29

Microsoft's training library for PyTorch, released in 2020 together with ZeRO. It made training models with hundreds of billions of parameters possible without owning a research lab.

Besides ZeRO it contains offload of optimizer state to host memory and NVMe, support for 3D parallelism, mixed precision, its own mixture-of-experts implementation and compiled inference kernels. Usage is largely through a JSON configuration wrapped around an existing training loop, which kept the barrier low and made the library ubiquitous in open projects during 2021–2023 — Hugging Face Trainer had built-in support and most fine-tuning guides assumed it. Since PyTorch gained FSDP natively the centre of gravity has shifted, but DeepSpeed is still what runs in much of the code written during that period.

← Back to the lexicon