feat(recipe): add Ascend Megatron OPD recipes - #89
Open
egangu wants to merge 3 commits into
Open
Conversation
Add the Qwen2.5 and Qwen3-VL four-NPU OPD launchers, a bilingual practice guide, the exact reviewed VeRL dependency, and the standalone compatibility patch. Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Egan <yanggangu@outlook.com>
wucong25
reviewed
Sep 1, 2026
| UPSTREAM=https://github.com/egangu/verl.git | ||
| MODE=pinned_commit | ||
| COMMIT=94f869c00b85beb177276cbbb0124f366be28db6 | ||
| PIP_INSTALL=pip install verl@git+https://github.com/egangu/verl.git@94f869c00b85beb177276cbbb0124f366be28db6 |
Collaborator
There was a problem hiding this comment.
当前安装为私人分支,需要修改为release/0.8.0或其他release分支
Author
There was a problem hiding this comment.
已在 d153c75 修正:改用官方 verl-project/verl@release/v0.8.0;源码安装会先应用仓库内兼容 patch,不再依赖个人 fork。README 已同步,且 release 上的 patch check、安装器 dry-run、脚本语法与参数 dry-run 均通过。
Signed-off-by: Egan <yanggangu@outlook.com>
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Egan <yanggangu@outlook.com>
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.
交付内容
关联社区任务:#21
本 PR 在独立
opd/目录交付两条经过四卡验证的 Megatron + vLLM Ascend OPD 配方:forward_kl_topk、top-k 64;同时包含:
REQUIRED_VERL.txt;核心 VeRL 改动对应 verl PR #7333。recipe 现固定官方
release/v0.8.0,并在源码安装时应用仓库内兼容 patch,不再依赖个人 fork。四卡验收结果
完整、未截断训练日志:public Gist。本次按交付约定核对日志内容,不设置日志哈希门禁。
实践文档与运行说明:
opd/README.md。检查
bash -n opd/run_qwen2_5_0_5b_megatron_npu.sh opd/run_qwen3_vl_2b_megatron_npu.sh— passedshellcheck opd/*.sh— passed/bin/echo的参数 dry-run — passed;模型对、四卡 2+2、batch、序列长度、OPD loss 和100步配置解析正确bash install_verl.sh --recipe opd --show— passedgit apply --check --unidiff-zeroagainst the recordedPATCH_BASE— passeduvx pre-commit run --files <changed files>— passed(Ruff hooks无适用 Python 文件)git diff --check upstream/main...HEAD— passed本次 recipe 仓迁移没有重复启动100步训练;上表来自同一解析配置的已完成四卡验收运行,完整日志已公开。
This contribution was developed with assistance from OpenAI Codex. The human submitter remains responsible for review, validation, and submission.