Views
No views yet
| Scheme | W4A16 (4-bit weights, 16-bit activations) |
| Group size | 128 |
| Symmetric | yes |
| Format | auto_round:auto_gptq (GPTQ-compatible packing) |
| Calibration data | NeelNanda/pile-10k |
| Samples / seq len | 256 × 4096 |
| Iters / batch size | 512 / 4 |
| Seed | 42 |
| AutoRound version | 0.12.3 |
lm_head, embed_tokens, the vision tower (model.visual.*), the MTP module (mtp.*), and the linear_attn.in_proj_a / in_proj_b projections in every language-model layer.model-*.safetensors + model_extra_tensors.safetensorsoptimum, etc.) should work:1from transformers import AutoProcessor, AutoModelForImageTextToText
2import torch
3
4model_id = "DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-W4A16"
5processor = AutoProcessor.from_pretrained(model_id)
6model = AutoModelForImageTextToText.from_pretrained(
7 model_id,
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10)
11
12messages = [{"role": "user", "content": "Hello!"}]
13inputs = processor.apply_chat_template(
14 messages, add_generation_prompt=True, tokenize=True, return_tensors="pt"
15).to(model.device)
16
17out = model.generate(**inputs, max_new_tokens=128)
18print(processor.decode(out[0], skip_special_tokens=True))norm_quant/act_quant ops; first run compiles flashinfer/Triton kernels, which are then cached):1from vllm import LLM, SamplingParams
2
3llm = LLM(
4 model="DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-W4A16",
5 dtype="bfloat16",
6 max_model_len=16384,
7 enforce_eager=True, # optional: skip cuda-graph capture for faster startup
8)
9
10out = llm.generate(
11 ["Prove that the square root of 2 is irrational."],
12 SamplingParams(temperature=1.0, top_p=0.95, top_k=20, max_tokens=512),
13)
14print(out[0].outputs[0].text)1vllm serve DavidAU/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-W4A16 \
2 --dtype bfloat16 --max-model-len 16384 --port 80001auto-round \
2 --model /path/to/DavidAU_Qwen3.8-27B-Cold-Fusion-GAIN-V1.1 \
3 --scheme W4A16 \
4 --format auto_round \
5 --dataset NeelNanda/pile-10k \
6 --nsamples 256 \
7 --seqlen 4096 \
8 --batch_size 4 \
9 --iters 512 \
10 --device_map 0 \
11 --seed 42 \
12 --ignore_layers "model.language_model.layers.*.linear_attn.in_proj_a,model.language_model.layers.*.linear_attn.in_proj_b,lm_head,model.language_model.embed_tokens,model.visual.*,mtp.*" \
13 --output_dir /path/to/DavidAU_Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-W4A16generation_config.json (temperature 1.0, top_p 0.95, top_k 20); single run.| Benchmark | Setup | Base (bf16) | This model (W4A16) | Δ |
|---|---|---|---|---|
| WikiText2 PPL ↓ | full test set | 8.4621 | 8.6318 | +0.17 |
| MMLU | full test set (14,042 questions), 5-shot log-likelihood | 83.78% | 83.44% | −0.34 pt |
| HumanEval | full test set (164 problems), 0-shot, pass@1, sampled | 80.49% | 78.66% | −1.83 pt |
| ARC-Easy | full validation (2,376 questions), 5-shot log-likelihood | 84.60 ± 0.74% | 84.47 ± 0.74% | −0.13 pt |
| BBH (macro avg, 27 subjects) | full set (6,511 questions), 3-shot CoT | 89.69% | 88.98% | −0.72 pt |
logical deduction seven objects drops the most (65.2% → 49.2%); most other subjects are within ±1 pt, and several (e.g. disambiguation QA, salient translation error detection) are flat or slightly better.