-
Notifications
You must be signed in to change notification settings - Fork 23
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
Compiling local sampler is slow #30
Comments
@dfm mentioned using scan to replace fori_loop should help reducing the compilation |
Did some more testing on MALA.py compilation time. I think the main compilation time overhead comes from Jax compiling derivative of the log likelihood multiple times. As an example, here is the mala kernel for one proposal.
I tried this example with a gravitational wave likelihood, where one compilation of d_logpdf takes around 70s. Another possibility is Jax unfold the entire |
Compiling the sampler for complicated likelihood function seems pretty slow (Testing on a gravitational wave example now.)
I think this is related to defining the main loop inside the sampler.
Experimenting with abstracting that out for performance
The text was updated successfully, but these errors were encountered: