NEW Artificial Intelligence Lab: Aura SDK (Alpha) is released with native Hexagon NPU offloading on Snapdragon X.

Quantization & Precision

Details on model weight compression enclaves, supported precision profiles, and HVX/HMX accelerator layouts.

Edge deployments require optimization of model weights to fit strict memory layouts. Aura SDK implements state-of-the-art quantization techniques to reduce the footprint of LLMs while minimizing perplexity degradation.

Supported Precision Profiles

The Snapdragon Hexagon tensor engine is optimized for integer math. We support the following quantization configurations:

ProfileWeights PrecisionActivations PrecisionHardware Acceleration
w4a164-bit INT16-bit dynamic FPHardware-accelerated (Optimal)
w8a88-bit INT8-bit INTHardware-accelerated
w16a1616-bit FP16-bit FPHardware-accelerated
fp3232-bit FP32-bit FPCPU Fallback (No NPU acceleration)

w4a16 Quantization

The w4a16 format represents the best trade-off between speed and model accuracy for generative models. The weights are stored as 4-bit integers with a per-channel scale, and activations are dynamically upscaled to 16-bit floating point inside the tensor processors during operations.

Quantization Toolchain Example

To convert an existing HuggingFace transformers model to Aura’s w4a16 format:

python -m aura_quantizer --model meta-llama/Llama-3-8B --output ./llama3-w4a16.aura --precision w4a16 --calibration-dataset wiki-text

Accuracy Calibration

Quantization can introduce mathematical rounding errors. Using calibration datasets ensures that high-weight tensor paths are allocated high-precision scales, preserving complex reasoning capabilities of the target neural networks.