Skip to main content

An ai-models plugin to run Deepmind's gencast model

Project description

ai-models-gencast

Upload Python Package

ai-models-gencast is an ai-models plugin to run Google Deepmind's GenCast.

GenCast: Diffusion-based ensemble forecasting for medium-range weather, arXiv preprint: 2312.15796, 2024. https://arxiv.org/abs/2312.15796

GenCast was created by Ilan Price, Alvaro Sanchez-Gonzalez, Ferran Alet, Tom R. Andersson, Andrew El-Kadi, Dominic Masters, Timo Ewalds, Jacklynn Stott, Shakir Mohamed, Peter Battaglia, Remi Lam, Matthew Willson

The model weights are made available for use under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). You may obtain a copy of the License at: https://creativecommons.org/licenses/by-nc-sa/4.0/.

Installation

To install the package, run:

pip install ai-models-gencast

This will install the package and most of its dependencies.

Then to install gencast dependencies (and Jax on GPU):

[!CAUTION] GenCast requires significant GPU & Memory Resources. See here

GenCast and Jax

GenCast depends on Jax, which needs special installation instructions for your specific hardware.

Please see the installation guide to follow the correct instructions.

We have prepared two requirements.txt you can use. A CPU and a GPU version:

For the preferred GPU usage:

pip install -r requirements-gpu.txt -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

For the slower CPU usage:

pip install -r requirements.txt

Specifying ensemble numbers

There are three ways to control the ensemble members and behaviour of the GenCast ai-model.

Description Args Result
type=fc, single member --num-ensemble-members 0 Will create a grib file of type=fc
N members per process with ID = range(num-ensemble-members) --num-ensemble-members $N>1 N ensemble members created all in same process, with id from the range
N members per process with controlled ID --num-ensemble-members $N>1 --member-number 1,2...N N ensemble members created all in same process, with id controlled from member-number

With these approaches it is possible to create either a single forecast, many ensembles in a single process, or many ensembles over many processes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_models_gencast-0.0.5.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_models_gencast-0.0.5-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file ai_models_gencast-0.0.5.tar.gz.

File metadata

  • Download URL: ai_models_gencast-0.0.5.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for ai_models_gencast-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3f82ab846ca5300afaa3627d9f3c930123f944e7b361afede1d420e8f8412a65
MD5 b211698726d2ed5793be9162810329af
BLAKE2b-256 a7bfb7bdb4db5a2383b9bb9ba0ade47b7f5352f36973b553f2e9b4e0480ebb3f

See more details on using hashes here.

File details

Details for the file ai_models_gencast-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_models_gencast-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d5a6b97720de14f3509993a3e8886f6117fba46c7e970412e41b616332746ef0
MD5 0393cc14fba6a8e706cba7bfb6fb7d24
BLAKE2b-256 22958f4689f45ae9b197288cc476fa4fbc072a38bc637ed541fca19245460fed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page