TECHNOLOGY

ONNX Runtime Arm FP16 grouped Conv: byte-sized packs and per-group bias need separate indexing

In this article
THE QUICK TAKE

The 1.32 Arm grouped-Conv repair separates byte offsets and bias slices; multi-group execution on the affected path is essential coverage.

ONNX Runtime 1.32.0 includes an Arm64 FP16 grouped-convolution repair for packed-weight offsets and group bias. The PR identifies a byte count used through a half-element pointer and a repeated first-group bias. These are two address-mapping errors that a single-group convolution or an x64-only test could avoid entirely.

Pointer arithmetic chooses a unit

Adding a size to a typed pointer scales it by the pointed-to element size. If the size is already measured in bytes, that can advance too far. The PR keeps packed offsets in bytes. A review should write down units for each size-producing API and each offset expression, rather than relying on similar variable names. A successful first group says little because its zero offset does not exercise the erroneous increment.

Bias has its own group mapping

Correcting weight addresses does not automatically correct bias selection. The PR separately gives each group the intended bias slice. A proposed test assigns different biases to different groups and compares with a no-bias control. Uniform bias would hide repeated use of group zero. Keep weights distinguishable as well so a weight-pack error and a bias-slice error produce separable evidence rather than one unexplained numerical mismatch.

The architecture path is part of the test

Upstream notes that the relevant packing route is Arm64-specific. Passing on x64 cannot validate code that x64 never executes. The PR reports emulator-based verification and explicitly says physical Arm64 hardware was not tested there. Preserve that distinction when reusing its evidence. A local qualification should identify the real selected kernel and hardware, with initialized and runtime-supplied weights where those choose different preparation routes.

Model effects require the affected configuration

The release is a targeted grouped-Conv correctness repair, not a general Arm performance announcement. Verify every group’s result before measuring time, and retain allocation diagnostics if corruption was observed. This article reports the two mappings and proposed controls without claiming new hardware measurements. Models that never use the affected FP16 packing path do not acquire a demonstrated accuracy improvement merely by sharing the same runtime version.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles