Bert-Chinese-Text-Classification-Pytorch
Bert-Chinese-Text-Classification-Pytorch copied to clipboard
RuntimeError: CUDA out of memory. Tried to allocate 48.00 MiB (GPU 0; 6.00 GiB total capacity; 4.58 GiB already allocated; 37.63 MiB free; 51.94 MiB cached)2
请问出现这个怎么解决呢
減少batch_size 結案
没显存了,把batch_size降低; 举个例子:batch_size = 128 改成batch_size = 64