RuntimeError: CUDA out of memory in pytorch while running - DeepTalk - Deep Learning Community

RuntimeError: CUDA out of memory in pytorch while running

post by vyeminen on Apr 12, 2023

Getting this error while running my model

RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 22.06 GiB total capacity; 19.72 GiB already allocated; 8.38 MiB free; 20.41 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

869 views

Related topics

Topic Replies Views Activity
CUDA_ERROR_OUT_OF_MEMORY on tensorbook 4 4.4k Nov 2018
Random runtime CUDA error on Lambda machine 0 998 Jan 2023
CUDA driver initialization failed 0 2.0k Nov 2022
CUDA runtime implicit initialization on GPU:0 0 1.0k Dec 2020
Memory Problems with TensorFlow 2.11 1 658 May 2023