CoolFace
Modelpublic

tooltd/Qwen3.8-27B-IQ4-XS-16GB-VRAM-GGUF

sourceHugging Faceapache-2.0updated 7d agoView on Hugging Face
20likes43kdownloads
Model Card

Qwen3.8-27B (GGUF target for 16GB VRAM)

  • —This repository provides GGUF quantizations for Qwen3.8-27B optimized using ZB-ZipBrain, a custom mixed-precision quantization methodology that optimizes LLM tensor bit allocation using rate-distortion marginal cost combined with importance matrix calibration. It automatically identifies Pareto-optimal BPW "sweet spots" to maximize model quality while fitting precise VRAM and memory footprints.
  • —Specifically optimized to fit mainstream GPUs within a 16GB VRAM budget at around 4 BPW, and even 12GB VRAM cards at around 3 BPW.
  • —For filenames marked with v5, I combined ZB + Pelicanmaxxing for visual evaluation, iteratively tuning until the output reached the most stable quality before locking it in.

image

Benchmark & Evaluation Results

EvalPlus Benchmark Results

  • —HumanEval: 164 tasks
  • —MBPP: 378 tasks
  • —Scores are pass@1, no-thinking mode , kvcache ctk q40, ctv q40
  • —“—” indicates data not provided.
QuantizationHumanEvalHumanEval+MBPPMBPP+Note
ZB4.00-MIN-v5.1-IQ4_XS0.9450.9210.8970.780👑💀
Qwen3.8-27B-IQ4_NL0.9510.9150.9020.778bartowski
ZB3.88-MIN-v5-IQ3_M_XL0.9450.9150.910.775—
~~ZB4.00-MIN-v5-IQ4_XS~~~~0.927~~~~0.902~~——~~oldver~~
GSQ-RCO-BuffedMod0.9210.8900.8970.772ISTA+Mod
Qwen3.8-27B-Ridge-3.7bpw0.9330.8960.9020.765empero-ai
ZB3.73-MIN-v5.1-IQ3_M_L0.9270.8960.8810.757—
~~ZB3.70-MIN-v4-IQ3_M_L~~~~0.915~~~~0.896~~~~0.873~~~~0.754~~~~oldver~~
ZB3.00bpw-IQ3_XXS0.9270.8840.8650.743—
UD3-IQ4_XS0.8900.8660.8970.751unsloth
UD3-Q3KXL0.8230.8050.8810.751unsloth

Comprehensive Comparison Table

Command llama-perplexity.exe -f /wikitext-2-raw/wiki.test.raw --kl-divergence --kl-divergence-base q38f16baseline.kld -ngl 99 -m model.gguf

All models were evaluated against the BF16 baseline (Mean PPL = 6.950493) using standard Perplexity (PPL) and KL Divergence metrics.

LabelProviderSize (GB)Mean KLDSame Top-p (%)Mean PPL
UD-Q8KXLunsloth old29.300.00085098.970%6.953800
UD-Q6KXLunsloth old24.140.00138098.520%6.953600
Q6_Kunsloth old21.310.00229097.860%6.950700
Q5KMunsloth old18.470.00622096.700%6.974200
UD-Q4KXLunsloth old16.690.00860696.091%6.979220
ZB4.97-GOD-IQ4_XSZB-GOD15.820.01224995.337%7.004243
UD3-Q4KSunsloth UD314.300.01365295.149%6.969514
Autoround-Q4KMAutoround15.660.01465794.859%6.950294
ZB4.65-PRO-IQ4_XSZB-PRO14.810.01546694.766%7.017278
Q4KMunsloth old15.930.01549094.650%6.956100
ZB4.60-PRO-IQ4_XSZB-PRO14.650.01616294.668%7.030895
ZB4.55-PRO-IQ4_XSZB-PRO14.490.01664794.613%7.032263
IQ4_NLbartowski15.200.01842794.230%7.006472
IQ4_XSunsloth old14.630.01865294.270%7.012695
UD3-IQ4_XSunsloth UD313.270.01877293.975%7.004732
ZB4.48-STD-IQ4_XSZB-STD14.260.01889294.199%7.050096
Q4KSunsloth old15.010.01892194.235%6.966826
IQ4_XS-i1mradermacher14.260.01927194.141%7.012810
Q4KS-i1mradermacher14.740.01980593.996%6.989551
ZB4.36-STD-IQ4_XSZB-STD13.880.02055693.951%7.054811
ZB4.36-STD-v4-IQ4_XSZB-STD13.880.02155293.886%6.993211
Q4_0-AutoRound-Codewebhie14.640.02658692.970%7.067142
ZB4.14-MIN-IQ4_XSZB-MIN13.190.02933492.799%7.045689
⭐[ZB4.00-MIN-v5.1-IQ4_XS](https://huggingface.co/tooltd/Qwen3.8-27B-IQ4-XS-16GB-VRAM-GGUF/blob/main/Qwen3.8-27B-ZB4.00-MIN-v5.1-IQ4_XS.gguf)ZB-MIN12.740.03381092.309%7.106519
~~ZB4.00-MIN-v5-IQ4_XS~~ZB-MIN12.790.03457792.277%7.090583
⭐[ZB3.88-MIN-v5-IQ3_M_XL](https://huggingface.co/tooltd/Qwen3.8-27B-IQ4-XS-16GB-VRAM-GGUF/blob/main/Qwen3.8-27B-ZB3.88-MIN-v5-IQ3_M_XL.gguf)ZB-MIN12.340.04216491.452%7.132594
IQ4_XS-3.84bpwbyteshape12.180.04951390.989%7.158078
⭐[ZB3.73-MIN-v5.1-IQ3_M_L](https://huggingface.co/tooltd/Qwen3.8-27B-IQ4-XS-16GB-VRAM-GGUF/blob/main/Qwen3.8-27B-ZB3.73-MIN-v5.1-IQ3_M_L.gguf)ZB-MIN11.880.04811790.759%7.199937
⭐[GSQ-RCO-BuffedMod](https://huggingface.co/tooltd/Qwen3.8-27B-GSQ-RCO-BuffedMod-GGUF/blob/main/Qwen3.8-27B-GSQ-RCO-BuffedMod-IQ3_S_XL-mtp-IQ4XS.gguf)ISTA+Mod11.490.05173890.535%7.032142
GSQ-RCO-IQ3_SISTA11.290.05547589.657%7.062697
~~ZB3.70-MIN-v4-IQ3_M_L~~ZB-MIN11.820.05297290.363%7.160063
IQ4XS-Smaller3.96jrell12.610.05549990.090%7.252766
Ridge-3.7bpwempero-ai11.730.11843085.907%7.547496
ZB3.0BPW-IQ3_XXSZB-MIN9.620.12050385.320%7.474669

Update: Aug 20, 2026

  • —The newly released Unsloth Dynamic v3 is truly the best value for performance right now.
  • —My ZB is just an experiment, feel free to check it out for fun :)

Update: Aug 22, 2026

  • —Quant release ZB-4.00 BPW runs cleanly on 16GB VRAM with MTP support and up to 95K context length.

Update: Aug 24, 2026

  • —ZBv3-4.00BPW update maintaining size with KLD and Same top-p performs slightly better. ZBv2-4.00BPW -> ZBv3-4.00BPW: output weights were bumped from Q5K to Q6K. Testing shows sharper, more consistent outputs and better one-shot performance. => Go with ZBv3-4.00BPW.
  • —ZB3.7-MIN ⚔️ empero-ai/Qwen3.8-27B-Ridge. 🤣
  • —I have just updated empero-ai/Qwen3.8-27B-Ridge. benchmarks; comparing my ZB 3.7bpw metrics, it looks like it easily beats down Qwen3.8-27B-Ridge

Update: Aug 26, 2026

  • —ZB3.7-MIN-v4 update PPL slightly better

Update: Aug 28, 2026

  • —All use Q6_K for output.weight
  • —Please prioritize later development versions, I have removed older ones because I was not satisfied with them.
  • —Quant release 4.00bpw & 3.88bpw v5 (v5 = ZB + Pelicanmaxxing and visually check for other aspects of stability. )
  • —ZB3.88-MIN-v5-IQ3_M_XL ⚔️ UD3-Q3_K_XL 😎 If anyone has used this pair, please let me know what you think.
  • —3.0BPW-IQ3_XXS: New release size only 9.62 GB 🙀 with metric comparable to Ridge—3.7 bpw.

Update: Sep 5, 2026

  • —ZB4.00-MIN-v5.1-IQ4_XS This version has been updated so that all tensors are ≥ IQ3XXS , previous version contained some IQ2S tensors. Quality is slightly improved, new file size saves 50MB.

Update: Sep 8, 2026

  • —ZB3.73-MIN-v5.1-IQ3_M_L Added new 3.73 bpw. Updated all tensors ≥ IQ3XXS, quality is slightly improved. Change for ZB3.70-MIN-v4-IQ3M_L.
  • —Added HumanEval, MBPP benchmark

Recommended Settings: Set reasoning_effort to medium. At this BPW level, it delivers much more stable outputs and fits well in agentic workflows. You can also use the default settings for higher quality, though it will take longer.

llama-server -m models/qwen38/Qwen3.8-27B-ZB4.00-MIN-IQ4_XS.gguf -mm models/qwen38/Qwen3.8-27B-mmproj-BF16.gguf --host 0.0.0.0 --port 8080 --temp 1 --top-p 0.95 --top-k 20 --min-p 0.00 --reasoning-preserve -ctk q4_0 -ctv q4_0 -fa on --ubatch-size 384 --batch-size 384 --no-mmproj-offload --spec-type draft-mtp,ngram-mod --spec-draft-n-max 2 --spec-ngram-mod-n-match 24 --spec-ngram-mod-n-min 24 --spec-ngram-mod-n-max 32 -ngl 99 -t 7 --ctx-size 95000 -np 1 --load-mode mlock --image-min-tokens 1024 --image-max-tokens 2048 --chat-template-kwargs '{\"reasoning_effort\": \"medium\"}'

ZB Tiers & Recommendations

  • —ZB-GOD : God. A singularity appears. Reaches 0.012249 Mean KLD and 95.34% top-probability match.
  • —ZB-PRO : Pro. For 16 GB VRAM GPUs with offloading on CPU. Balances quality output with substantial size savings.
  • —ZB-STD : Standard. Similar to other standard IQ4_XS models currently available.
  • —ZB-MIN : Minimal. Optimal footprint for tight 16 GB memory setups, allowing headroom for longer context windows

Credits & Acknowledgements

  • —Base Model: Qwen3.8 27B by Alibaba Cloud / Qwen Team.
  • —BF16 Base GGUF: Provided by Unsloth AI.
  • —Importance Matrix (imatrix): Generated and curated by ubergarm.
  • —Inference & Quantization Framework: llama.cpp by Georgi Gerganov and contributors.