Bert-Chinese-Text-Classification-Pytorch icon indicating copy to clipboard operation
Bert-Chinese-Text-Classification-Pytorch copied to clipboard

数据量特别大的时候超出内存

Open xuanxuangg68 opened this issue 4 years ago • 7 comments

我大概有10亿条短文本约42GB,每次加载数据时都会超出内存,batch size和pad size也调过了都不行,请问有大佬有办法解决吗

xuanxuangg68 avatar Jan 13 '21 10:01 xuanxuangg68

花钱买好显卡

lwhere avatar Jan 29 '21 07:01 lwhere

大佬问题解决了吗

AdamFocus avatar Feb 03 '21 09:02 AdamFocus

只能批量传数据啦,得改代码

------------------ 原始邮件 ------------------ 发件人: AdamFocus <[email protected]> 发送时间: 2021年2月3日 17:09 收件人: 649453932/Bert-Chinese-Text-Classification-Pytorch <[email protected]> 抄送: xuanxuangg68 <[email protected]>, Author <[email protected]> 主题: 回复:[649453932/Bert-Chinese-Text-Classification-Pytorch] 数据量特别大的时候超出内存 (#69)

xuanxuangg68 avatar Feb 03 '21 09:02 xuanxuangg68

请问你当时报错是out of memory还是cudnn有问题呢

AdamFocus avatar Feb 03 '21 09:02 AdamFocus

我是oom

------------------ 原始邮件 ------------------ 发件人: AdamFocus <[email protected]> 发送时间: 2021年2月3日 17:12 收件人: 649453932/Bert-Chinese-Text-Classification-Pytorch <[email protected]> 抄送: xuanxuangg68 <[email protected]>, Author <[email protected]> 主题: 回复:[649453932/Bert-Chinese-Text-Classification-Pytorch] 数据量特别大的时候超出内存 (#69)

请问你当时报错是out of memory还是cudnn有问题呢

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

xuanxuangg68 avatar Feb 03 '21 09:02 xuanxuangg68

我八张v100-32这都不行也是没谁了

------------------ 原始邮件 ------------------ 发件人: 上下而求索 <[email protected]> 发送时间: 2021年1月29日 15:08 收件人: 649453932/Bert-Chinese-Text-Classification-Pytorch <[email protected]> 抄送: xuanxuangg68 <[email protected]>, Author <[email protected]> 主题: 回复:[649453932/Bert-Chinese-Text-Classification-Pytorch] 数据量特别大的时候超出内存 (#69)

花钱买好显卡

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

xuanxuangg68 avatar Feb 03 '21 09:02 xuanxuangg68

好的谢谢了,我这边本来还可以跑,然后突然报错cuDNN error: CUDNN_STATUS_NOT_INITIALIZED,也是醉了

AdamFocus avatar Feb 03 '21 09:02 AdamFocus