Skip to content

Report divergences from JAX samplers #7041

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

Closed
Tracked by #7053
ricardoV94 opened this issue Nov 30, 2023 · 0 comments · Fixed by #7165
Closed
Tracked by #7053

Report divergences from JAX samplers #7041

ricardoV94 opened this issue Nov 30, 2023 · 0 comments · Fixed by #7165

Comments

@ricardoV94
Copy link
Member

ricardoV94 commented Nov 30, 2023

Description

PyMC users are used to getting an immediate report when there are divergences in the standard NUTS sampler. I suggest we print (log) this information when we call the JAX samplers on behalf of the users.

This can be specially puzzling when there are nan in the gradient and the whole sampling finishes in an instant without a single warning, even though there were 100% divergences.

Recent user question: https://discourse.pymc.io/t/sampling-with-blackjax-no-divergence-report/13394

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment