Closed leonunix closed 3 months ago
这有多个原因,比如CPU和GPU之间的数据通信瓶颈、模型本身规模小不足以充分利用显卡的能力等,如果您有代码方面的改进和完善,欢迎提出讨论。
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.
Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.
提交前必须检查以下项目
问题类型
模型训练与精调
基础模型
Chinese-LLaMA-2 (7B/13B)
操作系统
Linux
详细描述问题
你好,开发组,我想请教一个问题。如何才能在单机上把多GPU撑满。情况是这样的,我现在有一台机器上有8块GPU,用你们的脚本跑pt,但是我发现每个gpu的利用率有点低迷,这个需要什么特别的配置吗? per_device_train_batch_size我设置的是7,超过这个数会报显存不足。
依赖情况(代码类问题务必提供)
运行日志或截图