Inside a virtual environment, you can install the required packages using pip:
pip install torch xarray zarr einops tqdm pyyaml huggingface_hub wandb gcsfsRun out-of-the-box inference using a pretrained U-Cast checkpoint (downloaded from Hugging Face) applied to ERA5 data (downloaded from Google Cloud below) using 5 ensemble members on two initial condition start dates, computing the RMSE and CRPS scores, and uploading them to Weights & Biases:
python run_inference_standalone.py \
--ckpt-path hf:salvaRC/u-cast/ucast.ckpt \
--data-dir gs://weatherbench2/datasets/era5 \
--ic-start-dates 2020-01-01 2020-07-04 \
--ensemble-size 5 \
--score \
--wandb-project SOME_PROJECT_NAME_TO_UPLOAD_SCORES_TOThe main entry point is run_inference_standalone.py; see the docstring at the top of the file for full usage instructions. Pretrained U-Cast checkpoints are hosted on Hugging Face and are downloaded automatically the first time the script is run.
Please stay tuned for the training code, which will be released soon.
If you use this code in your research, please cite:
@article{cachay2026ucast,
title = {U-Cast: A Surprisingly Simple and Efficient Frontier AI Probabilistic Weather Forecaster},
author = {Cachay, Salva Rühling and Watson-Parris, Duncan and Yu, Rose},
journal = {International Conference on Machine Learning},
year = {2026},
}