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

batchsize开的过大后,显存不够程序中断,显存不会自动释放问题 #23

Closed
ThreeStones1029 opened this issue Aug 4, 2023 · 2 comments

Comments

@ThreeStones1029
Copy link

你好,我是刚刚开始用paddle的新人,在尝试过大的batchsize后,程序被打断,这时显存不会自动释放,需要我手动释放,请问paddle有没有好的方法在batchsize开的过大后,程序中断可以自动释放显存。

@lyuwenyu
Copy link
Owner

lyuwenyu commented Aug 4, 2023

好像没有太好的办法,可以在启动的脚本里加上下面一句 😬

ps aux | grep "tools/train.py" | awk '{print $2}' | xargs kill -9

@ThreeStones1029
Copy link
Author

好像没有太好的办法,可以在启动的脚本里加上下面一句 😬

ps aux | grep "tools/train.py" | awk '{print $2}' | xargs kill -9
好的,非常感谢

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

2 participants