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

4张p40的显卡,装载模型报错CUDA out of memory,但是每张卡24G呀,这个该怎么办 #56

Open
GzRichChen opened this issue Sep 17, 2023 · 1 comment

Comments

@GzRichChen
Copy link

:torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 50.00 MiB (GPU 0; 22.38 GiB total capacity; 22.18 GiB already allocated; 16.81 MiB free; 22.20 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

@zozoteacher
Copy link

请问下,你是怎么放到4张显卡上的呢

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