DeepSpeed
Microsoft’s library for large-scale distributed training and inference.
- Star 数
- 43.4K
- Fork 数
- 5.1K
- 未关闭 Issue
- 1.6K
- 最近提交
- 2026-11-30
数据来自 GitHub API · 更新于 2026-11-30
DeepSpeed 是什么?
DeepSpeed makes training huge models practical with ZeRO memory optimizations, offloading to CPU/NVMe, pipeline and tensor parallelism and mixed precision. It integrates with Hugging Face Transformers, Accelerate and many fine-tuning frameworks.
主要功能
- ZeRO stages 1–3 and ZeRO-Infinity offload
- Pipeline and tensor parallelism
- Integrates with Transformers and Accelerate
- Inference optimizations
系统要求
- 平台
- Linux · Windows
- 显卡
- NVIDIA or AMD
- Python
- 3.8+
如何安装 DeepSpeed
根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。
pip
- 1Install and check the environment.
pip install deepspeed ds_report
优势
- Industry standard for scale
- Fits bigger models in less memory
不足
- Config complexity
DeepSpeed 替代品对比
| 软件 | Star 数 | 许可证 | 平台 | 显存 |
|---|---|---|---|---|
| DeepSpeed Microsoft’s library for large-scale distributed training and inference. | 43.4K | Apache-2.0 | — | |
| Axolotl Config-driven LLM fine-tuning for many models and techniques. | 12.8K | Apache-2.0 | — | |
| LLaMA-Factory Unified fine-tuning for 100+ LLMs and VLMs with a no-code web UI. | 76.3K | Apache-2.0 | — | |
| TRL Hugging Face’s library for post-training LLMs: SFT, DPO, GRPO. | 19.9K | Apache-2.0 | — | |
| verl ByteDance’s reinforcement learning library for LLM post-training. | 24.4K | Apache-2.0 | — | |
| Kohya’s GUI GUI for training LoRA, DreamBooth and fine-tunes for SD, SDXL and FLUX. | 12.7K | Apache-2.0 | 8 GB+ for SD1.5 LoRA; 12–24 GB for SDXL/FLUX |
常见问题
DeepSpeed 免费吗?
是的——DeepSpeed 是开源软件,采用 Apache-2.0 许可证。商用前请确认软件及模型权重的许可条款。
DeepSpeed 支持 Windows、Mac 和 Linux 吗?
DeepSpeed 支持:Linux, Windows。
运行 DeepSpeed 需要什么配置?
NVIDIA or AMD
如何安装 DeepSpeed?
1. Install and check the environment.
DeepSpeed 有哪些好的替代品?
常见替代品包括 Axolotl, LLaMA-Factory, TRL, verl,详见本页对比表。