pypi / ai-edge-quantizer
ai-edge-quantizer
What changed in ai-edge-quantizer 0.4 to 0.10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
10 breaking1 deprecations23 new APIs and options5 performance11 behavior and defaults1 tooling9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initai-edge-quantizer 0.107 changes
Breaking changes 3
Imports change from ai_edge_quantizer to litert_quantizer; the API is otherwise unchanged.
The command-line tool is renamed from aeq to litert-quantizer.
The replacement package is installed with pip install litert-quantizer.
Deprecations 1
Importing the package now emits a deprecation warning.
New APIs and options 2
Adds an experimental algorithm for FULLY_CONNECTED that combines activation-aware per-channel activation scaling with optimal weight clipping.
Adds uint8 data type support for model INPUT/OUTPUT tensors in recipes, enabling compatibility with some hardware accelerators.
Fixes and other changes 1
Recipe validation no longer requires weight_tensor_config for ops without weights, such as model INPUT/OUTPUT, so dummy weight configs are unnecessary.
ai-edge-quantizer 0.920 changes
Breaking changes 1
Same-size Hadamard matrices now use a single tensor, and inserted Hadamard matrices are float.
New APIs and options 8
Recipes and buffer packing were added for 2-bit model quantization.
Weight recovery algorithms now support scale recovery and blockwise quantization, with ready-to-use 4-bit and 8-bit named recipes.
Calibrator and Quantizer gained a profiler-based calibration mode for faster, more memory-efficient XNNPACK-assisted calibration.
A calibration API was added that lets developers reuse the inference pipeline for calibration.
GPTQ support was added as a quantization algorithm.
Int4 matrix multiplication Hadamard transforms gained a max_hadamard_size control.
LiteRT-LM files can now be read, quantized, and written, including extracting serialized TFLite models and applying recipes across TFLiteModel sections.
Model validation now supports multiple metrics.
Performance 5
Large tensors are processed in chunks along the leading dimension to avoid generating large intermediate values.
These buffers are explicitly garbage-collected immediately after output buffer writing to reclaim memory.
Model serialization uses disk-backed memory mappings and chunk-by-chunk file writing to prevent OOM errors on large LLMs.
Buffer mapping IDs are tracked, producer and consumer ops are pre-computed, and empty buffers are pruned to reduce serialized file size and parsing overhead.
Quantization uses zero-copy array views and in-place core operations instead of unnecessary copies, lowering peak memory usage.
Tooling 1
A CLI was introduced for running model quantization workflows from the terminal.
Fixes and other changes 5
Calibration metadata tracking was added.
Crashes in float casting operations with non-constant weights were fixed.
Output tensors are no longer inadvertently rotated during fully connected op processing.
Accidental double-quantization of input tensors is prevented.
Progress bars and reports were added for quantization steps and calibration passes.
ai-edge-quantizer 0.433 changes
Breaking changes 6
Bias error checks are disabled.
Python 3.9 support was dropped and Python 3.13 support was added.
The tensorflow dependency was removed, resulting in a leaner installation.
Removed dynamically quantized FullyConnected and Conv2D from latest operations.
Removed EMBEDDING_LOOKUP from the static quantization allowlist.
Raises an error when the quantized dimension is not divisible by the block size.
New APIs and options 13
Progress bars and reporting utilities were added.
A new dynamic_wi4_afp32_hadamard recipe is available.
AEQ support for the RELU operator now includes int8 and int16.
An option was added to validate tensor outputs exclusively.
Added support for blockwise dequantization in AEQ.
Added Cosine Similarity as a model validation metric.
Added Embedding Lookup to the supported subchannel operations for weight-only quantization.
Added KL Divergence as a model validation metric.
Added Mean Squared Error quantization support for FullyConnected, EmbeddingLookup, Conv, TransposeConv, and DepthWise Conv.
Added validator support for pre-quantized models.
Added int8 and int16 support for REDUCE_MIN via Adaptive Edge Quantization.
Added Signal-to-Noise Ratio (SNR) as a model validation metric.
Added int8 support for SPACE_TO_DEPTH via Adaptive Edge Quantization.
Behavior and default changes 11
Paths now support PathLike objects.
The skip_checks configuration is now propagated.
Decomposed Hadamard is enabled for full integer paths.
For 16-bit activations, quantized bias is now 32 bits and stored as 64 bits.
Increased the error tolerance for bias quantization.
Added int8 and int16 support for EQUAL via Adaptive Edge Quantization.
Removed channel-wise constraints in Hadamard quantization.
Reduced the minimum quantization scale bound from 10^-4 to 10^-9 to support finer precision levels.
Added int8 and int16 support for MIRROR_PAD via Adaptive Edge Quantization.
Added int8 and int16 support for PADV2 via Adaptive Edge Quantization.
Extended the list of quantizable composites.
Fixes and other changes 3
Fixed a bug so the float_casting algorithm can be used in add_weight_only_config.
Fixed the cosine_similarity metric to handle zero-length tensors.
Corrected signature defs when dequantization precedes graph output during Static Range Quantization.