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

RuntimeError: CUDA out of memory. #12

Open
gohguodong opened this issue Nov 6, 2020 · 1 comment
Open

RuntimeError: CUDA out of memory. #12

gohguodong opened this issue Nov 6, 2020 · 1 comment

Comments

@gohguodong
Copy link

I followed the previous thread on this runtime error: CUDA out of memory issue. i tried reducing the batch_size to 1, to it still can't run the code. may i know what could the problem be? what's the required memory size in order to run it at the default batch size?

RuntimeError: CUDA out of memory. Tried to allocate 214.00 MiB (GPU 0; 2.00 GiB total capacity; 353.43 MiB already allocated; 108.59 MiB free; 410.00 MiB reserved in total by PyTorch)

@koren88i
Copy link

Buy better graphics card.
Or reduce batch size to 6 or even 4. Worked for me.

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