分布式训练工程相关 GitHub 项目
提示
先订阅读目标(学 API / 学算法 / 学工程),再 clone;避免无目的「收藏式学习」。
精选清单
| 仓库 | 为何值得读 | 链接 |
|---|---|---|
pytorch/pytorch | DDP/FSDP | https://github.com/pytorch/pytorch |
microsoft/DeepSpeed | ZeRO 与训练加速 | https://github.com/microsoft/DeepSpeed |
NVIDIA/Megatron-LM | 大模型并行 | https://github.com/NVIDIA/Megatron-LM |
huggingface/accelerate | 分布式启动封装 | https://github.com/huggingface/accelerate |
horovod/horovod | 经典分布式 | https://github.com/horovod/horovod |
建议阅读顺序
- 入门示例仓库:跑通 README 的最小命令;
- 核心库:只精读与本课支柱相关的目录;
- 生产级项目:看配置、CI、基准与失败处理;
- 对照实现:同一问题的两种实现差异。
如何做代码导读笔记
## 仓库
- 问题:它解决什么?不解决什么?
- 入口文件:
- 关键数据结构:
- 性能相关点:
- 我能复用的 3 个点:
- 我不会照搬的 2 个点:
本地跟读模板
git clone https://github.com/<org>/<repo>.git
cd <repo>
# 创建只读笔记分支,避免污染
git switch -c notes/distribution-training
许可与合规
使用前确认 License;对权重、数据与安全扫描结果保持谨慎;企业环境走内安流程。