liang2kl commited on
Commit
f99bc0f
·
verified ·
1 Parent(s): 707ecc9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ pipeline_tag: image-text-to-text
5
+ base_model:
6
+ - google/gemma-4-31B-it
7
+ ---
8
+
9
+ # z-lab/gemma-4-31B-it-PARO
10
+
11
+ **Pairwise Rotation Quantization for Efficient Reasoning LLM Inference**
12
+
13
+ <p>
14
+ <a href="https://arxiv.org/abs/2511.10645"><img src="https://img.shields.io/badge/arXiv-2511.10645-b31b1b.svg" alt="Paper"></a>
15
+ <a href="https://paroquant.z-lab.ai"><img src="https://img.shields.io/badge/Blog-ParoQuant-blue" alt="Blog"></a>
16
+ <a href="https://huggingface.co/collections/z-lab/paroquant"><img src="https://img.shields.io/badge/%F0%9F%A4%97-Models-yellow" alt="Models"></a>
17
+ <a href="https://pypi.org/project/paroquant/"><img src="https://img.shields.io/pypi/v/paroquant" alt="PyPI"></a>
18
+ </p>
19
+
20
+ ParoQuant is the state-of-the-art INT4 quantization for LLMs. It closes the accuracy gap with FP16 while running at near-AWQ speed. Supports NVIDIA GPUs (vLLM, Transformers) and Apple Silicon (MLX). For more information, see https://github.com/z-lab/paroquant.
21
+
22
+ z-lab/gemma-4-31B-it-PARO is a 4-bit [google/gemma-4-31B-it](https://huggingface.co/google/gemma-4-31B-it) quantized with ParoQuant. Check out other ParoQuant models from the Hugging Face [collection](https://huggingface.co/collections/z-lab/paroquant).
23
+
24
+
25
+ ## Quick Start
26
+
27
+ ### Installation
28
+
29
+ ```bash
30
+ # NVIDIA GPU (CUDA 12.9)
31
+ pip install "paroquant[vllm]"
32
+
33
+ # NVIDIA GPU (CUDA 13.0)
34
+ pip install "paroquant[vllm]" "vllm==0.19.0" \
35
+ --extra-index-url https://wheels.vllm.ai/2a69949bdadf0e8942b7a1619b229cb475beef20/cu130 \
36
+ --extra-index-url https://download.pytorch.org/whl/cu130
37
+
38
+ # Apple Silicon
39
+ pip install "paroquant[mlx]"
40
+ ```
41
+
42
+ ### Interactive Chat
43
+
44
+ ```bash
45
+ python -m paroquant.cli.chat --model z-lab/gemma-4-31B-it-PARO
46
+ ```
47
+
48
+ ### OpenAI-Compatible API Server
49
+
50
+ ```bash
51
+ python -m paroquant.cli.serve --model z-lab/gemma-4-31B-it-PARO --port 8000
52
+ ```
53
+
54
+ For vLLM, the arguments are passed to the vLLM server directly. See [vLLM docs](https://docs.vllm.ai/en/latest/configuration/serve_args/) for more details.
55
+
56
+ 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`.
57
+
58
+ ### Docker (NVIDIA GPU)
59
+
60
+ > [!NOTE]
61
+ > 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.
62
+
63
+ ```bash
64
+ # Interactive chat
65
+ docker run --pull=always --rm -it --gpus all --ipc=host \
66
+ -v $HOME/.cache/paroquant:/root/.cache/paroquant \
67
+ ghcr.io/z-lab/paroquant:chat --model z-lab/gemma-4-31B-it-PARO
68
+
69
+ # API server (port 8000)
70
+ docker run --pull=always --rm -it --gpus all --ipc=host -p 8000:8000 \
71
+ -v $HOME/.cache/paroquant:/root/.cache/paroquant \
72
+ ghcr.io/z-lab/paroquant:serve --model z-lab/gemma-4-31B-it-PARO
73
+ ```
74
+
75
+ ## Citation
76
+
77
+ ```bibtex
78
+ @inproceedings{liang2026paroquant,
79
+ title = {{ParoQuant: Pairwise Rotation Quantization for Efficient Reasoning LLM Inference}},
80
+ author = {Liang, Yesheng and Chen, Haisheng and Zhang, Zihan and Han, Song and Liu, Zhijian},
81
+ booktitle = {International Conference on Learning Representations (ICLR)},
82
+ year = {2026}
83
+ }
84
+ ```