Skip to content
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

Doc: add Stan PPL integration? #718

Open
gil2rok opened this issue Aug 13, 2024 · 3 comments
Open

Doc: add Stan PPL integration? #718

gil2rok opened this issue Aug 13, 2024 · 3 comments

Comments

@gil2rok
Copy link
Contributor

gil2rok commented Aug 13, 2024

Add Stan PPL integration to use Stan models with Blackjax inference algorithms

With the BridgeStan library, we can efficiently access log density and gradient evaluations of Stan models. Following the Blackjax documentation, we can then use BridgeStan with custom gradients and JAX callbacks. Note that Stan, not JAX, would be computing gradients that is then used by Blackjax algorithms.

For a somewhat complete example see my small example repo and another example here. Would be open to attempting a PR if there is interest.

@junpenglao
Copy link
Member

Oh that's a great idea - +1 to appending a more complicated example to custom gradients.

@ciguaran
Copy link
Contributor

Looking forward to seeing this!

@reubenharry
Copy link
Contributor

I'd also be interested in using this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants