赞
踩
MindSpore Transformers套件的目标是构建一个大模型训练、微调、评估、推理、部署的全流程开发套件,提供业内主流的Transformer类预训练模型和SOTA下游任务应用,涵盖丰富的并行特性。期望帮助用户轻松的实现大模型训练和创新研发。
docker pull swr.cn-central-221.ovaijisuan.com/mindformers/mindformers0.8.0_mindspore2.2.0:aarch_20231025
- #!/bin/bash
- CONTAINER_NAME=mindformers
- CHECKPOINT_PATH=/var/images/llm_setup/model/gpt2
- DOCKER_CHECKPOINT_PATH=/data/gpt2
- IMAGE_NAME=swr.cn-central-221.ovaijisuan.com/mindformers/mindformers0.8.0_mindspore2.2.0:aarch_20231025
-
- docker run -it -u root \
- --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/devmm_svm \
- --device=/dev/hisi_hdc \
- -v /etc/localtime:/etc/localtime \
- -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \
- -v /var/log/npu/:/usr/slog \
- -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
- -v ${CHECKPOINT_PATH}:${DOCKER_CHECKPOINT_PATH} \
- --name ${CONTAINER_NAME} \
- ${IMAGE_NAME} \
- /bin/bash
- wget https://gitee.com/mindspore/mindspore/raw/r2.2/scripts/install/euleros-ascend-pip.sh
- # 安装MindSpore 2.2.14和Python 3.7
- # 默认LOCAL_ASCEND路径为/usr/local/Ascend
- MINDSPORE_VERSION=2.2.14 bash -i ./euleros-ascend-pip.sh
- # 如需指定Python和MindSpore版本,以Python 3.9和MindSpore 1.6.0为例
- # 且指定LOCAL_ASCEND路径为/home/xxx/Ascend,使用以下方式
- # LOCAL_ASCEND=/home/xxx/Ascend PYTHON_VERSION=3.9 MINDSPORE_VERSION=1.6.0 bash -i ./euleros-ascend-pip.sh
python -c "import mindspore;"
- git clone -b r1.0 https://gitee.com/mindspore/mindformers.git
- cd mindformers
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。