로딩
요청 처리 중입니다...

[PyTorch] cuda out of memory 에러 관련

 [PyTorch] cuda out of memory 에러 관련

CUDA는 엔비디아가 개발해오고 있으며 이 아키텍처를 사용하려면 엔비디아 GPU와 특별한 스트림 처리 드라이버가 필요하다 -위키백과 cuda out of memory는 사용하는 메모리 보다 더 많은 메모리를 할당하면서 발생하는 에러입니다. 메모리를 줄이려면 배치를 줄이거나 이것도 안되면 네트워크 크기를 줄여야 합니다.

대표 해결법: 1. batch size 줄이기 https://github.com/flairNLP/flair/issues/685#issuecomment-524605238 RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 15.90 GiB total capacity; 14.66 GiB already allocated; .... · Issue #685 · flairNLP/flair Getting CUDA out of memory errors for following: ------------------...