Qwen3.8-27B-GGUF Updated with New Tensor Layout
The Qwen3.8-27B-GGUF model has been updated with a new tensor layout, improving performance and efficiency. This release uses the llama.cpp framework version b10896 for quantization. The model is now available in various sizes: Q4KM (17.44GB), Q4KL (15.28GB), Q3KXL (12.8GB), Q3KM (11.1GB), and Q2KL (8.96GB). These updates include per-tensor layouts that enhance the model's performance,…
Key points
- Qwen3.8-27B-GGUF model has been updated
- New tensor layout improves performance and efficiency
- Available in sizes Q4KM (17.44GB), Q4KL (15.28GB), Q3KXL (12.8GB), Q3KM (11.1GB), and Q2KL (8.96GB)
bartowski/Qwen3.8-27B-GGUF · Hugging Face - Updated (Per-tensor layout)
huggingface.co · 12 September 2026
Llamacpp imatrix Quantizations of Qwen3.8-27B by Qwen
Using llama.cpp release b10896 for quantization.
Original model: https://huggingface.co/Qwen/Qwen3.8-27B
Model details:
- Parameter count: 28B
- Input support: text, image (with mmproj file) - details
- Speculative decoding: yes (MTP) - details
- imatrix: yes - details
- Perplexity/KLD measured: yes - details
How to run
Prompt format
<|im_start|>system
Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.
{system_prompt}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
<think>
Don't know which to choose? Grab Q4_K_M (17.44GB) - usually a good mix of size and performance. Download instructions available here
Updates 11-09-2026
Re-uploaded using my new tensor-layout!
Here's some graphs showing the relative performance between the previous files and the new ones:
You'll note not everything is 100% perfect, but overall everything gets shoved to the ideal quandrant, which is great!
Note that Q2_K_L, Q3_K_XL, and Q5_K_L are no longer being created and so were not updated, they still exist in this repo. If I see a need to introduce them again, I'll consider it, but I think the curve is already pretty nice.
Available files:
Download a specific file:
hf download bartowski/Qwen3.8-27B-GGUF --include "Qwen3.8-27B-Q4_K_M.gguf" --local-dir ./
Downloading using the Hugging Face CLI
Click to view download instructions
First, make sure you have the Hugging Face CLI installed:
pip install -U "huggingface_hub[cli]"
Download a specific file:
hf download bartowski/Qwen3.8-27B-GGUF --include "Qwen3.8-27B-Q4_K_M.gguf" --local-dir ./
How to run
These quants run with llama.cpp - installable in one line via llama.app:
curl -LsSf https://llama.app/install.sh | sh
llama-server -hf bartowski/Qwen3.8-27B-GGUF:Q4_K_M
llama-server includes a built-in chat web UI, served at http://localhost:8080 by default.
These quants were made with llama.cpp release b10896 - if this model's architecture is newly supported, you'll need that release or newer to run them.
They also work in: LM Studio · koboldcpp · ramalama · Jan AI · Text Generation Web UI · LoLLMs · Atomic Chat
Multimodal
This model supports image input. Alongside the quants, this repo includes the multimodal projector files mmproj-Qwen3.8-27B-f16.gguf and mmproj-Qwen3.8-27B-bf16.gguf, which pair with any quant above.
llama.cpp downloads the mmproj automatically when using -hf as shown above; if you're loading files manually, pass it with --mmproj.
MTP
This model has MTP (Multi-Token Prediction) layers, and they are included in these quants
MTP layers act as a built-in draft model, letting llama.cpp run speculative decoding for faster generation. To use them, add the following flag to your llama.cpp command:
--spec-type draft-mtp
Note: the MTP layers are stored at Q4_0 in the imatrix quants (except for the Q8_0 quant), since imatrix calibration does not exercise them. Q4_0 is chosen for its speed which massively benefits MTP performance.
Per-tensor layouts
Some of these files were built with a layout computed for this model instead of llama.cpp's standard one-size-fits-all rules. A Q4_K_M is still mostly Q4_K; the extra precision goes to the weights this particular model is most sensitive to. The S, M or L in a name says how much of the model stays at the base precision: about 90 % for S, 70 % for M and 50 % for L. An _L name is simply the large size of its family. Q4_K_L is to Q4_K_M what Q4_K_M is to Q4_K_S; Q6_K_S, Q6_K and Q6_K_L are the small, medium and large sizes of Q6_K, with Q6_K_L about halfway to Q8_0. In earlier releases an _L name meant the embedding and output weights were kept at Q8_0; in these files it means the larger size of the base type. There is no size target, so each file's bits per weight is reported rather than promised.
The layout each of these files was built with is published in the layouts/ folder: <file>.tensor-types.txt is the exact --tensor-type-file given to llama-quantize, and <file>.layout.json records how it was computed, including the generator version, the llama.cpp release and the commit, so any of them can be rebuilt.
Checked on this model before any of these files were released: Q6_K reached 0.96×, Q4_K_M 0.94×, Q3_K_M 0.79× and IQ2_XXS 0.78× the KL divergence of the standard layout at the same file size.
These files replace an earlier release of this model that used the standard layout. Every file of both releases was measured the same way, against the same bf16 reference on the same text, and the full side-by-side is in the "Compared with the previous release" fold below.
Layout details
Files built from a computed layout:
Checked on this model: the computed layout against the standard one, measured by KL divergence against the unquantized model. The ratio compares each computed file with the standard ladder read at that file's own size, so it can differ from the two KLD columns when the two files differ in size.
How it works: the base type is a floor for every body tensor and a fixed share of the body bytes stays at it (90 % for S, 70 % for M, 50 % for L); the remaining bytes go where a cross-model sensitivity prior, measured by KL divergence against the unquantized model, says they buy the most quality. The embedding and output tensors are sized by their share of the file: a small table is kept at Q8_0, a large one follows the file's bitrate. A K-quant and the IQ quant with the same base bitrate (Q3_K_S and IQ3_XS, Q3_K_M and IQ3_S, Q3_K_L and IQ3_M) come out at about the same size; the IQ file is the GPU-oriented twin.
Compared with the previous release
The previous release of this model used llama.cpp's standard layout; these files use the computed one. Both sets were measured against the same bf16 reference on wiki.test.raw over 100 chunks, so the numbers are directly comparable. "Same top-p" is the share of tokens where the quantized model's most likely next token matches the bf16 model's. Q4_0, Q4_1 and Q8_0 are left out because the layout does not touch them. The previous release's Q2_K_L, Q3_K_XL and Q5_K_L have no counterpart here: an _L name now means the large size of its family, so those names are no longer built. Q6_K_S is new in this release, the small size of Q6_K, and has no previous counterpart.
Perplexity
Perplexity and KL divergence measured against the bf16 model on wiki.test.raw over 100 chunks.
Click to view full KL-divergence statistics
- Reference model: bf16
- Dataset: wiki.test.raw
- Chunks: 100
- Base PPL: 6.744 ± 0.10317
- llama.cpp build: b10896
Summary
KLD percentile ladder
Also available as perplexity.md.
imatrix
All quants made using imatrix option with dataset from here. The imatrix is available here: Qwen3.8-27B-imatrix.gguf.
ARM/AVX information
llama.cpp automatically "repacks" weights into an interleaved layout at load time for faster inference on ARM and AVX machines - details in this PR. This once required downloading special Q4_0_4_4/4_8/8_8 files; those are long gone. Online repacking now covers Q4_0, IQ4_NL, and most K-quants, so no special quant choice is needed for CPU inference.
Which file should I choose?
An older (early 2024) but still useful write-up with charts comparing quant performances is provided by Artefact2 here
The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
Hugging Face can also do this math for you: add your hardware in your Local Apps settings and the model page will show which files fit.
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
If you want to get more into the weeds, you can check out this extremely useful feature chart:
llama.cpp feature matrix
But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
These I-quants can also be used on CPU, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
Credits
Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.
Thank you ZeroWw for the inspiration to experiment with embed/output.
Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
This text was published by huggingface.co . It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗
Coverage and discussion
1 source- Reddit discussion reddit.com
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us.
More in Generative AI & Models
All →- OpenAI Expands ChatGPT Images with 2.5 Model · 3 src
- OpenAI advises trimming prompts and guardrails for GPT‑6 Astra · 1 src
- Scientists Turn to ChatGPT for Daughter's Health Clues · 2 src
- Benchmark Saturation: Why Leading Systems Approach Ceiling · 1 src
- Benchmarking Qwen 3.8: Config Matters in AI Models · 1 src
Comments
via GitHub Discussions