MockingBird icon indicating copy to clipboard operation
MockingBird copied to clipboard

小白求教 训练模型 刚开始正常 两三秒之后就报错RuntimeError: CUDA out of memory.

Open wangxiang125488 opened this issue 3 years ago • 3 comments

小白求教 训练模型 刚开始正常 两三秒之后就报错

  • RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 2.00 GiB total capacity; 1.02 GiB already allocated; 3.96 MiB free; 1.06 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

然后便自行终止 求大神帮忙看看 怎样解决

wangxiang125488 avatar Jan 14 '22 08:01 wangxiang125488

显卡显存太小了。这个至少要4GB差不多

HuaHuaOfficial avatar Jan 14 '22 09:01 HuaHuaOfficial

我是4GB 的显存为何也报同样的错?

HardToRegister avatar Dec 11 '22 15:12 HardToRegister

最低要求4g,有方法改,但建议提高显存更方便

Lafayette @.***> 于2022年12月11日周日 23:28写道:

我是4GB 的显存为何也报同样的错?

— Reply to this email directly, view it on GitHub https://github.com/babysor/MockingBird/issues/340#issuecomment-1345583201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ6O4WWYLA2M4DPWDD2YKGTWMXXJ7ANCNFSM5L6EJW6A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- jackchen

beyondchenlin avatar Dec 12 '22 08:12 beyondchenlin