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

CUDA memory leak #2586

Closed
awsaf49 opened this issue Mar 24, 2021 · 3 comments
Closed

CUDA memory leak #2586

awsaf49 opened this issue Mar 24, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@awsaf49
Copy link
Contributor

awsaf49 commented Mar 24, 2021

I'm getting CUDA out of memory for training v5 on 1024 size Image with batch_size 4. I have trained v5 on 1024 image_size with batch_size 4 before without any error. But now I'm getting this error.
But the weird fact is while training, GPU usage is around 10GB and it trains perfectly. But while validating it throws the error.
image

@awsaf49 awsaf49 added the bug Something isn't working label Mar 24, 2021
@glenn-jocher
Copy link
Member

@awsaf49 I reviewed the code here, it seems like testing batch sizes were inadvertently affected by PR #2125, I've pushed a fix for this in #2587, though note this should only affect Multi-GPU training memory issues during testing.

@awsaf49
Copy link
Contributor Author

awsaf49 commented Mar 25, 2021

But I was using a single GPU also unfortunately it wasn't solved by this change.

@glenn-jocher
Copy link
Member

glenn-jocher commented Mar 25, 2021

@awsaf49 thanks for the info! If you believe you have a reproducible issue, we suggest you close this issue and raise a new one using the 🐛 Bug Report template, providing screenshots and a minimum reproducible example to help us better understand and diagnose your problem. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants