# gcore **Repository Path**: snowlts/gcore ## Basic Information - **Project Name**: gcore - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-27 - **Last Updated**: 2025-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微信技术架构部Gcore适配 ## Qwen grpo的Readme: https://gitee.com/snowlts/gcore/blob/master/tasks/math_rl_v3/README.md # NPU环境安装 ## 1. 环境依赖 - HDK:25.3.rc1 - CANN:8.3.RC1 - torch_npu:2.7.1(GitCode分支:v2.7.1-7.2.0) - torch: 2.7.1 - vllm-ascend:0.11.0rc4.dev15+g9a144bc7b (分支:v0.11.0-dev:9a144bc7) ## 2. 容器启动命令 ```shell #!/bin/bash image=swr.cn-south-1.myhuaweicloud.com/ascendhub/cann:8.3.rc1-910b-ubuntu22.04-py3.11 name=gcore docker run -itd --privileged --name=${name} --net=host \ --shm-size 500g \ --device=/dev/davinci0 \ --device=/dev/davinci1 \ --device=/dev/davinci2 \ --device=/dev/davinci3 \ --device=/dev/davinci4 \ --device=/dev/davinci5 \ --device=/dev/davinci6 \ --device=/dev/davinci7 \ --device=/dev/davinci_manager \ --device=/dev/hisi_hdc \ --device /dev/devmm_svm \ -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \ -v /usr/local/Ascend/firmware:/usr/local/Ascend/firmware \ -v /usr/local/sbin/npu-smi:/usr/local/sbin/npu-smi \ -v /usr/local/sbin:/usr/local/sbin \ -v /etc/hccn.conf:/etc/hccn.conf \ -v /home:/home \ ${image} \ bash ``` ## 3. 先安装requirement.txt ```shell # pip文件灵活安装,可以跳过不能装的 while read requirement; do pip install "$requirement" || echo "跳过 $requirement"; done < requirements.txt ``` ## 4. 安装vllm ```shell pip install vllm==0.11.0 ``` ## 5. 安装vllm-ascend ```shell git clone https://github.com/vllm-project/vllm-ascend.git cd vllm-ascend git checkout 9a144bc7 export COMPILE_CUSTOM_KERNELS=1 export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi source /usr/local/Ascend/ascend-toolkit/set_env.sh source /usr/local/Ascend/nnal/atb/set_env.sh export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/`uname -i`-linux/devlib python3 -m pip install -v -e ./ ``` ## 6. 如果没有mpi4py,这么安装 ```shell apt-get install -y \ openmpi-bin \ libopenmpi-dev \ python3-dev \ python3-pip \ build-essential git clone https://github.com/mpi4py/mpi4py.git cd mpi4py pip install -e . ```