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. Tried to allocate 1.32 GiB (GPU 0; 7.92 GiB total capacity; 5.68 GiB already allocated; 1.22 GiB free; 192.30 MiB cached) #15

Open
xuyuhui666 opened this issue Oct 14, 2019 · 1 comment

Comments

@xuyuhui666
Copy link

My commands :
python train.py -model_type img -data data/demo -save_model demo-model -gpu_ranks 0 -batch_size 4 -learning_rate 0.1 -word_vec_size 80 -encoder_type brnn -image_channel_size 3

My GPU breaks while running to the 10000 steps of 100000

My batch_size sets 4 ,as 20 defined can not run

@liminghao1630
Copy link
Collaborator

What size is your GPU memory? Try to use a smaller batch size.

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