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 in training #32

Open
Mabozaid0X1 opened this issue Jun 23, 2020 · 1 comment
Open

RuntimeError: CUDA out of memory in training #32

Mabozaid0X1 opened this issue Jun 23, 2020 · 1 comment

Comments

@Mabozaid0X1
Copy link

I follow all steps but when I run python train.py I find this error RuntimeError: CUDA out of memory. Tried to allocate 128.00 MiB (GPU 0; 4.00 GiB total capacity; 2.57 GiB already allocated; 74.77 MiB free; 2.85 GiB reserved in total by PyTorch) (malloc at ..\c10\cuda\CUDACachingAllocator.cpp:289) (no backtrace available)

@KainingYing
Copy link

maybe you should reduce the batchsize or use a bigger gpu memory machine

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