RuntimeError: CUDA out of memory. Tried to allocate 1000.00 MiB (GPU 1; 23.69 GiB total capacity; 20.28 GiB already allocated; 909.75 MiB free; 20.85 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

아! 메모리 에러! 제발! 


리눅스에서 메모리 확인하는 방법

터미널에 free 명령어를 친다.

 

free

 

다음은 G로 표현되는 명령어다.

free -h

 

리눅스에서 GPU 확인하는 방법

watch nvidia-smi

 

+ Recent posts