Repository navigation
test: add Qwen3 Megatron baseline - #15
Open
JYMiracle305 wants to merge 2 commits into
Open
JYMiracle305 wants to merge 2 commits into
JYMiracle305 wants to merge 2 commits into
Conversation
JYMiracle305
force-pushed
the
feat/add-qwen3-megatron-baseline
branch
from
September 4, 2026 09:22
6acc435 to
d4f6951
Compare
JYMiracle305
force-pushed
the
feat/add-qwen3-megatron-baseline
branch
from
September 9, 2026 07:07
d4f6951 to
ffb7e14
Compare
JYMiracle305
force-pushed
the
feat/add-qwen3-megatron-baseline
branch
from
September 24, 2026 01:52
e1989e4 to
95decd9
Compare
JYMiracle305
force-pushed
the
feat/add-qwen3-megatron-baseline
branch
2 times, most recently
from
September 24, 2026 05:50
fb6349d to
200e9dd
Compare
kilinchange
reviewed
Oct 9, 2026
| parser.add_argument("--include-cases", help="comma-separated log basenames to compare") | ||
| parser.add_argument("--prefer-autocast-bfloat16", action="store_true", help="prefer historical Megatron autocast BF16 log names") | ||
| parser.add_argument("--threshold-fp32", type=float, default=1e-5) | ||
| parser.add_argument("--threshold-sp-fp32", type=float, default=2e-2) |
Collaborator
There was a problem hiding this comment.
这里可以验证下,经过 InfiniTensor/InfiniTrain#224 的修复后,Qwen3 的 sp 测例阈值是否仍然需要特判。
JYMiracle305
force-pushed
the
feat/add-qwen3-megatron-baseline
branch
from
October 10, 2026 03:25
200e9dd to
46e6c0b
Compare
JYMiracle305
force-pushed
the
feat/add-qwen3-megatron-baseline
branch
3 times, most recently
from
October 10, 2026 10:06
fb5c1b7 to
b0c945b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
本 PR 在 Megatron shadow baseline 中新增 Qwen3-8B,用于让 InfiniTrain 和 Megatron-LM 从同一份 LLMC v4 初始权重、同一串 token 和同一组训练参数启动,并逐步比较 loss。
该 PR 基于 #14,复用
baseline/megatron/common/中的数据转换和比较工具。目录结构
运行时产生的数据集、cache、日志和比较结果放在
baseline/megatron/artifacts/qwen3/,不进入 Git 提交。数据流
Qwen3 adapter 会校验 LLMC v4 header 和文件大小,处理 Q/K Norm、GQA QKV 布局、SwiGLU gate/up 顺序以及 TP 权重切分。
验证方式
当前 baseline 面向 Dense
Qwen/Qwen3-8B。