aqtp
Accurate Quantized Training library.
What it is and what it does
AQT is a quantization library for JAX that replaces standard tensor operations (dot_general, einsum, convolution) with quantized variants, enabling training of neural networks at reduced precision (int8, int4, or lower) without hand-tuning. It works by injecting quantized operations into JAX-based frameworks like Flax, Pax, and MaxText, and is designed to maintain bit-exact consistency between training and serving—avoiding the training-serving bias common in post-training quantization.
The library provides flexible configuration of forward and backward pass quantization separately, with support for various numerics (int8, int4, bfloat16, float8), calibration algorithms, and stochastic rounding. It is built on top of jax, jaxlib, flax, and absl-py, and is actively maintained by Google with demonstrated production use at scale and research validation across multiple papers and frameworks.
Use it for:
- Train large language models or vision models with int8 quantization on TPU or GPU clusters to reduce memory and accelerate computation.
- Conduct quantization research by configuring forward and backward bit widths independently and testing different calibration strategies.
- Deploy models trained with AQT without retraining or post-training quantization, since quantized weights are identical during training and serving.
- Integrate quantization into existing Flax models by replacing the dot_general operation without restructuring the model.
- Benchmark lower-bit training on production workloads to evaluate accuracy-efficiency tradeoffs.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
AQT provides quantization of tensor operations (matmul, einsum, conv) in JAX computations, enabling int8 and lower-bit model training with minimal configuration while maintaining training-serving consistency.
Yes, if you are training neural networks in JAX and need quantization. The library is actively maintained, has no known vulnerabilities, carries a permissive license, and is backed by Google's production use at scale. Install friction is low. The main constraint is a hard dependency on jax and jaxlib (which require compilation for your hardware), and the library is still in alpha (Development Status :: 3), so expect API changes. Best suited for researchers and practitioners already committed to the JAX ecosystem.
Install
aqtp on PyPI
pip
pip install aqtpuv
uv add aqtppoetry
poetry add aqtpInstalling aqtp
Before you install
Low install friction with a pure-Python wheel. Depends on four substantial packages (absl-py, jax, jaxlib, flax), all of which are actively maintained. The library itself shows active maintenance with a recent commit on 2026-08-06 and steady releases since 2022-01-13.
License in practice
Licensed under Apache Software License (permissive), imposing no restrictions on commercial or private use; attribution required but no copyleft obligations.
Quickstart
pip install aqtp
import aqt.jax.v2.config as aqt_config
int8_config = aqt_config.fully_quantized(fwd_bits=8, bwd_bits=8)
Requires Python 3.10 or later; jaxlib has platform-specific compiled components (CPU, GPU, or TPU support depends on your JAX installation).
Verify before relying
- Whether the package works with Python 3.12+ (classifiers list only 3.10 and 3.11)
- Performance gains on non-TPU hardware (description emphasizes TPU and contemporary ML accelerators)
- Compatibility with recent versions of Flax and Pax beyond what the description exemplifies
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — absl-py, jax, jaxlib, flax |
| Maintenance | actively maintained — 378 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 457,805/month — #6,547 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aqtp-0.9.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
qwixQwix is a JAX quantization library that applies…
permissive · top 15,000 on PyPI
optimum-quantoA PyTorch quantization backend that reduces…
permissive · top 15,000 on PyPI
ai-edge-quantizerQuantizes LiteRT models to reduce size and…
permissive · top 15,000 on PyPI
compressed-tensorsProvides a unified format for storing and…
permissive · top 5,000 on PyPI
diffqDiffQ performs differentiable quantization of…
noncommercial · top 15,000 on PyPI
aqtinstallaqtinstall is a command-line tool that…
permissive · top 15,000 on PyPI
vector-quantize-pytorchImplements vector quantization layers for…
permissive · top 5,000 on PyPI
auto-gptqQuantizes large language models to lower…
permissive · top 15,000 on PyPI
qonnxQONNX provides Python utilities to work with…
permissive · top 15,000 on PyPI
google-tunixTunix is a JAX-based library for post-training…
permissive · top 15,000 on PyPI