Views
No views yet
GPTQ INT4 quantization ofQwen/Qwen3.6-27B. 3× smaller. ~2.4× faster.
| BF16 baseline | GPTQ INT4 (this model) | |
|---|---|---|
| VRAM at load | ~54 GB | ~14 GB (3.9× smaller) |
| Bits / weight | 16 | 4.29 (3.7× fewer) |
Note: MMLU-Redux uses a 1500-sample subset; other tasks are full. Decoding/prompts/filters are lm-eval-harness defaults, so absolute scores may differ from the official Qwen3.6-27B numbers. The goal is the BF16↔INT4 delta under identical conditions, not exact replication of the baseline.
temperature=0), enable_thinking=False, seed=0. Long-CoT tasks use max_gen_toks=4096; HumanEval served via /v1/completions (raw, no chat template) so the harness's \\ndef / \\nclass stop sequences fire correctly.| Setting | Value |
|---|---|
| Method | GPTQ |
| Bits | 4 (weight-only) |
| Group size | 128 |
desc_act | True (activation-order) |
damp_percent | 0.01 |
| Symmetric | True |
| Calibration | C4 (en), 256 samples × 2048 tokens |
| Tool | GPTQModel v7 |
| Effective bits / weight | 4.29 BPW |
model.visual.*) is intentionally left in BF16 — only the language-model weights are quantized.1from gptqmodel import GPTQModel
2from transformers import AutoTokenizer
3
4model_id = "AxisQuant/Qwen3.6-27b-gptq-int4"
5tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
6model = GPTQModel.load(model_id, device_map="auto", trust_remote_code=True)
7
8messages = [{"role": "user", "content": "Explain GPTQ in one sentence."}]
9text = tokenizer.apply_chat_template(
10 messages, tokenize=False, add_generation_prompt=True, enable_thinking=False,
11)
12inputs = tokenizer(text, return_tensors="pt").to(model.device)
13out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
14print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "AxisQuant/Qwen3.6-27b-gptq-int4"
4tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
5model = AutoModelForCausalLM.from_pretrained(
6 model_id, device_map="auto", trust_remote_code=True,
7)enable_thinking=True) works but is significantly slower — enable only when reasoning quality matters more than latencyQwen/Qwen3.6-27B model page for terms.1@misc{qwen3.6-27b,
2 title = {{Qwen3.6-27B}: Flagship-Level Coding in a {27B} Dense Model},
3 author = {{Qwen Team}},
4 month = {April},
5 year = {2026},
6 url = {https://qwen.ai/blog?id=qwen3.6-27b}
7}1@article{frantar2022gptq,
2 title = {{GPTQ}: Accurate Post-training Compression for Generative Pretrained Transformers},
3 author = {Frantar, Elias and Ashkboos, Saleh and Hoefler, Torsten and Alistarh, Dan},
4 journal = {arXiv preprint arXiv:2210.17323},
5 year = {2022}
6}