feat(retool): add RL training script for Qwen3.5 on NPU (Ascend).#106
Open
luoshijiang wants to merge 8 commits into
Open
feat(retool): add RL training script for Qwen3.5 on NPU (Ascend).#106luoshijiang wants to merge 8 commits into
luoshijiang wants to merge 8 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new bash script retool/run_qwen35-9b_dapo_npu.sh to configure and run PPO training for Qwen 3.5 9B on NPU devices. The reviewer provided several constructive suggestions to improve the script's robustness, including using set -e to exit immediately on errors, dynamically resolving the script's directory (SCRIPT_DIR) to make local path references more robust, and quoting variable expansions to prevent word splitting.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.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.
Summary
An example script and usage for ReTool DAPO RL training of the Qwen3.5 model on NPU (Ascend).
Usage
Environment Requirements
Ensure the environment meets the requirements for Qwen3.5 inference and reinforcement learning (RL) training.
Reference versions:
verl: 0.8.0.dev0vllm: 0.18.0+emptyvllm_ascend: 0.17.0rc2.dev109+g54879467ctransformers: 5.3.0.dev0torch: 2.9.0+cputorch_npu: 2.9.0ray: 2.48.0Reference official Docker image:
quay.io/ascend/verl:verl-8.5.2-910b-ubuntu22.04-py3.11-qwen3-5Clone verl-recipe
Deploy Required Tools
For example, to set up Sandbox, refer to:
https://github.com/bytedance/SandboxFusion.gitData Preparation
Preprocess SFT dataset (confirm or modify the save path)
Download RL and Val datasets (e.g. DAPO-Math-17k, AIME_2024)
Training
SFT
Convert weights
RL