!1221 Q1 分支指定加速库 commit ID
Merge pull request !1221 from guoxinjie/24Q1
This commit is contained in:
parent
3a544f320b
commit
2cdee76040
|
@ -48,15 +48,18 @@ pip install torch_npu-2.1.0.postxxxx-cp38-cp38-xxxx_aarch64.whl
|
|||
# 通过PTA上提供的安装包,以whl文件方式安装apex
|
||||
pip install apex-0.1_ascend*-cp38-cp38m-linux_aarch64.whl
|
||||
|
||||
# 拉取AscendSpeed源代码,进入AscendSpeed目录,source相应的CANN环境文件,然后源码方式安装ascendspeed加速包
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed/
|
||||
# 请按照您的真实环境修改 set_env.sh 路径
|
||||
source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
||||
pip install -e ./
|
||||
|
||||
# 进入ModelLink主目录,安装其余依赖包
|
||||
cd ModelLink/
|
||||
# 拉取AscendSpeed源代码,进入AscendSpeed目录,然后源码方式安装ascendspeed加速包
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed/
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
cd ..
|
||||
|
||||
# 安装其余依赖包
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
|
|
|
@ -45,14 +45,18 @@ conda activate test
|
|||
pip install torch==2.1.0
|
||||
pip install torch_npu-2.1.0.postxxxx-cp38-cp38-xxxx_aarch64.whl
|
||||
pip install apex-0.1_ascend*-cp38-cp38m-linux_aarch64.whl
|
||||
# use git to clone the AscendSpeed source code, enter the directory, source the set_env.sh file based on your host settings(you may need to change the path), then install ascendspeed package by source code
|
||||
|
||||
# source the set_env.sh file based on your host settings(you may need to change the path)
|
||||
source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
||||
# git clone the AscendSpeed source code, enter the directory, then install ascendspeed package by source code
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed/
|
||||
source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
||||
pip install -e ./
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
cd ..
|
||||
|
||||
# enter the ModelLink/ directory and install other packages
|
||||
cd ModelLink/
|
||||
# install other packages
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
|
|
|
@ -67,6 +67,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -289,6 +290,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -67,6 +67,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -291,6 +292,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
#install Ascendspeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -64,6 +64,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -288,6 +289,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -64,6 +64,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -285,6 +286,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -49,6 +49,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -255,6 +256,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -49,6 +49,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -254,6 +255,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -62,6 +62,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -248,6 +249,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -63,6 +63,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -247,6 +248,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -60,6 +60,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -139,7 +140,6 @@ LLaMA-7B
|
|||
# 请按照您的真实环境修改 set_env.sh 路径
|
||||
source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
||||
python tools/checkpoint/util.py \
|
||||
>>>>>>> e8ae798... !1186 统一权重路径和README样式
|
||||
--loader megatron \
|
||||
--saver megatron \
|
||||
--save-model-type save_huggingface_llama \
|
||||
|
@ -495,6 +495,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -60,6 +60,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install ascendspeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -477,6 +478,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -72,6 +72,7 @@ LLAMA2-7B 训练的硬件配置:
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -418,6 +419,7 @@ LLaMA2-13B 训练的硬件配置:
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -704,6 +706,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -70,6 +70,7 @@ Here's a hardware summary of pre-training LLAMA2-7B:
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -428,6 +429,7 @@ Here's a hardware summary of pre-training LLaMA2-13B:
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
@ -753,6 +755,7 @@ source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
|
|
|
@ -67,6 +67,7 @@
|
|||
source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
```
|
||||
|
|
|
@ -68,6 +68,7 @@ Recommended hardware configuration for inference:
|
|||
source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip3 install -e .
|
||||
cd ..
|
||||
```
|
||||
|
|
|
@ -69,6 +69,7 @@ Qwen-7B 训练的硬件配置:
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
cd ..
|
||||
|
@ -298,6 +299,7 @@ Qwen-14B 训练的硬件配置:
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
cd ..
|
||||
|
@ -532,6 +534,7 @@ Qwen-72B 训练的硬件配置:
|
|||
# 安装加速库
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
cd ..
|
||||
|
|
|
@ -67,6 +67,7 @@ Here's a hardware summary of pre-training Qwen-7B:
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
cd ..
|
||||
|
@ -292,6 +293,7 @@ Here's a hardware summary of pre-training Qwen-14B:
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
cd ..
|
||||
|
@ -526,6 +528,7 @@ Here's a hardware summary of pre-training Qwen-72B:
|
|||
# install AscendSpeed
|
||||
git clone https://gitee.com/ascend/AscendSpeed.git
|
||||
cd AscendSpeed
|
||||
git checkout 224ae35e8fc96778f957029d1371ddb623452a50
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
cd ..
|
||||
|
|
Loading…
Reference in New Issue