ai-models-gencast
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):
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.
Metadata
Release files for ai-models-gencast 0.0.6
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 |
|---|---|---|---|---|
| ai_models_gencast-0.0.6.tar.gz | 24.4 kB | Without provenance | Details for ai_models_gencast-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_models_gencast-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for ai_models_gencast-0.0.6-py3-none-any.whl |
Total release size: 45.7 kB
Release files / ai_models_gencast-0.0.6.tar.gz
| Download URL | ai_models_gencast-0.0.6.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b80b349c94e316400d5f9acd2a988e0b6f6beced8f748aa7b38aaf0cedd82c2a
|
|
BLAKE2b-256 checksum How to use checksums |
4bb83f90fc678fb3472fc90a9783a1ebe56458d85c99442d6b048d31280040a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / ai_models_gencast-0.0.6-py3-none-any.whl
| Download URL | ai_models_gencast-0.0.6-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9198b0ef544e3d7783ab1953a7bf642c231fb6a8ff179bbb19bd1ee9db080a0f
|
|
BLAKE2b-256 checksum How to use checksums |
033ea076c0090fbdb484694b57f5b0120d87bc73f8023176a268a37cac70dc5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for ai-models-gencast 0.0.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.