New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
训练模型时这个问题怎么办??疑似N卡内存不够。 CUDA out of memory. Tried to allocate 122.00 MiB (GPU 0; 4.00 GiB total capacity; 3.15 GiB already allocated; 0 bytes free; 3.45 GiB reserved in total by PyTorch #669
Comments
訓練模型顯存不足 //調整前 |
差不多 |
感谢指导,已成功开始训练了 |
我已经把batch_size调整到4了,还是出现同样的问题,唉。。。 |
你是不是没装cuda?我没装之前也是这样,或者更换一下pytorch 版本 |
Summary[问题简述(一句话)]
训练模型时这个问题怎么办??疑似N卡内存不够。
CUDA out of memory. Tried to allocate 122.00 MiB (GPU 0; 4.00 GiB total capacity; 3.15 GiB already allocated; 0 bytes free; 3.45 GiB reserved in total by PyTorch
Env & To Reproduce[复现与环境]
python3.9、NVIDIA GeForce GTX 1050Ti(4GB)
Screenshots[截图(如有)]
The text was updated successfully, but these errors were encountered: