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

运行 test.py 显存爆了 #6

Open
liyi-ff opened this issue Aug 17, 2023 · 3 comments
Open

运行 test.py 显存爆了 #6

liyi-ff opened this issue Aug 17, 2023 · 3 comments

Comments

@liyi-ff
Copy link

liyi-ff commented Aug 17, 2023

请问苏神的GPU配置是什么? 我两个A100 80G 直接运行python test.py 显存爆了, 也没找出原因

@liyi-ff
Copy link
Author

liyi-ff commented Aug 17, 2023

我把upcast to fp32 注释掉就好了,两个GPU各用了70GB内存。 有一点疑惑就是为什么这里inference需要这么多显存? HuggingFace 上的例子就用了15GB/GPU, 是因为这里处理的文本过长的原因吗?

@bojone
Copy link
Owner

bojone commented Aug 19, 2023

我是在8*A800上测试的。我对torch不了解,坦白说我也很困惑为啥它会消耗这么多显存...

@mmmans
Copy link

mmmans commented Sep 1, 2023

我把upcast to fp32 注释掉就好了,两个GPU各用了70GB内存。 有一点疑惑就是为什么这里inference需要这么多显存? HuggingFace 上的例子就用了15GB/GPU, 是因为这里处理的文本过长的原因吗?

有复现的代码吗

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