Vivarium Cluster Tools
Vivarium cluster tools is a python package that makes running vivarium simulations at scale on a Slurm cluster easy.
Supported Python versions: 3.11, 3.12, 3.13
You can install vivarium-cluster-tools from PyPI with pip:
pip install vivarium-cluster-tools
or build it from source by cloning the monorepo and installing this package:
git clone https://github.com/ihmeuw/vivarium-suite.git
cd vivarium-suite
pip install libs/cluster-tools
A simple example
If you have a vivarium model specification file defining a particular model, you can use that along side a branches file to launch a run of many simulations at once with variations in the input data, random seed, or with different parameter settings.
psimulate run /path/to/model_specification.yaml /path/to/branches_file.yaml
The simplest branches file defines a count of input data draws and random seeds to launch.
input_draw_count: 25
random_seed_count: 10
This branches file defines a set of simulations for all combinations of 25 input draws and 10 random seeds and so would run, in total, 250 simulations.
You can also define a set of parameter variations to run your model over. Say your original model specification looked something like
plugins:
optional: ...
components:
vivarium.public_health:
population:
- BasePopulation()
disease.models:
- SIS('lower_respiratory_infections')
my_lri_intervention:
components:
- GiveKidsVaccines()
configuration:
population:
population_size: 1000
age_start: 0
age_end: 5
lri_vaccine:
coverage: 0.2
efficacy: 0.8
Defining a simple model of lower respiratory infections and a vaccine intervention. You could then write a branches file that varied over both input data draws and random seeds, but also over different levels of coverage and efficacy for the vaccine. That file would look like
input_draw_count: 25
random_seed_count: 10
branches:
- lri_vaccine:
coverage: [0.0, 0.2, 0.4, 0.8, 1.0]
efficacy: [0.4, 0.6, 0.8]
The branches file would overwrite your original lri_vaccine configuration with each combination of coverage and efficacy in the branches file and launch a simulation. More, it would run each coverage-efficacy pair in the branches for each combination of input draw and random seed to produce 25 * 10 * 5 * 3 = 3750 unique simulations.
Multi-step workflows with dagger
For pipelines that chain several steps together, dagger runs a multi-step Jobmon workflow defined in a YAML configuration file. Each step lists its command and compute resources:
workflow:
name: my_pipeline
project: proj_simscience
queue: all.q
output_directory: /path/to/output
steps:
- name: launch_sims
command: psimulate run /path/to/model_specification.yaml /path/to/branches_file.yaml
resources:
memory_gb: 4
runtime: "01:00:00"
- name: post_process
command: my_post_processing_script /path/to/output
resources:
memory_gb: 8
runtime: "00:30:00"
Launch the workflow with
dagger run -c /path/to/workflow.yaml
If a run fails partway through, resume it from its output directory, skipping steps that already completed, with
dagger restart /path/to/output
To read about more of the available features and get a better understanding of how to correctly write your own branches files,
Check out the docs!
Metadata
Release files for vivarium-cluster-tools 4.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vivarium_cluster_tools-4.8.0.tar.gz | 185.6 kB | With provenance | Details for vivarium_cluster_tools-4.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vivarium_cluster_tools-4.8.0-py3-none-any.whl | Python 3 | none | any | Details for vivarium_cluster_tools-4.8.0-py3-none-any.whl |
Total release size: 284.2 kB
Release files / vivarium_cluster_tools-4.8.0.tar.gz
| Download URL | vivarium_cluster_tools-4.8.0.tar.gz |
|---|---|
| Size | 185.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ce91ccc00f457b2216d65f4be0d593f4da6264317ff8c71a95d89c672951ab3
|
|
BLAKE2b-256 checksum How to use checksums |
2e4952279737d9ee7df475a8a905753627f3209da6393c13600f7c27bec4314a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / vivarium_cluster_tools-4.8.0-py3-none-any.whl
| Download URL | vivarium_cluster_tools-4.8.0-py3-none-any.whl |
|---|---|
| Size | 98.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
650c1c558a0c86067322b6d393bf00a16f56da3ee5fda1f10cc77713a4059209
|
|
BLAKE2b-256 checksum How to use checksums |
b0bd538d5e76cf9dd12e61804db5b59a52ec9cdd5e4b7ee620dfd90bed3d0ac8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for vivarium-cluster-tools 4.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for vivarium_cluster_tools-4.8.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.