Home Knowledge Base DeepSpeed ZeRO

DeepSpeed ZeRO — a memory optimization strategy that eliminates redundant storage of model states across data-parallel GPUs, enabling training of models 10-100x larger than standard data parallelism.

The Redundancy Problem

ZeRO Stages

Example: 10B Parameter Model with 8 GPUs

StrategyMemory per GPU
Standard DDP~160 GB (doesn't fit!)
ZeRO-1~51 GB
ZeRO-2~31 GB
ZeRO-3~21 GB (fits in 40GB A100)

ZeRO-Offload / ZeRO-Infinity

Usage: deepspeed --num_gpus=8 train.py --deepspeed ds_config.json

ZeRO is the most impactful memory optimization for LLM training — it's what makes training 70B+ parameter models practical.

deepspeed zerozero optimizerzero redundancy optimizer

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.