草庐IT

0utofMemoryError

全部标签

Ubuntu下跑Aplaca报错:torch.cuda.0utofMemoryError: CUDA out of memory.解决办法(查看CUDA占用情况&清除GPU缓存)

缓存不够!!!!并非内存容量不够错误提示:torch.cuda.0utofMemoryError:CUDAoutofmemory.Triedtoallocate2.00MiB(PU0;23.69GiBtotalcapacity;237BiBalreadyallocated;18.38MiBfre;2.50GiBreservedintotalbyPyTorch)Ifreservedmemoryis>>allocatedmemorytrysettingmax_split_size_mbtoavoidfragmentation.SeedocumentationforMemoryManagementa