ymcui / Chinese-LLaMA-Alpaca-2

中文LLaMA-2 & Alpaca-2大模型二期项目 + 64K超长上下文模型 (Chinese LLaMA-2 & Alpaca-2 LLMs with 64K long context models)
Apache License 2.0
7.04k stars 581 forks source link

多机多卡微调 #429

Closed qdchenxiaoyan closed 8 months ago

qdchenxiaoyan commented 9 months ago

提交前必须检查以下项目

问题类型

模型训练与精调

基础模型

Chinese-Alpaca-2 (7B/13B)

操作系统

Linux

详细描述问题

作者能否完善下多机多卡微调的说明,谢谢~

依赖情况(代码类问题务必提供)

# 请在此处粘贴依赖情况(请粘贴在本代码块里)

运行日志或截图

# 请在此处粘贴运行日志(请粘贴在本代码块里)
iMountTai commented 9 months ago

指令微调脚本wiki中有说明

qdchenxiaoyan commented 9 months ago

指令微调脚本wiki中有说明

image我是按照这个配置的,如下图:

image image

我是两台机器,是两台机器分别启动训练么,配置的区别就是node_rank,其他都一样?那启动顺序有没有什么要求呢

iMountTai commented 9 months ago

master_addr需要指定rank0所在机器的IP,启动顺序不清楚有没有区别,具体可以看一下torchrun的官方文档。

qdchenxiaoyan commented 9 months ago

master_addr需要指定rank0所在机器的IP,启动顺序不清楚有没有区别,具体可以看一下torchrun的官方文档。

试了,在设定的通信时间内,启动顺序没要求

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your consideration.

github-actions[bot] commented 8 months ago

Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.