Repository navigation
Allow configuring the n_processes for parallel inference - #198
Open
ayush9pandey wants to merge 15 commits into
Open
ayush9pandey wants to merge 15 commits into
ayush9pandey wants to merge 15 commits into
Conversation
This reverts commit 19f3476.
…paralle-inference-fixes
murrayrm
requested changes
Sep 28, 2026
murrayrm
left a comment
Contributor
There was a problem hiding this comment.
Found a few things that I didn't understand. Need to rebase on main to just show the changes for multiprocessing.
| multiprocessing is not used. | ||
| n_processes : int, optional | ||
| Number of worker processes used when `parallel=True`. If None, | ||
| `multiprocessing.Pool` uses its default process count. Ignored when |
Contributor
There was a problem hiding this comment.
Default process count for default processor count?
| self.hmax, | ||
| self.parallel | ||
| self.parallel, | ||
| self.custom_joint_prior |
Contributor
There was a problem hiding this comment.
If you make any changes to the code, worth rebasing on the latest main to get rid of these.
Comment on lines
+249
to
+250
| def test_parallel_inference_uses_requested_process_count( | ||
| model_setup, tmp_path, monkeypatch): |
Contributor
There was a problem hiding this comment.
I'm probably missing something simple here, but what sets the values of the parameters?
| nsteps = 1, | ||
| init_seed = 1e-4, | ||
| parallel = True, | ||
| n_processes = 1, |
Contributor
There was a problem hiding this comment.
Should this be hardcoded at 1?
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an optional
n_processesargument for parallel MCMC inference.When
parallel=True, users may specify the number of worker processescreated by
multiprocessing.Pool: