Skip to content

HCLIMcom/HCLIM_ANEMOI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HCLIM_ANEMOI

Appication of ANEMOI for HCLIM

  • 🌐 AIFS Ensemble Inference

  • This document describes the setup and execution steps for running AIFS ensemble inference on the ATOS system.


I. Build the Environment

1. Load Conda on ATOS

module load conda

2. Create a Conda Environment

As the environment is built with a mixture of conda and pip, installation of the environment needs to be done mannually on ATOS. We are currently investigating if there is any preinstalled package on ATOS that can be used.

# Create and activate environment
conda create -n env_test_anemoi python=3.11.6
conda activate env_test_anemoi

# Install packages individually
pip install torch==2.5.0
pip install anemoi-inference[huggingface]==0.6.0
pip install anemoi-models==0.6.0
pip install anemoi-graphs==0.6.0
pip install anemoi-datasets==0.5.23
pip install "earthkit-regrid==0.4.0" "ecmwf-opendata>=0.3.19"
pip install flash_attn==2.7.3

⚙️ Note

  • Some version correction may be needed:
  1. The right cuda version needs to be installed during the process.
    $ ln -s /usr/local/apps/cuda/12.6/ /perm/smf/cuda_12.6
    $ export CUDA_HOME=/perm/smf/cuda_12.6
    
  2. reverse the anemoi.utils version.
  conda install anemoi.utils=0.4.22
  • Conda Channels (for ECMWF Users) The default Anaconda repository (https://repo.anaconda.com/) is blocked within the ECMWF network due to licensing restrictions. To ensure compatibility, please configure Conda to use only the conda-forge channel.

    You can verify and adjust your Conda channel configuration as follows:

    # Check current channels
    conda config --show channels
    
    # If "defaults" appears, remove it
    conda config --remove channels defaults
    
    # Verify the updated configuration
    conda config --show channels
    

    Expected output:

    channels:
      - conda-forge
    

    With this configuration, environments can be created exclusively from conda-forge.


II. Test the Environment

You can interactively test the setup using:

ecinteractive

III. Download Model Checkpoint

Download the pretrained model from Hugging Face: 🔗 AIFS ENS 1.0 Checkpoint


IV. Generate Initial Conditions from IFS Archive

Use the provided script to generate the initial condition file:

vi input/download_aifs.sh

V. Set Up the Experiment

Edit your configuration file (e.g., reg_emi_2015_48h.yaml) as follows:

checkpoint: <path_cktpt>/aifs-ens-crps-1.0.ckpt
lead_time: 48
input:
  grib: <path_IC>/aifs_input_state_20230514_n320_18z_20230515_00z.grib
output:
  grib: <path_output>/output_ens_dana_italy.grib

VI. Run the Experiment on SLURM

Submit the job script:

sbatch slurm_aifs_ens_1000.sh

🔍 References


🤝 Acknowledgment

This GitHub repository is a collaborative effort of the ML Working Group of the HCLIM Consortium.
Most scripts and workflows were developed by Toni (AEMET).


About

Appication of ANEMOI for HCLIM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors