Views
No views yet
| Setting | Value |
|---|---|
| Tool | gptqmodel 7.1.0 (verified current/maintained at build time — autoawq/auto-gptq are stale as of 2026) |
| Method | GPTQ |
| Bits | 4 |
| Group size | 128 |
| Calibration dataset | Salesforce/wikitext wikitext-2-raw-v1, train split |
| Calibration samples | 128 texts, minimum 512 characters each |
| Batch size | 1 |
| Hardware | RTX 3050 Laptop, 4GB VRAM |
1from gptqmodel import GPTQModel, QuantizeConfig
2from datasets import load_dataset
3
4ds = load_dataset("Salesforce/wikitext", "wikitext-2-raw-v1", split="train")
5texts = [r["text"].strip() for r in ds if len(r["text"].strip()) >= 512][:128]
6
7quant_config = QuantizeConfig(bits=4, group_size=128)
8model = GPTQModel.load("deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B", quant_config)
9model.quantize(calibration=texts, batch_size=1)
10model.save("./out-gptq-4bit")| Metric | Value |
|---|---|
| Acc (pass@1) | 0.750 (9/12) |
| Mean Thinking-Length | 317.4 tokens |
| Cost-to-Solve | 1025.1 tokens/correct answer |
| Truncation rate | 0.0 |
Peak VRAM (inference, BACKEND.TORCH) | 1.63 GB |
gptqmodel's own BACKEND.TORCH inference path (pure PyTorch — the Marlin/Triton kernels need nvcc to JIT-compile, which this driver-only machine doesn't have; see the reproduce command below). Note the VRAM figure here is measured via torch.cuda.max_memory_allocated(), not the nvidia-smi-based measurement used for the GGUF quants elsewhere in this project — the two aren't directly comparable without accounting for that methodology difference.1git clone https://github.com/Happynood/quant-reasoning-bench
2cd quant-reasoning-bench
3uv sync --extra datasets # for data/suite/gsm8k_e1.jsonl if not already present
4pip install gptqmodel torch transformers accelerate ninja
5python -c "
6from gptqmodel import GPTQModel
7from gptqmodel.utils.backend import BACKEND
8model = GPTQModel.load('happynood/DeepSeek-R1-Distill-Qwen-1.5B-GPTQ', backend=BACKEND.TORCH)
9# ... generate against data/suite/gsm8k_e1.jsonl using quantthink.eval.{extractor,checkers}
10"