RuntimeError: CUDA out of memory. Tried to allocate 2.15 GiB (GPU 0; 12.00 GiB total capacity; 520.39 MiB already allocated; 8.51 GiB free; 1.30 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
只是为啥了,8.5G空闲GPU用不了