Skip to content
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

CUDA out of memory #45

Open
justinzhang528 opened this issue Feb 20, 2023 · 5 comments
Open

CUDA out of memory #45

justinzhang528 opened this issue Feb 20, 2023 · 5 comments

Comments

@justinzhang528
Copy link

進行訓練的時候出現=》RuntimeError: CUDA out of memory. Tried to allocate 128.00 MiB (GPU 0; 10.92 GiB total capacity; 10.17 GiB already allocated; 99.81 MiB free; 10.20 GiB reserved in total by PyTorch)
我的GPU配置:
NVIDIA GeForce GTX 1080 Ti 11264 MB
我有嘗試把batch_sizej降低至1,還是未能解決,不知是否還有其他方法可以解決問題

@karelbecerra
Copy link

first try with batch size 1, if it doesn't work try reducing dataset size

@nchzzDFTBA
Copy link

现在解决了吗

@chjwhere
Copy link

你好,请问你解决了吗

@justinzhang528
Copy link
Author

沒有解決喔,後來選擇放棄,直接用其它模型

@chjwhere
Copy link

chjwhere commented Feb 3, 2024

你好,我也遇到相关问题无法解决。请问你后来使用的是什么模型,能否给个参考。谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants