ParoQuant
Pairwise Rotation Quantization for Efficient Reasoning LLM Inference
State-of-the-art INT4 quantization for LLMs. ParoQuant uses learned pairwise rotations to suppress weight outliers, closing the accuracy gap with FP16 while running at near-AWQ speed. Supports NVIDIA GPUs (vLLM, Transformers) and Apple Silicon (MLX).
Quick Start
oMLX (Apple Silicon)
On Apple Silicon, we recommend serving ParoQuant models using oMLX. Refer to the docs for more details.
Installation
# NVIDIA GPU (CUDA 12.9)
pip install "paroquant[vllm]"
# NVIDIA GPU (CUDA 13.0)
pip install "paroquant[vllm]" "vllm==0.19.1" \
--extra-index-url https://wheels.vllm.ai/0.19.1/cu130 \
--extra-index-url https://download.pytorch.org/whl/cu130
# Apple Silicon
pip install "paroquant[mlx]"
Pick a model from our Hugging Face collection:
export MODEL=z-lab/Qwen3.5-4B-PARO
Interactive Chat
python -m paroquant.cli.chat --model $MODEL
OpenAI-Compatible API Server
For vLLM, you can directly use vllm serve to serve ParoQuant models:
vllm serve $MODEL --port 8000
For other frameworks:
python -m paroquant.cli.serve --model $MODEL --port 8000
For MLX, add --vlm if you wish to load the VLM components and use the model's multimodal features. For vLLM, VLM components are loaded by default and can be skipped with the server argument --language-model-only.
Docker (NVIDIA GPU)
[!NOTE] The following commands map the local cache directory to the container in order to persist kernel cache across runs. Remove
-v ...to disable this behaviour.
# Interactive chat
docker run --pull=always --rm -it --gpus all --ipc=host \
-v $HOME/.cache/paroquant:/root/.cache/paroquant \
ghcr.io/z-lab/paroquant:chat --model $MODEL
# API server (port 8000)
docker run --pull=always --rm -it --gpus all --ipc=host -p 8000:8000 \
-v $HOME/.cache/paroquant:/root/.cache/paroquant \
ghcr.io/z-lab/paroquant:serve --model $MODEL
Models
All models are available on Hugging Face. Swap the model name in the commands above to try any of them.
Gemma 4
| Model | Checkpoint |
|---|---|
| gemma-4-31B-it | z-lab/gemma-4-31B-it-PARO |
| gemma-4-12B-it | z-lab/gemma-4-12B-it-PARO |
| gemma-4-26B-A4B-it | z-lab/gemma-4-26B-A4B-it-PARO |
| gemma-4-E4B-it | z-lab/gemma-4-E4B-it-PARO |
| gemma-4-E2B-it | z-lab/gemma-4-E2B-it-PARO |
Qwen3.6
| Model | Checkpoint |
|---|---|
| Qwen3.6-27B | z-lab/Qwen3.6-27B-PARO |
| Qwen3.6-35B-A3B | z-lab/Qwen3.6-35B-A3B-PARO |
Qwen3.5
| Model | Checkpoint |
|---|---|
| Qwen3.5-0.8B | z-lab/Qwen3.5-0.8B-PARO |
| Qwen3.5-2B | z-lab/Qwen3.5-2B-PARO |
| Qwen3.5-4B | z-lab/Qwen3.5-4B-PARO |
| Qwen3.5-9B | z-lab/Qwen3.5-9B-PARO |
| Qwen3.5-27B | z-lab/Qwen3.5-27B-PARO |
| Qwen3.5-35B-A3B | z-lab/Qwen3.5-35B-A3B-PARO |
Qwen3
| Model | Checkpoint |
|---|---|
| Qwen3-0.6B | z-lab/Qwen3-0.6B-PARO |
| Qwen3-1.7B | z-lab/Qwen3-1.7B-PARO |
| Qwen3-4B | z-lab/Qwen3-4B-PARO |
| Qwen3-8B | z-lab/Qwen3-8B-PARO |
| Qwen3-14B | z-lab/Qwen3-14B-PARO |
Llama
| Model | Checkpoint |
|---|---|
| Llama-2-7B | z-lab/Llama-2-7b-hf-PARO |
| Llama-3-8B | z-lab/Meta-Llama-3-8B-PARO |
| Llama-3.1-8B-Instruct | z-lab/Llama-3.1-8B-Instruct-PARO |
Want a model that's not listed? Open an issue and let us know.
Reproduction
[!NOTE] The main branch of this repository is under active development, and reproducibility is not guaranteed. Please use the
legacybranch to reproduce results from the paper.
Quantize Your Own Model
git clone https://github.com/z-lab/paroquant && cd paroquant
pip install -e ".[optim,eval]"
# 1. Optimize rotation parameters
experiments/optimize/4bit.sh Qwen/Qwen3-8B
# 2. Export to HF checkpoint (--mode real for INT4, --mode pseudo for FP16)
python -m paroquant.cli.convert \
--model Qwen/Qwen3-8B \
--result-dir output/Qwen3-8B \
--output-path models/Qwen3-8B-PARO
Docker Images
| Image | Purpose |
|---|---|
ghcr.io/z-lab/paroquant:chat |
Interactive chat |
ghcr.io/z-lab/paroquant:chat-cu129 |
Interactive chat (CUDA 12.9) |
ghcr.io/z-lab/paroquant:serve |
OpenAI-compatible API server |
ghcr.io/z-lab/paroquant:latest |
Optimization & evaluation |
ghcr.io/z-lab/paroquant:eval |
Reasoning task evaluation |
Citation
@inproceedings{liang2026paroquant,
title = {{ParoQuant: Pairwise Rotation Quantization for Efficient Reasoning LLM Inference}},
author = {Liang, Yesheng and Chen, Haisheng and Zhang, Zihan and Han, Song and Liu, Zhijian},
booktitle = {International Conference on Learning Representations (ICLR)},
year = {2026}
}
Metadata
Release files for paroquant 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| paroquant-0.1.16.tar.gz | 54.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| paroquant-0.1.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 118.9 kB
Release files / paroquant-0.1.16.tar.gz
| Download URL | paroquant-0.1.16.tar.gz |
|---|---|
| Size | 54.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f1947a14c426822648aeeb7b1d05ea7193baadec28b02a105c29436857af96e
|
|
BLAKE2b-256 checksum How to use checksums |
a6f13c4ffe4f8e93405be43f3d52d52c6a5e633c3bbf34bdf243f860f69ccdb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.
Transparency logRelease files / paroquant-0.1.16-py3-none-any.whl
| Download URL | paroquant-0.1.16-py3-none-any.whl |
|---|---|
| Size | 64.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
845f5ec32fe06cf6daa1bfd02235cd5f76a8e3db5752384be5c7fe2c6f9c89e0
|
|
BLAKE2b-256 checksum How to use checksums |
1db7792bf5319a6e81d4a0fcb484d08fba13afbc4762416db6ee76d11434f95e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.
Transparency logSecurity for paroquant 0.1.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for paroquant-0.1.16.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.