Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.02 KB

installation.md

File metadata and controls

28 lines (20 loc) · 1.02 KB

环境和代码准备

  1. 镜像准备

可以参考 https://github.com/alibaba/ChatLearn/tree/master/docker/torch/Dockerfile.torch2.3.0 准备镜像。 如果在 PAI DLC/DSW 环境上训练,推荐使用我们准备好的镜像:

registry.cn-wulanchabu.aliyuncs.com/pai-dlc/pytorch-training:2.4.0-gpu-py3.10-cu12.5-ngc24.06-ubuntu22.04
  1. 代码准备: 用户需要下载 ChatLearn 框架代码。
# 下载 ChatLearn 代码
git clone https://github.com/alibaba/ChatLearn.git
  1. 如果您需要运行基于 Megatron-LM 框架的 alignment 训练程序,您也需要下载 Megatron-LM 代码。
# 下载 Megatron-LM
git clone https://github.com/NVIDIA/Megatron-LM.git
git checkout core_r0.8.0

Note

若使用 Megatron-LM core_r0.8.0,您可能在转换 checkpoint 时遇到错误:ValueError: Default process group has not been initialized, please make sure to call init_process_group.,您可以参考 FAQ:转换 Checkpoint 失败 中的解决方案。