RuntimeError: CUDA out of memory. Tried to allocate 2.00 MiB (GPU 0; 14.76 GiB total capacity; 10.82 GiB already allocated; 3.75 MiB free; 13.72 GiB reserved in total by PyTorch) site:stackoverflow.com code example
Example: RuntimeError: CUDA out of memory.
Your GPU is out of memory,
reduce your batch size until your code runs without this error
# also, find any processes using gpu and kill them with:
nvidia-smi
kill -9 [pid]