文件最后提交记录最后更新时间
[Docs] Corrected the description in the document Co-authored-by: LKONE<wanglikai4@huawei.com> # message auto-generated for no-merge-commit merge: !2349 merge master into master [Docs] Corrected the description in the document Created-by: wanglikai1019 Commit-by: LKONE Merged-by: ascend-robot Description: ## What this PR does / why we need it? 修改部分readme文档中的错误描述。 ## Does this PR introduce any user-facing change? 无 ## How was this patch tested? 无 See merge request: Ascend/MindSpeed-MM!23491 个月前
[feature] CANN/HDK路径适配:添加CANN路径提醒注释及批量替换工具 Co-authored-by: yeqm<yeqiangmao@huawei.com> Co-authored-by: liuxi_<liuxi75@huawei.com> # message auto-generated for no-merge-commit merge: !2440 merge supp_path_oversea into master [feature] CANN/HDK路径适配:添加CANN路径提醒注释及批量替换工具 Created-by: liuxi_ Commit-by: liuxi_;yeqm Merged-by: ascend-robot Description: # What this PR does / why we need it? 考虑出海版本(CANN 安装路径为 /usr/local/npu),修改文档中涉及/usr/local/Ascend路径时的提示。 并提供路径替换脚本,通过脚本完成仓库适配后,组件可正常安装、模型微调可正常运行。 ## Does this PR introduce any user-facing change? 在部分文档中会优化对CANN环境脚本路径的提示,提示按实际路径配置脚本。 ## How was this patch tested? 执行脚本后,验证基本功能正常 See merge request: Ascend/MindSpeed-MM!244027 天前
style: pre-commit autofix cleancode (base check) Co-authored-by: liyingxuan<liyingxuan3@huawei.com> # message auto-generated for no-merge-commit merge: !2616 merge master into master style: pre-commit autofix cleancode (base check) Created-by: liyx616 Commit-by: liyingxuan Merged-by: ascend-robot Description: ## What this PR does / why we need it? Please describe the background and detailed changes of the PR. If it is a bugfix, please attach the related issue. ## Does this PR introduce any user-facing change? Please describe whether the PR will result in any user-facing usage changes. If there is related documentation, please specify its path. ## How was this patch tested? Please explain how to verify the correctness and effectiveness of this feature, as well as its usage constraints and limitations. See merge request: Ascend/MindSpeed-MM!261616 小时前
README.md

Magistral强化学习

环境安装

环境搭建及依赖安装

conda create -n mistral_verl python=3.11
conda activate mistral_verl

pip install torch_npu==2.9.0

source /home/cann/ascend-toolkit/set_env.sh
source /home/cann/nnal/atb/set_env.sh

# 安装vllm
git clone https://github.com/vllm-project/vllm.git
cd vllm
git checkout d7de043d55d1dd629554467e23874097e1c48993
VLLM_TARGET_DEVICE=empty pip install -e .
cd ..

# 安装vllm-ascend
git clone https://github.com/vllm-project/vllm-ascend
cd vllm-ascend
git checkout 52d4acfa51fb868823d1070b81cbd2d97e9e4696
pip install -e .
cd ..

# 安装verl
git clone https://github.com/verl-project/verl.git
cd verl
git checkout 4424616d7dfe03cc564866dc5e99dfaba1daba2e
pip install -r requirements.txt
pip install -v -e .
cd ..


# 安装三方库
pip install qwen-vl-utils==0.0.11 mathruler viztracer uvloop==0.21.0 setuptools==80.9.0

# 卸载triton(如有)
pip uninstall triton

# 安装triton-ascend
pip install triton-ascend==3.2.0rc4

# 确保transformers已安装并且版本为4.57.6
pip install transformers==4.57.6

git clone https://gitcode.com/Ascend/MindSpeed-MM.git
cd MindSpeed-MM

代码替换: 将verl目录下的verl/utils/vllm/utils.py文件替换为MindSpeed-MM/examples/verl_examples/mistral/utils.py

权重下载

数据集下载

运行

修改examples/verl_examples/mistral/mistral_lora_grpo.sh中的cann路径、data.train_filesdata.val_filesactor_rollout_ref.model.pathdefault_local_dir参数 运行命令:

bash examples/verl_examples/mistral/mistral_lora_grpo.sh