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 ERROR: out of memory #17

Open
ll0ruc opened this issue Sep 21, 2019 · 2 comments
Open

CUDA ERROR: out of memory #17

ll0ruc opened this issue Sep 21, 2019 · 2 comments

Comments

@ll0ruc
Copy link

ll0ruc commented Sep 21, 2019

when I set the batch_size = 32, after the Epoch 1 training, the validiation will CUDA Error: out of memory. My device is T100, GPU[16G]
Aslo, when set batch_size = 16, it will be OK but two slow. Is there some adjustment in your code?

@nramrakhiyani
Copy link

Hi @ScuLilei2014.. Were you able to solve this problem (in case of batch_size = 32)? I am facing the same issue. My device is a 1080Ti with 12G RAM.

@ll0ruc
Copy link
Author

ll0ruc commented Oct 23, 2019

@nramrakhiyani the code occupys computing resources much. 1080ti may can't apply for batch32, So i recommend the batch=16

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