NVIDIA/torch-harmonics v0.9.0
NVIDIA/torch-harmonics
Captured source
source ↗published Apr 16, 2026seen 5dcaptured 8hhttp 200method plain
v0.9.0
Repository: NVIDIA/torch-harmonics
Tag: v0.9.0
Published: 2026-04-16T12:15:46Z
Prerelease: no
Release notes:
- New CPU backend (OpenMP-accelerated) for both DISCO convolution and attention layers
- Pre-compiled manylinux wheels for multiple PyTorch and CUDA versions, available on PyPI and pypi.nvidia.com
- Revised truncation logic for the SHT: centralized in new
truncation.pymodule, enforcing triangular truncation (lmax = min(lmax, mmax)) across all SHT classes. Note: truncation for equiangular/equidistant grids changed fromnlatto(nlat+1)//2 - SHT performance improvements: contraction dimensions are now transposed to be stride-1 before einsum, and real/imaginary parts are split into separate contiguous tensors
- New
fft.pywrapper module with proper Hermitian symmetry enforcement inirfftand explicit mode truncation inrfft - Full PyTorch 2 custom operator compatibility for DISCO and attention layers using
torch.libraryregistration, enablingtorch.compileandtorch.export - Restructured DISCO convolution and attention code into proper subpackages (
torch_harmonics/disco/,torch_harmonics/attention/) - Added double precision support for DISCO convolution
- Fixed Schmidt normalization for derivatives of associated Legendre polynomials
- Fixed up/downsampling in attention layers when input and output shapes differ
- Fixed
GaussianRandomFieldS2to useisht.lmax/isht.mmaxfor compatibility with revised truncation logic - Distributed module: added shape verification for transpose and gather operations, controllable via
TORCH_HARMONICS_DISTRIBUTED_DEBUG - Distributed module: fixed
finalize()bug where process group was not properly destroyed - Query functions
torch_harmonics.disco.optimized_kernels_is_availableandtorch_harmonics.attention.optimized_kernels_is_availablefor checking optimized layer availability - Quadrature helper functions
precompute_latitudesandprecompute_longitudesare now public API - added new tests:
- Comprehensive SHT test suite now covering vector SHT, Schmidt normalization, batch dimensions, and multiple grid types
- New test suites for
SpectralConvS2,QuadratureS2,GaussianRandomFieldS2, andResampleS2
Enhanced DISCO convolution tests covering different input/output channel counts and double precision
- Enhanced attention tests with up/downsampling and
opcheckintegration - New distributed tests for primitives, quadrature, and spectral convolution
- Shared test utilities module (
testutils.py)
Notability
notability 4.0/10Routine library version update