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

BF: fix ensemble mcmc run after warmup #1918

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amifalk
Copy link
Contributor

@amifalk amifalk commented Nov 28, 2024

Fixes #1916. The ensemble kernel relies on the batched shape of the rng_key to infer the number of chains but subsets the batched key into a singleton internally. We replicate this behavior in the mcmc.run method when _warmup_state exists by injecting a singleton key into the ensemble state.

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

Successfully merging this pull request may close these issues.

MCMC.run gets error after MCMC.warmup with AIES
1 participant