RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.79 GiB total capacity; 2.48 GiB already allocated; 25.50 MiB free; 2.52 GiB reserved in total by PyTorch)
I tried to lower the batch_size to 1 in train_config but i still have not enough memory.
is there any parameter to change so it becomes less memory hungry?
what do you suggest?
RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.79 GiB total capacity; 2.48 GiB already allocated; 25.50 MiB free; 2.52 GiB reserved in total by PyTorch)
I tried to lower the batch_size to 1 in train_config but i still have not enough memory. is there any parameter to change so it becomes less memory hungry? what do you suggest?