In this article
The 1.32 shared-layout INT2 CPU path removes repacking; CPU/CUDA parity still needs independent references over the same weight and scale banks.
ONNX Runtime 1.32.0 includes direct CPU QMoE over shared packed expert layouts. PR #33785 details INT2 CPU kernels consuming the same immutable banks used by CUDA. Avoiding repacking simplifies data movement, but numerical parity still requires testing both interpretations, including scales, projection boundaries and supported activation types.
Shared bytes are a useful controlled variable
Using one packed bank removes a conversion step from a cross-backend comparison. A mismatch can then be investigated in decoding, scaling or arithmetic rather than first reconciling two weight exports. A proposed test hashes the immutable bank before and after both routes and compares outputs against an independent decoder. Hash equality confirms that the same data was used; it does not prove that each kernel interpreted every packed field correctly.
Dispatch variants need explicit exercise
The PR supplies scalar, AVX2 and AVX-512 paths with runtime selection. Testing only the fastest path on one CPU leaves other supported code unexercised. Where supported test controls allow it, force the lower-capability route on a capable machine and compare. Record actual instruction-path selection, not merely the CPU model. A shared layout is valuable precisely because multiple execution implementations can consume it without changing the stored representation.
Extreme scales can choose a special path
Upstream documents a scale-range guard to avoid overflow before multiplication by small activations. Ordinary-range parity tests may never reach that guard. Include deliberate large-scale, small-activation cases and verify the expected reference remains representable. Keep this separate from ordinary quantization error: an avoidable intermediate overflow can lose information even when the final mathematical product is within range. The PR’s special handling should be checked through actual route selection.
Direct CPU support is not a free offload guarantee
Host compute, memory bandwidth and synchronization still contribute to a hybrid request. Measure them in the actual placed graph after parity checks. This article reports the shared-layout capability and edge cases without claiming new CPU/GPU throughput results or identical bit patterns across architectures. The relevant contract is faithful interpretation of the same packed experts, not a promise that every cold expert becomes cheap to execute.
Sources
Related reading
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.