Skip to main content

Model Ensembler

Documentation Status GitHub issues GitHub closed issues GitHub GitHub forks GitHub forks Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. PyPi GitHub Tag Contributor Covenant

model-ensembleris a tool to configure and automate running model ensembles on High-Performance Computing (HPC) clusters. It reduces the manual configuration of individual ensemble runs, by using a common configuration to individually generate templates for each run.

It also provides pre-and post processing functionality to allow for common tasks to be applied to the ensemble, before and after the individual runs.

model-ensembler is developed to be extendable to various HPC backends,currently supporting SLURM and running locally.

Installation

To install model-ensembler:

python -m venv venv
source venv/bin/activate
pip install model-ensembler

To check it has installed correctly, you can run:

model_ensemble_check [dummy|slurm]

Basic Usage

Under the examples/ folder you will find example configs and templates that we can run on a local machine:

examples/
├── template_job/
│   ├── inputfile.j2
│   ├── pre_run.sh.j2
│   ├── slurm_run.sh.js
│   └── post_run.sh.j2
└── ensemble_config.yml

The command model_ensemble is provided to execute the ensemble.

The --help flag can be used to find out more information:

model_ensemble --help

Its use is as follows:

model_ensemble configuration {slurm, dummy}

Here configuration refers to our configuration file, and {slurm, dummy} are the HPC backend options (where dummy is the options to run locally).

Applying this to our examples/, and running locally:

model_ensemble examples/sanity-check.yml dummy

You are now running a model ensemble!

Generate a Starter Project

You can quickly create a starter project with configuration YAML and templates using the CLI:

model_ensemble_init my-ensemble --config-name config.yaml

This will create a complete project directory structure:

my-ensemble/
├── config.yaml
└── templates/
    ├── slurm_run.sh.j2
    ├── pre_run.sh.j2
    ├── post_run.sh.j2
    └── inputfile.j2

Calling model_ensemble_init without specifying the project and config file name will default to my-ensemble/ and config.yaml.

Documentation

For further usage instructions and an overview of model-ensembler, please refer to the documentation.

Future plans

Current plans are captured now in the github issues. There's nothing in the long term that I'm focusing on for this tool, except to maintain it and see if I can promote the usage a bit more.

This tool was merely to help out with a single support ticket for a weather model run, but the concept had potential and it was easier than deploying something more substantial! If there are better approaches or tools that do something similar, very keen to look at them!

Certainly, things like Airflow and job arrays have similar concepts, but are either more heavyweight/less suitable deployment wise or not abstracted enough for simplifying lives, respectively!!!

Cylc

Compare Cylc to model-ensembler.

Environmental Forecasting

The model-ensembler is part of a wider family of tools for Environmental Forecasting:

  • download-toolbox: A toolbox of downloaders for environmental data.
  • preprocess-toolbox: A toolbox for processing downloaded datasets according to common approaches for environmental data.

MIT LICENSE

© British Antarctic Survey 2021-2025

Metadata

Release files for model-ensembler 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for model-ensembler 0.7.0
File Size Uploaded Provenance Actions
model_ensembler-0.7.0.tar.gz 37.5 kB With provenance Details for model_ensembler-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for model-ensembler 0.7.0
File Interpreter ABI Platform Actions
model_ensembler-0.7.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for model_ensembler-0.7.0-py2.py3-none-any.whl

Total release size: 64.6 kB

Release files / model_ensembler-0.7.0.tar.gz

Download URL model_ensembler-0.7.0.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8abec811ea25f99aba86790a7dfc4bafa9281db54ff8743954bebdd8ff4d6bd5
BLAKE2b-256 checksum
How to use checksums
3490305113f8dcb7a30f47dff29aad9e90cae50fa0e527ba00ab2c95d6159958
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 21, 2026.

Transparency log

Release files / model_ensembler-0.7.0-py2.py3-none-any.whl

Download URL model_ensembler-0.7.0-py2.py3-none-any.whl
Size 27.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4330aa5476ba3f4ba604381aeb4ece1f08b0071d89ffd53c9f3f9bc16cc62b01
BLAKE2b-256 checksum
How to use checksums
fd7acde5979f0a64136f7009a14b2f7d46143b4629dcd6e452b81526b86d78a0
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 21, 2026.

Transparency log

Security for model-ensembler 0.7.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for model_ensembler-0.7.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 21, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page