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

我显卡的显存明明是80GB,为什么却提示只有很少? #57

Closed
WangRongsheng opened this issue May 24, 2023 · 2 comments
Closed

Comments

@WangRongsheng
Copy link

CUDA out of memory. Tried to allocate 20.00 MiB (GPU 4; 3.82 GiB total capacity; 2.94 GiB already allocated; 6.62 MiB free; 3.06 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
@Sleepychord
Copy link
Contributor

请检查CUDA_VISIBLE_DEVICES,本项目没有对显存做额外操作,应该是外面环境设置有问题。

@WangRongsheng
Copy link
Author

解决方法:

export CUDA_VISIBLE_DEVICES=0,1,2,3

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

2 participants