diff --git a/sbi/inference/posteriors/mcmc_posterior.py b/sbi/inference/posteriors/mcmc_posterior.py index f54e94b86..ecee1682b 100644 --- a/sbi/inference/posteriors/mcmc_posterior.py +++ b/sbi/inference/posteriors/mcmc_posterior.py @@ -399,7 +399,7 @@ def _pyro_mcmc( warmup_steps=warmup_steps, initial_params={"": initial_params}, num_chains=num_chains, - mp_context="fork", + mp_context="spawn", disable_progbar=not show_progress_bars, transforms={}, )