CoolFace
Modelpublic

huawei-csl/Qwen3-32B-3bit-ASINQ

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
5likes21downloads
Model Card

<p align="center"> <img src="logo.png" alt="Logo" style="max-width: 80%; height: auto;"> </p>

<p align="center">๐Ÿ™ <a href="https://github.com/huawei-csl/SINQ">Github</a>&nbsp;&nbsp; | &nbsp;&nbsp;๐Ÿ“„ <a href="http://arxiv.org/abs/2509.22944">Paper</a></p>

A-SINQ 3-bit Quantized Qwen3-32B model

This repository contains the official 3-bit quantized version of the `Qwen3-32B` model using the calibrated version of SINQ (Sinkhorn-Normalized Quantization) method. SINQ is a novel, fast and high-quality quantization method designed to make any Large Language Models smaller while keeping their accuracy almost intact.

The model was presented in the paper SINQ: Sinkhorn-Normalized Quantization for Calibration-Free Low-Precision LLM Weights.

To support the project please put a star โญ in the official SINQ github repository.

Model Details

  • โ€”Model Name: Qwen3-32B-3bit-ASINQ
  • โ€”Base Model: `Qwen/Qwen3-32B`
  • โ€”Task: Text Generation
  • โ€”Framework: PyTorch / Transformers
  • โ€”License: Apache-2.0
  • โ€”Quantized By: Huawei - Computing Systems Lab

Quantization Details

  • โ€”Quantization Method: A-SINQ (Sinkhorn-Normalized Quantization)
  • โ€”Precision: INT3
  • โ€”Group Size: 64
  • โ€”Framework: PyTorch
  • โ€”Quantization Library: sinq

๐Ÿš€ Usage

Prerequisite

Before running the quantization script, make sure the SINQ library is installed. Installation instructions and setup details are available in the SINQ official github repository.

Usage example

You can load and use the model with our wrapper based on the ๐Ÿค— Transformers library:

python
from transformers import AutoTokenizer
from sinq.patch_model import AutoSINQHFModel
import torch

model_name = "huawei-csl/Qwen3-32B-3bit-ASINQ"
tokenizer = AutoTokenizer.from_pretrained(model_name)
sinq_model = AutoSINQHFModel.from_quantized_safetensors(
    model_name,
    device="cuda:0",
    compute_dtype=torch.bfloat16
)

prompt = "Explain neural network quantization in one sentence."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda:0")
with torch.inference_mode():
    out_ids = sinq_model.generate(**inputs, max_new_tokens=32, do_sample=False)
print(tokenizer.decode(out_ids[0], skip_special_tokens=True))

<details> <summary><span style="font-size:1.1em; font-weight:bold;">๐Ÿงฉ Quantization Process</span></summary>

The quantized model was obtained using the SINQ quantization library, following the steps below:

python
from transformers import AutoModelForCausalLM, AutoTokenizer
from sinq.patch_model import AutoSINQHFModel
from sinq.sinqlinear import BaseQuantizeConfig
import torch

# Load base model
base_model_name = "Qwen/Qwen3-32B"
model = AutoModelForCausalLM.from_pretrained(base_model_name, torch_dtype="float16")
tokenizer = AutoTokenizer.from_pretrained(base_model_name)

# Apply 3-bit SINQ quantization
quant_cfg = BaseQuantizeConfig(
    nbits=3,            # quantization bit-width
    group_size=64,     # group size
    tiling_mode="1D",   # tiling strategy
    method="asinq"       # quantization method ("asinq" for the calibrated version)
)

qmodel = AutoSINQHFModel.quantize_model(
    model,
    tokenizer=tokenizer,
    quant_config=quant_cfg,
    compute_dtype=torch.bfloat16,
    device="cuda:0"
)
Reproducibility Note: This model was quantized using the SINQ implementation from commit `14ad847` of the SINQ repository.

</details>

</br>


๐Ÿงพ How to Cite This Work

If you find SINQ useful in your research or applications, please

  • โ€”Put a star โญ in the official SINQ github repository.
  • โ€”Cite our <a href="http://arxiv.org/abs/2509.22944" target="_blank"><strong>paper</strong></a>:
bibtex
@misc{muller2025sinq,
      title={SINQ: Sinkhorn-Normalized Quantization for Calibration-Free Low-Precision LLM Weights}, 
      author={Lorenz K. Muller and Philippe Bich and Jiawei Zhuang and Ahmet Celik and Luca Benfenati and Lukas Cavigelli},
      year={2025},
      eprint={2509.22944},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={http://arxiv.org/abs/2509.22944}
}