Nutpie is a Python library designed to sample Stan or PyMC models efficiently, leveraging JAX for high-performance computation. It provides an alternative MCMC sampler for probabilistic programming models, aiming for speed and robustness. The current version is 0.16.8, and it maintains a frequent release cadence, often with minor bug fixes, dependency updates, and feature enhancements.
pip install nutpieVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to define a basic PyMC model and then use `nutpie.sample()` to perform MCMC sampling. The results are returned in an `arviz.InferenceData` object.
Upgrade Nutpie to version 0.16.7 or newer: `pip install --upgrade nutpie`
Upgrade Nutpie to version 0.16.5 or newer: `pip install --upgrade nutpie`
Upgrade Nutpie to version 0.16.3 or newer to ensure correct `mindepth` behavior: `pip install --upgrade nutpie`
If you rely on the previous behavior without step size jitter, you can explicitly disable it by passing appropriate arguments to `nutpie.sample()` (e.g., `init_strategy='advi_map'` or setting `step_size_jitter` to 0 if an option is exposed, refer to docs).