-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: joblib not saturating CPU during multiprocessing (#1188)
* refactoring simulate_for_sbi * refactored simulate_for_sbi, introduced new wrapper wrap_as_joblib_efficient_simulator * Finished refactoring simulate_for_sbi and wrap_as_joblib_efficient_simulator. The wrapping/casting currently increases the runtime roughly three times, but the code cannot be breaking for now. * working on user_input_checks * added temporary benchmark folder * adding process_simulator / process_prior to tests * added process_simulator and process_prior to some of the tests * finished adding process_simulator and process_prior to\ndefault git tests (pytest -n auto -m "not slow\nand not gpu") * Changes following PR 1188: removed `if-else` for `show_progress_bar` in `simulate_for_sbi`, improved comments, removed `benchmark` folder * restructured simulation_batch_size logic in simulate_for_sbi according to #1188 discussion * Bypassed `process_simulator` and `simulate_for_sbi` in tests/inference_on_device_test.py #1188 Co-authored-by: Jan <[email protected]> * adjusted imports and formatting * changed `|` to `Union` in `inference/base.py::simulate_for_sbi` --------- Co-authored-by: Janko Petkovic <[email protected]> Co-authored-by: Jan <[email protected]>
- Loading branch information
1 parent
ba19688
commit 83e122a
Showing
15 changed files
with
153 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.