Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好关于运行代码加载模型到GPU上时直接报显存溢出的问题 #31

Open
625033011 opened this issue May 27, 2022 · 7 comments

Comments

@625033011
Copy link

您好,我使用的8G显存显卡,batchsize设置成4,最大长度16依然跑不起来,代码跑到“model.to(device)”这个地方就报错显存溢出了,请问下作者您跑这个代码的硬件配置,显存需要多大才能跑起来

@625033011 625033011 changed the title 您好CUDA error: out of memory 您好关于运行代码加载模型到GPU上时直接报显存溢出的问题 May 27, 2022
@Fino2020
Copy link

12起步吧应该,我自己的电脑8G也跑不起来,用的服务器跑的

@liucongg
Copy link
Owner

我2060s-8G卡就能跑呀

@Fino2020
Copy link

Fino2020 commented Jun 16, 2022 via email

@liucongg
Copy link
Owner

按道理不应该,确认一下生成长度和bs呢

@Fino2020
Copy link

Fino2020 commented Jun 16, 2022 via email

@liucongg
Copy link
Owner

你可以用我给的预训练模型,最大长度512,能跑

@Fino2020
Copy link

Fino2020 commented Jun 16, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants