Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile,environment_variables.sh(kunlunxin-cpm),pytorch_install.sh #219

Merged
merged 5 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions training/kunlunxin/cpm-pytorch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
- OS版本:Ubuntu 20.04
- OS kernel版本: 5.4.0-26-generic
- 加速卡驱动版本:4.0.25
- Docker镜像和版本:pytorch1.12.1-cpu-ubuntu18.04:v0.04
- 训练框架版本:xmlir+e70db8f6
- Docker镜像和版本:pytorch1.12.1-cpu-ubuntu20.04:v0.01
- 训练框架版本:xmlir+111e7d45 [xmlir下载](https://bd.bcebos.com/klx-pytorch-ipipe-bd/flagperf/archives/111e7d45/xmlir-0.0.1-cp38-cp38-linux_x86_64.whl)
- 训练编译器版本:xacc+111e7d45 [xacc下载](https://bd.bcebos.com/klx-pytorch-ipipe-bd/flagperf/archives/111e7d45/xacc-0.1.0-cp38-cp38-linux_x86_64.whl)
- 依赖软件版本:pytorch-1.12.1+cpu


Expand All @@ -30,4 +31,4 @@

### 许可证

Apache 2.0 license。
Apache 2.0 license。
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export XPUSIM_TOPOLOGY_FILE=$(readlink -f $topo_file)
## workaround due to ccix bug
export BKCL_CCIX_RING="1"
export ALLREDUCE_ASYNC="0"
export ALLREDUCE_FUSION="0"
export ALLREDUCE_FUSION="0"

3 changes: 3 additions & 0 deletions training/kunlunxin/cpm-pytorch/config/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy>=1.15.4
sentencepiece>=0.1.8
jieba
2 changes: 1 addition & 1 deletion training/kunlunxin/docker_image/pytorch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# TODO: this is a temporary docker image from Docker Hub, need update to kunlunxin's Harbor registry.
from dynamicheart/pytorch1.12.1-cpu-ubuntu18.04:v0.04
from dynamicheart/pytorch1.12.1-cpu-ubuntu20.04:v0.01
RUN /bin/bash -c "pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple"
5 changes: 2 additions & 3 deletions training/kunlunxin/docker_image/pytorch/pytorch_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

set -xe

wget https://klx-public.bj.bcebos.com/xmlir/flagopen/xmlir-0.0.1-cp38-cp38-linux_x86_64.whl -O ~/xmlir-0.0.1-cp38-cp38-linux_x86_64.whl
pip install ~/xmlir-0.0.1-cp38-cp38-linux_x86_64.whl
rm ~/xmlir-0.0.1-cp38-cp38-linux_x86_64.whl
pip install https://bd.bcebos.com/klx-pytorch-ipipe-bd/flagperf/latest/xacc-0.1.0-cp38-cp38-linux_x86_64.whl
pip install https://bd.bcebos.com/klx-pytorch-ipipe-bd/flagperf/latest/xmlir-0.0.1-cp38-cp38-linux_x86_64.whl