-
Notifications
You must be signed in to change notification settings - Fork 5
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
显存被占满 #28
Comments
您好,如果有多卡,可以尝试使用 Hi, if you have multiple GPUs, please launch scripts with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,我在试运行您的代码的时候,显示我的显存被占满。报错信息如下:
RuntimeError: CUDA out of memory. Tried to allocate 290.00 MiB (GPU 0; 31.75 GiB total capacity; 29.78 GiB already allocated; 113.50 MiB free; 30.27 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
我检索到占满内存的代码是 loss = model(image, caption, alpha=alpha, idx=idx)
想问一下该怎么解决内存占满的问题呢?谢谢!
The text was updated successfully, but these errors were encountered: