-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 in ADVI #3566
Comments
np.ma.array observed will make pymc3 model add a free variable to the model with the length equal to the number of masked elements, and it will likely cause the memory leak. |
Increasing obj_n_mc also cause memory consumption, you have obj_n_mc times more calculations for gradient. |
Please refer to the edits in the original issue. The memory leak happens gradually with the fitting steps. After filling up most of the RAM, it comfortably fills up the swapspace without slowing down. I also tested it in ubuntu linux (pymc3 installed via pip) on GCP. |
I can have a look after weekends
…On Fri, Jul 26, 2019, 13:45 Sajaysurya Ganesh ***@***.***> wrote:
Please refer to the edits in the original issue. The memory leak happens
gradually with the fitting steps. After filling up most of the RAM, it
comfortably fills up the swapspace without slowing down. I also tested it
in ubuntu linux (pymc3 installed via pip) on GCP.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3566>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACZJX3TG722V7SBVLEEJW53QBLIT3ANCNFSM4IGZBQPQ>
.
|
Closing due to lack of activity |
Is it solved? I also observed memory leakage for large dataset (10m params to estimate) |
This is a very old issue. Please open a new one if you are seeing this now -- are you sure its leakage and not simply exhausting your memory? That's a lot of parameters! |
Memory leak while using ADVI with np.ma.array for observed values
A minimal, self-contained, and reproducible example.
Warnings while defining the model
Additional information
There is no memory leak if either one of the following happens
Memory leak while using ADVI without np.ma.array for observed values
A minimal, self-contained, and reproducible example.
Additional information
Again, there is no memory leak if obj_n_mc=1. But it leaks (approximately) to the same extent when obj_n_mc=2 and when obj_n_mc=25.
Versions and main components
The text was updated successfully, but these errors were encountered: