Views
No views yet
NVIDIA/torch-harmonics and integrated with the OneScience data loading and training workflow.| Scenario | Description |
|---|---|
| Global weather dynamics research | Train a spherical-equivariant neural operator forecasting model on ERA5 data. |
| Long-horizon autoregressive stability research | Evaluate polar artifacts and dissipation during multi-step rollout. |
| 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. |
torch-harmonics(spherical harmonic transforms),Confirm that its version matches PyTorch/CUDA before installation.1hf download OneScience-Group/SphericalFourierNeuralOperators --local-dir ./SphericalFourierNeuralOperators
2cd SphericalFourierNeuralOperators1# 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] torch-harmonics -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] torch-harmonics -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[T, C, H, W]HDF5 data from the model configuration. The current small configuration uses 6 channels and a 32×64 grid, and automatically calculates a time length sufficient for the batch.
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. The paper does not clearly release weights for the 26/73-channel weather model; this repository does not currently provide official weights, 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.pngNVIDIA/torch-harmonics (BSD-3-Clause).49bac755cd8306fbd27a3604acafa65adf7ca202 (2026-08-14).conf/config.yaml uses a small configuration (img_size=[32, 64], embed_dim=16, num_layers=2) for connectivity validation by default; paper-level reproduction requires a 0.25° (721×1440) grid, 26/73 channels, and a larger network 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 |
torch-harmonics implementation by Bonev et al. (2023) and follows BSD-3-Clause.