level 6
最终Anubis
楼主
爆显存了,提示如下
CUDA out of memory. Tried to allocate 10.00 MiB. GPU 0 has a total capacity of 16.00 GiB of which 8.87 GiB is free. Of the allocated memory 5.88 GiB is allocated by PyTorch, and 72.50 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. See documentation for Memory Management
显卡4060ti16g
其中提到了,16G显存,其中8.87G是空闲的?
需要去哪里设置开启全部显存呢?
2024年04月19日 01点04分
1
CUDA out of memory. Tried to allocate 10.00 MiB. GPU 0 has a total capacity of 16.00 GiB of which 8.87 GiB is free. Of the allocated memory 5.88 GiB is allocated by PyTorch, and 72.50 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. See documentation for Memory Management
显卡4060ti16g
其中提到了,16G显存,其中8.87G是空闲的?
需要去哪里设置开启全部显存呢?