[megatron, vllm, recipe] feat: add Qwen2.5-0.5B CISPO training on Ascend - #7442
[megatron, vllm, recipe] feat: add Qwen2.5-0.5B CISPO training on Ascend#7442RordChang wants to merge 2 commits into
Conversation
Add a Qwen2.5-0.5B-Instruct CISPO example with Megatron actor/reference training and vLLM-Ascend rollout, together with targeted CPU coverage for the registered CISPO objective. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: RordChang <13223981771@163.com>
There was a problem hiding this comment.
Pull request overview
Adds an Ascend-focused CISPO training example for Qwen2.5-0.5B-Instruct that uses Megatron for actor/reference training and vLLM-Ascend for rollout, and extends CPU unit coverage for CISPO policy-loss behavior and registration.
Changes:
- Added CPU tests covering CISPO clipped-ratio behavior, stop-gradient semantics, response masking, and registry wiring.
- Added a Megatron + vLLM-Ascend launcher script for Qwen2.5-0.5B-Instruct with environment-variable overrides and timestamped logging.
- Updated the CISPO trainer README with an entry point for the new Ascend recipe and a link to validated artifacts.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/trainer/ppo/test_dynamic_policy_losses_on_cpu.py | Adds CPU unit tests for CISPO loss clipping + stop-gradient behavior and verifies the loss is registered. |
| examples/cispo_trainer/run_qwen2_5_0_5b_megatron.sh | Introduces an Ascend NPU training launcher (Megatron actor/ref + vLLM-Ascend rollout) with configurable env overrides. |
| examples/cispo_trainer/README.md | Documents the new Ascend launcher entry point and links to external validation artifacts. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
请完善一下 1. 不需要提交test相关的代码 2. 提交实验数据 |
Remove test-only changes following reviewer feedback while retaining the reported validation results in the PR description. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: RordChang <13223981771@163.com>
|
@fangweii1 已按反馈完成修改:test 相关代码已删除,实验数据和完整脱敏训练日志链接已补充至 PR 正文。 |
|
统一先提到verl-ascend-recipe:verl-ascend-recipe哈,此pr暂时关闭 |
What does this PR do?
Adds a Qwen2.5-0.5B-Instruct CISPO training example using Megatron for actor/reference training and vLLM-Ascend for rollout on Ascend NPUs.
10.0 / 0.2and token-mean aggregation.Related:
verl-project/verl-ascend-recipe#17
Checklist Before Starting
[{modules}] {type}: {description}.Test
pre-commit run --all-files --show-diff-on-failure --color=always: passed.bash -n examples/cispo_trainer/run_qwen2_5_0_5b_megatron.sh: passed.Experiment Results
Platform: 4 x Ascend 910B.
Full redacted 100-step training log:
training_100step_sanitized.log
API and Usage Example
python3 examples/data_preprocess/gsm8k.py \ --local_save_dir /path/to/data/gsm8k MODEL_PATH=/path/to/Qwen2.5-0.5B-Instruct \ DATA_ROOT=/path/to/data \ NPUS_PER_NODE=4 \ TOTAL_TRAINING_STEPS=100 \ bash examples/cispo_trainer/run_qwen2_5_0_5b_megatron.shAdditional Hydra overrides can be appended to the command.
Design & Code Changes
cispopolicy loss remains the single implementation of the objective.Checklist Before Submitting
AI assistance: OpenAI Codex was used for codebase inspection and preparation of the implementation, validation, and documentation. The submitter reviewed the changes and validation results.