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

Torch gradient_checkpoint_scope potential memory leak #1582

Open
albertz opened this issue Jul 12, 2024 · 0 comments
Open

Torch gradient_checkpoint_scope potential memory leak #1582

albertz opened this issue Jul 12, 2024 · 0 comments

Comments

@albertz
Copy link
Member

albertz commented Jul 12, 2024

Training was running fine for 29 subeochs but then crashed with CPU OOM.

While I sometimes see CPU OOMs in my setup, this is usually after longer trainings. So it was a bit unexpected to me to get the CPU OOM so early. I'm not really sure whether this is due to the gradient_checkpoint_scope or sth else, but the usage of gradient_checkpoint_scope is the sole and main difference to my earlier setups. But still it could be some random hiccup. So let's see if I get this more frequently now.

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

1 participant