diff --git a/pymc3/smc/sample_smc.py b/pymc3/smc/sample_smc.py index 7b47f79da92..a0259ea9935 100644 --- a/pymc3/smc/sample_smc.py +++ b/pymc3/smc/sample_smc.py @@ -193,8 +193,8 @@ def sample_smc( if chains is None: chains = max(2, cores) - elif chains == 1: - cores = 1 + else: + cores = min(chains, cores) _log.info( f"Sampling {chains} chain{'s' if chains > 1 else ''} "