Views
No views yet
[!IMPORTANT] Naming notice (2026-04-10). The "HLWQ" technique used in this model is being rebranded to HLWQ (Hadamard-Lloyd Weight Quantization). The change is only the name; the algorithm and the weights in this repository are unchanged.The rebrand resolves a name collision with an unrelated, earlier KV cache quantization method also named HLWQ (Han et al., arXiv:2502.02617, 2025). HLWQ addresses weight quantization with a deterministic Walsh-Hadamard rotation and Lloyd-Max scalar codebook; Han et al.'s HLWQ addresses KV cache quantization with a random polar rotation. The two methods are technically distinct.Existing loaders that load this repository by ID continue to work without changes. Future model uploads will use the HLWQ name.Reference paper for this technique: arXiv:2603.29078 (v2 in preparation; v1 still uses the old name).
1pip install vllm
2vllm serve caiovicentino1/Qwen3.5-9B-HLWQ-Q5 --language-model-only --enforce-eagerpip install polarquant, no custom code.| GPU | tok/s |
|---|---|
| A100 80GB | 168 tok/s (9B) |
| RTX PRO 6000 96GB | 44 tok/s (9B) / 18 tok/s (27B) |
pip install polarquant1import polarengine_vllm # auto-registers with transformers
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model = AutoModelForCausalLM.from_pretrained("caiovicentino1/Qwen3.5-9B-HLWQ-Q5", device_map="auto", trust_remote_code=True)
5tokenizer = AutoTokenizer.from_pretrained("caiovicentino1/Qwen3.5-9B-HLWQ-Q5", trust_remote_code=True)
6
7inputs = tokenizer("Hello!", return_tensors="pt").to("cuda")
8out = model.generate(**inputs, max_new_tokens=100)
9print(tokenizer.decode(out[0], skip_special_tokens=True))| GPU | VRAM | Works? | Expected tok/s |
|---|---|---|---|
| RTX 4060 | 8 GB | YES | ~20 |
| RTX 3060/4070 | 12 GB | YES | ~30 |
| RTX 4080 | 16 GB | YES | ~35 |
| RTX 4090 | 24 GB | YES | ~40 |
| A100 | 80 GB | YES | ~168 |
| Method | PPL (lower = better) |
|---|---|
| BF16 baseline | 6.37 |
| HLWQ → INT4 | 6.56 |
| Direct INT4 | 6.68 |
| Flag | Why |
|---|---|
--language-model-only | Qwen3.5 is multimodal — this skips the vision encoder (we only quantized text) |
--enforce-eager | Required on Blackwell GPUs (cc 12.0). Optional on A100/H100 (faster without it) |
pip install polarquant