-
Notifications
You must be signed in to change notification settings - Fork 72
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
When I use GPU to train the model, I will have problem 'CUDA out of memory...' #7
Comments
me too |
I have solved this problem. I remember that there are some code written like to be [to(device='cpu')] |
thank you ,i will try. i always think my gpu is weak |
Nah, the problem is in validation method! In training 'batch_size' is used to prevent memory overload, but when validating it passes in the whole validation set. This means memory gets blown up. |
do you know how to fix it, thx |
Yes, but I don’t have time to do it for you. The solution is to rewrite the validation to also work with batches. The training is already done this way, so that is a nice example for this. |
I change the dataset split (0.8/0.1/0.1) and solve this problem. |
Is there someone who also has this problem?
The text was updated successfully, but these errors were encountered: