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

Memory leak #183

Open
amjltc295 opened this issue Nov 30, 2018 · 2 comments
Open

Memory leak #183

amjltc295 opened this issue Nov 30, 2018 · 2 comments

Comments

@amjltc295
Copy link

I notice that there seems to be a memory leak issue during training.

On my K80, I set the batch size to 24 and the GPU memory consumption is about 4000MB. However, as the training process goes on, the GPU memory consumptions increases and a RuntimeError: CUDA error: out of memory is raised about 30 minutes later. If I set the batch size to 16 the error would not take place but the memory still increase.

@YupengGao
Copy link

@amjltc295 I have the same issue RuntimeError: CUDA error: out of memory. Have you solve the problem yet?
or do you have any idea how to debug this kind of error?

@amjltc295
Copy link
Author

@YupengGao No, I just keep the batch size small. I wish someone could give me a clue.
For debugging, https://discuss.pytorch.org/t/how-to-debug-causes-of-gpu-memory-leaks/6741/3 might help

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