-
Notifications
You must be signed in to change notification settings - Fork 140
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
ERROR: Out of GPU memory #174
Comments
I could resolve via reducing the memory buffer size to 40000 samples as suggested by @EngrStudent in #116 (comment). This raises the question: do you still have plans to add an option to store memory buffer samples on disk? |
A large memory buffer should normally not cause GPU out-of-memory errors. Therefore, I see two possibilities:
|
A good compromise for my game looks like Re: it is worth having a look (whether AlphaZero.jl is doing something suboptimal when batching training samples, making memory consumption depend on the total number of samples): how can I achieve this? |
Unfortunately my agent seemed to stop improving despite training over more than 50 iterations, and I suspect it is because of a limited memory buffer size (80000) which prevents the MCTS from retaining enough experience, while the NN doesn't exactly compensate through "intuition". |
Once again, I do not think storing samples on disk is going to solve any problem here since you are encountering GPU OOMs. Implementing this is also not a priority right now. If you really want this feature though, it should not be too hard to implement and this may even be a nice opportunity for a contribution. :-) |
Thank you, I got that this shouldn't solve my problem. Maybe I would rather have a look whether AlphaZero.jl is doing something suboptimal when batching training samples, making memory consumption depend on the total number of samples -do you have an intuition which would help me start? |
Can you try and run some training where you restart Julia after each iteration? |
Will do and report here. |
When the problem arises, it appears even after a fresh restart of Julia. |
The 10th training iteration for my game crashes with the following error.
This happens not only on my PC with a 16GB RTX3080 Laptop, but also on a cloud VM with a 40GB A100 GPU.
Could be related to #1 (comment)?
I am not quite sure how to work around this one.
The text was updated successfully, but these errors were encountered: