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

Issue with Non-stop increasing GPU memory consumption #24

Open
eddiegaoo opened this issue Apr 18, 2023 · 0 comments
Open

Issue with Non-stop increasing GPU memory consumption #24

eddiegaoo opened this issue Apr 18, 2023 · 0 comments

Comments

@eddiegaoo
Copy link

I found that training TGAT model (default parameter setting in config/TGAT.yml) would incur a non-stop increasing GPU memory consumption. But for the other models, such issue does not exist.

I assume it might be related with Python garbage collection mechanism, so I add torch.cuda.empty_cache() at the end of every training batch. Now such issue is solved, but I find the empty_cache operation is somewhat time-consuming.

I wonder if you notice the same issue and how it can be solved in a better way.

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