-
Notifications
You must be signed in to change notification settings - Fork 430
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
JAX implementation of emcee #499
Comments
Very cool! Thanks for sharing. |
@amifalk Do you have some idea of the speedup ? |
It depends on how many chains you run, whether or not you have a gpu, the amount of native python code in your model, etc., but it can often be a few orders of magnitude faster. |
@amifalk Is the functionality of emcee to calculate and store additional data for each step supported? In emcee you can return a tuple in the |
By the way, the Pyro forum is a great place to ask these kinds of questions. |
Greetings!
I've ported a subset of emcee functionality to the NumPyro project under the sampler name AIES.
(For the uninitiated, NumPyro uses JAX, a library with an interface to numpy and additional features like JIT compiling and GPU support, in the backend. The upshot is that if you're using currently using emcee, switching to NumPyro may give you a dramatic inference speedup!)
I've tried my best to match the existing API. You can use either the NumPyro model specification language
or provide your own potential function.
Hope this is helpful to some folks!
The text was updated successfully, but these errors were encountered: