Open xiesl97 opened 3 days ago
cc @amifalk
What's going is that the rng_key is split by chain when num_chains > 1 https://github.com/pyro-ppl/numpyro/blob/f87f40ea7c30e2a5e9143a42fd57060680011638/numpyro/infer/mcmc.py#L655-L656
and then the rng_key is injected into the state here
, but methods that inherit from EnsembleSampler expect a singleton rng_key. So we should be able to fix this by checking that sampler.is_ensemble_kernel
is false before splitting the key.
Hi, I get an error when I
MCMC.run
afterwarmup
withAIES
. Here is the exampleThe error
It will get the same error if use
ESS