Downloads · 30 days
124
3% of all-time downloads
ecmwf/aifs-single-0.2.1
aifs-single-0.2.1 is a graph machine learning model from ecmwf. Use it for the graph machine learning task on the model card, and read the license before you ship it in a product. It is set up for anemoi. The card lists the license as cc-by-4.0.
Here, we introduce the Artificial Intelligence Forecasting System (AIFS), a data driven forecast model developed by the European Centre for Medium-Range Weather Forecasts (ECMWF).
Downloads · 30 days
124
3% of all-time downloads
All-time downloads
4.8K
Public
Repo size
2.4 GB
Likes
26
Public
Click a slice to open those files.
.ckpt1 GB · 100%
From the Hugging Face model README
Here, we introduce the Artificial Intelligence Forecasting System (AIFS), a data driven forecast model developed by the European Centre for Medium-Range Weather Forecasts (ECMWF).
<div style="display: flex; justify-content: center;"> <img src="assets/aifs_10days.gif" alt="AIFS 10 days Forecast" style="width: 50%;"/> </div>We show that AIFS produces highly skilled forecasts for upper-air variables, surface weather parameters and tropical cyclone tracks. AIFS is run four times daily alongside ECMWF’s physics-based NWP model and forecasts are available to the public under ECMWF’s open data policy. (https://www.ecmwf.int/en/forecasts/datasets/open-data)
AIFS is based on a graph neural network (GNN) encoder and decoder, and a sliding window transformer processor, and is trained on ECMWF’s ERA5 re-analysis and ECMWF’s operational numerical weather prediction (NWP) analyses.
<div style="display: flex; justify-content: center;"> <img src="assets/encoder_graph.jpeg" alt="Encoder graph" style="width: 50%;"/> <img src="assets/decoder_graph.jpeg" alt="Decoder graph" style="width: 50%;"/> </div>It has a flexible and modular design and supports several levels of parallelism to enable training on high resolution input data. AIFS forecast skill is assessed by comparing its forecasts to NWP analyses and direct observational data.
To generate a new forecast using AIFS, you can use anemoi-inference. In the following notebook, a step-by-step workflow is specified to run the AIFS using the HuggingFace model:
🚨 Note we train AIFS using flash_attention (https://github.com/Dao-AILab/flash-attention).
The use of 'Flash Attention' package also imposes certain requirements in terms of software and hardware. Those can be found under #Installation and Features in https://github.com/Dao-AILab/flash-attention
🚨 Note the aifs_single_v0.2.1.ckpt checkpoint just contains the model’s weights.
That file does not contain any information about the optimizer states, lr-scheduler states, etc.
AIFS is trained to produce 6-hour forecasts. It receives as input a representation of the atmospheric states at \(t_{−6h}\), \(t_{0}\), and then forecasts the state at time \(t_{+6h}\).
<div style="display: flex; justify-content: center;"> <img src="assets/aifs_diagram.png" alt="AIFS 2m Temperature" style="width: 80%;"/> </div>The full list of input and output fields is shown below:
| Field | Level type | Input/Output |
|---|---|---|
| Geopotential, horizontal and vertical wind components, specific humidity, temperature | Pressure level: 50,100, 150, 200, 250,300, 400, 500, 600,700, 850, 925, 1000 | Both |
| Surface pressure, mean sea-level pressure, skin temperature, 2 m temperature, 2 m dewpoint temperature, 10 m horizontal wind components, total column water | Surface | Both |
| Total precipitation, convective precipitation | Surface | Output |
| Land-sea mask, orography, standard deviation of sub-grid orography, slope of sub-scale orography, insolation, latitude/longitude, time of day/day of year | Surface | Input |
Input and output states are normalised to unit variance and zero mean for each level. Some of the forcing variables, like orography, are min-max normalised.
Optimizer: We use AdamW (Loshchilov and Hutter [2019]) with the \(β\)-coefficients set to 0.9 and 0.95.
Loss function: The loss function is an area-weighted mean squared error (MSE) between the target atmospheric state and prediction.
Loss scaling: A loss scaling is applied for each output variable. The scaling was chosen empirically such that all prognostic variables have roughly equal contributions to the loss, with the exception of the vertical velocities, for which the weight was reduced. The loss weights also decrease linearly with height, which means that levels in the upper atmosphere (e.g., 50 hPa) contribute relatively little to the total loss value.
Data parallelism is used for training, with a batch size of 16. One model instance is split across four 40GB A100 GPUs within one node. Training is done using mixed precision (Micikevicius et al. [2018]), and the entire process takes about one week, with 64 GPUs in total. The checkpoint size is 1.19 GB and as mentioned above, it does not include the optimizer state.
AIFS is evaluated against ECMWF IFS (Integrated Forecast System) for 2022. The results of such evaluation are summarized in the scorecard below that compares different forecast skill measures across a range of variables. For verification, each system is compared against the operational ECMWF analysis from which the forecasts are initialised. In addition, the forecasts are compared against radiosonde observations of geopotential, temperature and windspeed, and SYNOP observations of 2 m temperature, 10 m wind and 24 h total precipitation. The definition of the metrics, such as ACC (ccaf), RMSE (rmsef) and forecast activity (standard deviation of forecast anomaly, sdaf) can be found in e.g Ben Bouallegue et al. ` [2024].
<div style="display: flex; justify-content: center;"> <img src="assets/aifs_v021_scorecard.png" alt="Scorecard comparing forecast scores of AIFS versus IFS (2022)" style="width: 80%;"/> </div>Forecasts are initialised on 00 and 12 UTC. The scorecard show relative score changes as function of lead time (day 1 to 10) for northern extra-tropics (n.hem), southern extra-tropics (s.hem), tropics and Europe. Blue colours mark score improvements and red colours score degradations. Purple colours indicate an increased in standard deviation of forecast anomaly, while green colours indicate a reduction. Framed rectangles indicate 95% significance level. Variables are geopotential (z), temperature (t), wind speed (ff), mean sea level pressure (msl), 2 m temperature (2t), 10 m wind speed (10ff) and 24 hr total precipitation (tp). Numbers behind variable abbreviations indicate variables on pressure levels (e.g., 500 hPa), and suffix indicates verification against IFS NWP analyses (an) or radiosonde and SYNOP observations (ob). Scores shown are anomaly correlation (ccaf), SEEPS (seeps, for precipitation), RMSE (rmsef) and standard deviation of forecast anomaly (sdaf, see text for more explanation).
Additional evaluation analysis including tropycal cyclone performance or comparison against other popular data-driven models can be found in AIFS preprint (https://arxiv.org/pdf/2406.01465v1) section 4.
We acknowledge PRACE for awarding us access to Leonardo, CINECA, Italy. In particular, this version of the AIFS has been trained on 64 A100 GPUs (40GB).
The model was developed and trained using the AnemoI framework. AnemoI is a framework for developing machine learning weather forecasting models. It comprises of components or packages for preparing training datasets, conducting ML model training and a registry for datasets and trained models. AnemoI provides tools for operational inference, including interfacing to verification software. As a framework it seeks to handle many of the complexities that meteorological organisations will share, allowing them to easily train models from existing recipes but with their own data.
If you use this model in your work, please cite it as follows:
BibTeX:
@article{lang2024aifs,
title={AIFS-ECMWF's data-driven forecasting system},
author={Lang, Simon and Alexe, Mihai and Chantry, Matthew and Dramsch, Jesper and Pinault, Florian and Raoult, Baudouin and Clare, Mariana CA and Lessig, Christian and Maier-Gerber, Michael and Magnusson, Linus and others},
journal={arXiv preprint arXiv:2406.01465},
year={2024}
}
APA:
Lang, S., Alexe, M., Chantry, M., Dramsch, J., Pinault, F., Raoult, B., ... & Rabier, F. (2024). AIFS-ECMWF's data-driven forecasting system. arXiv preprint arXiv:2406.01465.