Skip to content

v0.17.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 25 Nov 11:30
f3c9d6e

Minor release. Validated on Trn2 (trn2.3xlarge, Neuron SDK 2.33.1, native TorchNeuron); see trnsci/trnsci#35 and #140, #142, #144.

  • New: segment_sum(m, idx, N) / gather(h, idx) / segment_plan(idx, N), the graph segment sum (index-add) and row gather, each registered as the other's backward (#139, #140). Two NKI kernels do the work as TensorEngine reductions with fp32 PSUM accumulation, without atomics or scatter-add. Results are bitwise identical run to run and at LNC=1 / LNC=2 on trn2. The batched-DMA gather takes 0.49 ms at the 1728-atom shape, against 1.07 ms for aten index_select.
  • New: the per-launch bound is 2^34 bytes, and wider calls split the feature axis (bitwise equal to one launch), so the MLIP layer-1 width stays on the kernel from 4096 atoms up (#141, #144). segment_plan(idx, N, padding=mask) skips padding edges, and the sums are bitwise those of the real edges.
  • Fixed: kernel_matmul / KernelOperator: the square operator's diagonal is exact, K_ii = s, on every path (#143). On the trn2 bench, Matérn-1/2 error drops from 6.5e-4 to 1.4e-5 relative, at under 0.5% of throughput.
  • Fixed: the fused CG power-iteration normaliser uses GpSimd rsqrt instead of ScalarE sqrt + reciprocal, which is inaccurate for squared norms above 2^52 (trnsci/trnsci#173).

Full notes: CHANGELOG.