版本基线 · Version Anchor
本目录下 15 本中文 tutorial 的全部章节内容,均以下表所列的 commit 为准。
这些项目都在快速迭代——如果你读到的代码和书里说的对不上,多半是上游已经动过, 欢迎给本目录提 PR 更新。
·基线 commit 总表
| # | 项目 | 仓库(当前名) | 分支 | HEAD commit | 提交日期 | 章节状态 |
|---|---|---|---|---|---|---|
| 01 | Megatron-LM | NVIDIA/Megatron-LM | main | 432d76b2b8bf | 2026-05-26 | ch01-13 + 附录 ✅ |
| 02 | DeepSpeed | deepspeedai/DeepSpeed | master | 510ebe58e4e4 | 2026-05-25 | ch01-13 ✅ |
| 03 | ColossalAI | hpcaitech/ColossalAI | main | 4f9953be335e | 2026-04-09 | ch01 |
| 04 | TorchTitan | pytorch/torchtitan | main | af33f763848b | 2026-05-25 | ch01 |
| 05 | nanotron | huggingface/nanotron | main | 2411b022a75f | 2026-04-07 | ch01 |
| 06 | NeMo | NVIDIA-NeMo/NeMo | main | 2ea3e0f05b24 | 2026-05-26 | ch01 |
| 07 | LLaMA-Factory | hiyouga/LlamaFactory | main | 01398eb18dd4 | 2026-05-26 | ch01-13 ✅ |
| 08 | ms-swift | modelscope/ms-swift | main | b58b1bd117e2 | 2026-05-26 | ch01 |
| 09 | Axolotl | axolotl-ai-cloud/axolotl | main | ab1a0d81dc9f | 2026-05-26 | ch01 |
| 10 | Unsloth | unslothai/unsloth | main | 1cf145c070ea | 2026-05-26 | ch01 |
| 11 | XTuner | InternLM/xtuner | main | 964f70e2da61 | 2026-05-26 | ch01 |
| 12 | TRL | huggingface/trl | main | 8221a9fcb791 | 2026-05-26 | ch01 |
| 13 | OpenRLHF | OpenRLHF/OpenRLHF | main | 6c6056daa522 | 2026-05-26 | ch01 |
| 14 | verl | verl-project/verl | main | 9c38b8bb1876 | 2026-05-26 | ch01-13 ✅ |
| 15 | PEFT | huggingface/peft | main | a106ff4c7061 | 2026-05-22 | ch01 |
·怎么验证你本地仓库还是这个 commit
cd /Users/zjw/Documents/LLM/train/repos/<name>
git rev-parse --short=12 HEAD
如果不一致,说明仓库已经被你 / 自动脚本更新过。本书里所有"在 xxx 文件第 yyy 行"
这种行号引用,只在 HEAD 等于上表 commit 时精确成立。
·推荐的"重现书中环境"流程
cd /Users/zjw/Documents/LLM/train/repos/<name>git fetch --depth=1 origin <table-commit>—— 把书里那个 commit 拉下来git checkout <table-commit>—— 切到那个状态- 这样接下来照书操作就能 1:1 对得上
Note
浅克隆默认只有 HEAD 一个 commit;上面 fetch 把书里 commit 单独补拉一份。
↩ 返回总目录 · 原版本基线 markdown:VERSIONS.md