Qwix is a JAX-native quantization library for both research and production, providing efficient model compression through Quantization-Aware Training (QAT), Post-Training Quantization (PTQ), and ODML quantization. It supports various XLA targets (CPU/GPU/TPU) and LiteRT, featuring a flexible, regex-based configuration system for Flax Linen and NNX models. The current version is 0.1.5, with an active release cadence.
pip install git+https://github.com/google/qwixVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define a simple Flax MLP model and then apply Post-Training Quantization (PTQ) using Qwix. It configures a `QuantizationRule` to quantize both weights and activations to int8 across all modules in the model, and then applies the quantization using `qwix.quantize_model`.
Always install `qwix` directly from its GitHub repository using `pip install git+https://github.com/google/qwix`.
Upgrade to Qwix version 0.1.5 or newer to resolve the LoRA RNG issue.
Currently, there is no direct programmatic way to retrieve the Qwix version from the installed package. You must rely on installation logs or environment information.
Carefully review the Qwix documentation on 'Training with Quantization (QAT/QT)' to select the appropriate training method for your use case.