Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.numpyro: reduce number of pytest parallel workers to reduce RAM usage #372111

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/numpyro/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ buildPythonPackage rec {
pythonImportsCheck = [ "numpyro" ];

pytestFlagsArray = [
# Tests memory consumption grows significantly with the number of parallel processes (reaches ~200GB with 80 jobs)
"--maxprocesses=8"

# A few tests fail with:
# UserWarning: There are not enough devices to run parallel chains: expected 2 but got 1.
# Chains will be drawn sequentially. If you are running MCMC in CPU, consider using `numpyro.set_host_device_count(2)` at the beginning of your program.
Expand Down