-
Notifications
You must be signed in to change notification settings - Fork 249
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
RuntimeError: CUDA out of memory. Tried to allocate 2.81 GiB #180
Comments
I also get the same error, running both via Docker and when running directly. |
I tested on three different video cards:
|
i use Rtx3060s(12G) ,but the same error still reported... |
I tested on the Rtx2060 (6G) video card again, and the modified parameter is: width_ After height=[256256], it can run, and the problem of video memory overflow will not be reported. |
Thank u, I closed some processes that occupied the GPU, thus I succeeded! |
I'm aware that previous issues have been raised regarding
RuntimeError: CUDA out of memory
, but is there a way to avoid this error by making the code run for longer time and not use as much memory? Can the PYTORCH_CUDA_ALLOC_CONF be used on discoart? If so, how?GPU 0; 15.90 GiB total capacity; 9.86 GiB already allocated; 1.41 GiB free; 13.59 GiB reserved in total by PyTorch
0.12.0
The text was updated successfully, but these errors were encountered: