Repository navigation
v0.26.0
Minor release. Validated on Trn2 (trn2.3xlarge, Neuron SDK 2.33.1, native TorchNeuron); see trnsci/trnsci#35 and #139.
- New:
trntensor.equivariant, MACE-style equivariant contractions with registered backwards (#138, #139). These are the first trntensor ops with a backward.conv_tp(x, y, w, spec)is the e3nn "uvu" tensor product with per-edge weights, with gradients for x, y and w.symmetric_contraction(x, species, spec)is MACE's product basis (correlation ≤ 3), with a gradient for x.conv_tp_spec/symmetric_contraction_specbuild the spec from an e3nn / MACE module or from explicit irreps. e3nn and mace-torch stay optional.
- Device: on Trn2 the NKI kernels match the fp64 host path to ≤ 2.2e-7 relative at 216 and 1728 atoms, and every MACE-MP-0b2 capture to ≤ 2.9e-7, for the forward, input gradients and double backward. Reruns are bitwise identical.
"auto"therefore runs the kernels for fp32 operands on theneurondevice (TRNTENSOR_EQUIVARIANT_NKI=0opts out), and the PyTorch path elsewhere. - The PyTorch-path
symmetric_contractionbackward is three GEMMs instead ofindex_add_(#140). On Trn2 at 216 atoms the backward drops from 4485 to 5.1 ms (layer 0).
Full notes: CHANGELOG.