OutOfMemoryError

#19
by seyedpouya - opened

Hi
When I run the code, I receive "OutOfMemoryError: CUDA out of memory. Tried to allocate 1002.00 MiB. GPU 0 has a total capacity of 14.75 GiB of which 667.06 MiB is free. Process 20267 has 14.09 GiB memory in use. Of the allocated memory 13.87 GiB is allocated by PyTorch, and 129.52 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation."

Does anyone know how I can solve it? Where should I write and add "PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True" ?

Sign up or log in to comment