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
7k stars 570 forks source link

多卡训练卡在加载模型 #552

Closed ymourenya closed 2 months ago

ymourenya commented 3 months ago

提交前必须检查以下项目

问题类型

其他问题

基础模型

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

操作系统

None

详细描述问题

# 请在此处粘贴运行代码(请粘贴在本代码块里)

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

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

运行日志或截图

torchrun --nnodes 1 --nproc_per_node 4 run_clm_pt_with_peft.py 你好,我把gpu的数量设置为4,采用单机多卡进行训练,为什么会卡在加载模型,我单卡进行训练没有这个问题 图片

iMountTai commented 3 months ago

注释掉L549试试

ymourenya commented 3 months ago

你好,还是不行

ymourenya commented 3 months ago

注释掉L549试试

你好,我两张gpu也能训练,但是再往上就不行了,我用的A40

ymourenya commented 3 months ago

注释掉L549试试

还有就是能问一下你们是用的什么GPU进行预训练的吗

iMountTai commented 3 months ago

我们也是A40。L244改为False呢?双卡既然能跑,分布式代码应该是没有问题的。

github-actions[bot] commented 2 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 2 months ago

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