RistoranteRist / FastFlow

MIT License
19 stars 7 forks source link

RuntimeError: CUDA out of memory. #4

Open iwillflyandfly opened 2 years ago

iwillflyandfly commented 2 years ago

When I run it, it raises RuntimeError: CUDA out of memory. Tried to allocate 74.00 MiB (GPU 0; 11.91 GiB total capacity; 10.79 GiB already allocated; 12.94 MiB free; 11.21 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF I want to know how large the memory of gpu is needed.

JHC521PJJ commented 1 year ago

When I run it, it raises RuntimeError: CUDA out of memory. Tried to allocate 74.00 MiB (GPU 0; 11.91 GiB total capacity; 10.79 GiB already allocated; 12.94 MiB free; 11.21 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF I want to know how large the memory of gpu is needed.

Lower your batch size. my batch size is 4 that can works