Views
No views yet
NASA-IMPACT/Prithvi-WxC implementation and integrated with the OneScience data loading and training workflow.| Scenario | Description |
|---|---|
| Global weather and climate foundation model research | Train or fine-tune a Vision Transformer forecasting model on ERA5 data. |
| Long-horizon autoregressive rollout | Generate medium- to long-range forecasts autoregressively at 6-hour intervals. |
| Local quick validation | Use synthetic data to check data loading, training, inference, and result scripts. |
| ModelScope/OneCode execution | Download the model package, install dependencies, and run the scripts directly. |
| Multi-card training | Launch multi-process training with torchrun. |
embed_dim=2560, 25 encoder blocks, 5 decoder blocks, and approximately 2.3 billion parameters) requires substantial GPU memory.1hf download OneScience-Group/PrithviWxC --local-dir ./PrithviWxC
2cd PrithviWxC1# Activate DTK and CONDA first
2conda create -n onescience311 python=3.11 -y
3conda activate onescience311
4# uv installation is supported
5pip install onescience[earth-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai1# Activate CONDA first
2conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
3conda activate onescience311
4# uv installation is supported
5pip install onescience[earth-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.aiconf/config.yaml is correct:hf download --repo-type dataset OneScience-Group/ERA5 --local-dir ./datapython scripts/fake_data.pyNote:scripts/fake_data.pygenerates the[T, C, H, W]HDF5 data required by the two input time steps and generatesdata/static/static.npy(currently[4, 32, 64]) for training and inference.
python scripts/train.pytorchrun --nproc_per_node=8 --nnodes=1 --rdzv_id=1000 --rdzv_backend=c10d --max_restarts=0 --master_addr="localhost" --master_port=29500 scripts/train.py1data/checkpoints/model_bak.pth
2data/checkpoints/trloss.npy
3data/checkpoints/valoss.npyweight/ folder is reserved for model weights. Official weights with approximately 2.3 billion parameters (such as PrithviWxC_160_13b_2t_0p5d_v1.pt) are published on Hugging Face, but their structure differs from this repository's small configuration. Align the channel count and grid size before loading; weights are not provided by default, and users may train the model using the paper configuration.data/checkpoints/model_bak.pth:python scripts/inference.pyresult/output/python scripts/result.pyresult/rmse.npyresult/acc.npyresult/loss.pngNASA-IMPACT/Prithvi-WxC (MIT License). The official implementation is embedded unchanged in model/prithvi_wxc_official.py; model/prithvi_wxc.py is only a YAML-driven thin wrapper (with identity normalization parameters for small-configuration connectivity validation).79dabfcd17abe77e2d5c696707c0164a04f2ec01 (2026-02-05).conf/config.yaml uses a small configuration (embed_dim=32, n_blocks_encoder=1, n_blocks_decoder=1) for connectivity validation by default; paper-level reproduction requires a 0.5°×0.625° grid, 160 channels, embed_dim=2560, and 13+12 encoder blocks/3+2 decoder blocks as specified in the paper.| Platform | OneScience Main Repository | Skills Repository |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
NASA-IMPACT/Prithvi-WxC implementation by Schmude et al. (2024) and follows the MIT License.