You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I get the following warning : /home/mola/miniconda3/envs/myenv/lib/python3.10/site-packages/pyro/infer/mcmc/api.py:497: UserWarning: num_chains=32 is more than available_cpu=31. Chains will be drawn sequentially.
However, if I choose 'slice_np' for the method, I get the proper behavior, i.e. the chains running in parallel with 32 workers.
Am I doing something wrong or is this normal ?
Thank you for the help.
The text was updated successfully, but these errors were encountered:
The issue here seems to be that Pyro internally reserves one CPU for the main process and thus only allows for n_cpus - 1 chains to run in parallel, as you can see here. This is why in MCMCPosterior._pyro_mcmc the number of chains is set to one less than the cpu count also here, if num_chains=None. So, for Pyro samplers, I think you would need to reduce the chains you request or increase the CPUs you allot for your program.
Hi,
I am running the following lines of code on the computing cluster I am using fro my work :
and I am launching the code using SLURM with the following bash file :
And I get the following warning :
/home/mola/miniconda3/envs/myenv/lib/python3.10/site-packages/pyro/infer/mcmc/api.py:497: UserWarning: num_chains=32 is more than available_cpu=31. Chains will be drawn sequentially.
However, if I choose 'slice_np' for the method, I get the proper behavior, i.e. the chains running in parallel with 32 workers.
Am I doing something wrong or is this normal ?
Thank you for the help.
The text was updated successfully, but these errors were encountered: