Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
megatron_qwen
Commits
25eef9f4
You need to sign in or sign up before continuing.
Commit
25eef9f4
authored
Sep 29, 2024
by
jerrrrry
Browse files
Add README.md
parent
0816dd4a
Pipeline
#1732
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
README.md
README.md
+29
-0
No files found.
README.md
0 → 100644
View file @
25eef9f4
Qwen_Megtron🤤
# 环境配置
1.
拉取镜像,创建容器,安装基础依赖包
<pre>
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.3.0-ubuntu20.04-dtk24.04.2-py3.10
docker run -it --network=host --name=llmtrain_libo --restart=on-failure:10 --privileged --device=/dev/kfd --device=/dev/dri --ipc=host --shm-size=32G --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v /mnt/fs/catl:/data -v /root/.ssh:/root/.ssh -v /opt/hyhal:/opt/hyhal -u root --ulimit stack=-1:-1 --ulimit memlock=-1:-1 image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.3.0-ubuntu20.04-dtk24.04.2-py3.10 bash
pip install -r requirements.txt
</pre>
2.
多节点docker设置:
1.
进入容器执行/usr/sbin/sshd -p 12345,启动一个端口
2.
容器间可通过该端口ssh登录,ssh ip -p 12345
3.
如果需要免密,docker run容器时,docker -v /root/.ssh:/root/.ssh 挂载.ssh目录
4.
容器间mpirun执行,mpirun -np .... --hostfile hosts -mca plm_rsh_args "-p 12345" ./exe localhost
### 分布式训练
-
执行多卡训练,参数按需修改
```
bash run.sh > trian_1_64.log 2>&1 &
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment