版本基线 · Version Anchor

本目录下 15 本中文 tutorial 的全部章节内容,均以下表所列的 commit 为准。

📅 快照时间:2026-05-26 至 2026-05-27  ·  🌳 克隆方式:git clone --depth=1  ·  ↩ 返回总目录

这些项目都在快速迭代——如果你读到的代码和书里说的对不上,多半是上游已经动过, 欢迎给本目录提 PR 更新。

·基线 commit 总表

# 项目 仓库(当前名) 分支 HEAD commit 提交日期 章节状态
01Megatron-LM NVIDIA/Megatron-LM main 432d76b2b8bf2026-05-26ch01-13 + 附录 ✅
02DeepSpeed deepspeedai/DeepSpeed master 510ebe58e4e42026-05-25ch01-13 ✅
03ColossalAI hpcaitech/ColossalAI main 4f9953be335e2026-04-09ch01
04TorchTitan pytorch/torchtitan main af33f763848b2026-05-25ch01
05nanotron huggingface/nanotron main 2411b022a75f2026-04-07ch01
06NeMo NVIDIA-NeMo/NeMo main 2ea3e0f05b242026-05-26ch01
07LLaMA-Factory hiyouga/LlamaFactory main 01398eb18dd42026-05-26ch01-13 ✅
08ms-swift modelscope/ms-swift main b58b1bd117e22026-05-26ch01
09Axolotl axolotl-ai-cloud/axolotl main ab1a0d81dc9f2026-05-26ch01
10Unsloth unslothai/unsloth main 1cf145c070ea2026-05-26ch01
11XTuner InternLM/xtuner main 964f70e2da612026-05-26ch01
12TRL huggingface/trl main 8221a9fcb7912026-05-26ch01
13OpenRLHF OpenRLHF/OpenRLHF main 6c6056daa5222026-05-26ch01
14verl verl-project/verl main 9c38b8bb18762026-05-26ch01-13 ✅
15PEFT huggingface/peft main a106ff4c70612026-05-22ch01

·怎么验证你本地仓库还是这个 commit

cd /Users/zjw/Documents/LLM/train/repos/<name>
git rev-parse --short=12 HEAD

如果不一致,说明仓库已经被你 / 自动脚本更新过。本书里所有"在 xxx 文件第 yyy 行" 这种行号引用,只在 HEAD 等于上表 commit 时精确成立。

·推荐的"重现书中环境"流程

  1. cd /Users/zjw/Documents/LLM/train/repos/<name>
  2. git fetch --depth=1 origin <table-commit> —— 把书里那个 commit 拉下来
  3. git checkout <table-commit> —— 切到那个状态
  4. 这样接下来照书操作就能 1:1 对得上
Note 浅克隆默认只有 HEAD 一个 commit;上面 fetch 把书里 commit 单独补拉一份。

返回总目录  ·  原版本基线 markdown:VERSIONS.md