Qwen3.8-27B turned into a Mixture-of-Experts model: the same weights, split into experts, with a router that uses only part of each feed-forward layer per token. It generates about 1.5× faster on an 8 GB GPU (model partly in system RAM) and stays close to the original in quality.
| Qwen3.8-27B | Qwen3.8-27B-MoE | |
|---|---|---|
| parameters | 27.3B | 27.3B (same weights, regrouped) |
| non-embedding parameters used per token | 24.4B | 17.8B |
| feed-forward layer | dense | 32 experts × 512 neurons + shared expert of 1,024, 19 of 32 active |
| generation, RTX 5060 8 GB + RAM (Q4_K_M) | 3.2–4.1 tok/s | 5.4–6.1 tok/s (1.47–1.68×) |
| generation, 2× T4, whole model on GPU (Q4_K_M) | 13.5 tok/s | 16.3 tok/s (1.21×) |
| MMLU / GSM8K / valid tool calls | 83.5 / 79.9 / 93.8% | 78.6 / 83.6 / 95.8% |
| thinking and non-thinking modes | yes | yes (same chat template) |
| multi-token prediction head | yes | yes (MoE, healed), works as a draft model in llama.cpp |
| vision encoder | yes | kept unchanged, not evaluated |
GGUF quants (Q8_0, Q4_K_M, IQ4_XS and a 16 GB Mac file) are in thatacube/Qwen3.8-27B-MoE-GGUF.
llama-server -hf thatacube/Qwen3.8-27B-MoE-GGUF:Q4_K_M -c 16384 -ctk q8_0 -ctv q8_0 -fa on --fit on
-hf downloads the file; with a file already on disk use -m <file>.gguf.--fit on puts as much as fits on the GPU and moves expert tensors to system RAM first. A manual alternative
is -ngl 99 -ncmoe N (the experts of N layers stay in RAM).-ngl 99 -ncmoe 65, all 64 layers and the MTP
layer). The rest of the model with a 16k KV cache already takes about 7.3 GB; two expert layers more on the GPU
overflowed VRAM and halved the speed (RTX 5060). N = 60 was the best only with almost no context.--spec-type draft-mtp --spec-draft-n-max 3) helped when
the whole model was on the GPU (2× T4: 67% of the drafts accepted, 1.08× faster). With the experts in system RAM
it slowed generation down (RTX 5060: 35–40% accepted, 5.0–5.4 instead of 5.7 tok/s), so leave it off there.LM Studio (load settings of the model):
Which file for which hardware:
| hardware | file | note |
|---|---|---|
| 8–12 GB GPU, 32 GB RAM | Q4_K_M or IQ4_XS | measured on RTX 5060 8 GB: 5.4–6.1 tok/s |
| 16 GB GPU | IQ4_XS | weights 14.3 GiB: with real context a few layers' experts go to RAM (not measured) |
| 24 GB GPU or 2× 16 GB | Q4_K_M | whole model on GPU; measured on 2× T4: 16.3 tok/s |
| Mac with 16 GB | IQ3_XXS-mac16 | the only one that fits; clearly lower quality (see Files); not tested on Apple hardware |
| Mac with 24 GB | IQ4_XS | not tested on Apple hardware |
| 32 GB+ unified memory, or more VRAM | Q4_K_M or Q8_0 |
This repository: the bf16 weights (model-*.safetensors, 55.6 GB) for transformers, vLLM and your own quants.
GGUF quants: thatacube/Qwen3.8-27B-MoE-GGUF.
| GGUF | size | KL / top-1 vs Q8_0 |
|---|---|---|
| Q8_0 | 29.1 GB | reference |
| Q4_K_M (recommended) | 16.85 GB | 0.031 / 93.3% |
| IQ4_XS | 15.35 GB | 0.033 / 92.4% |
| IQ3_XXS-mac16 (experts IQ2_XXS, rest IQ3_XXS) | 9.35 GB | 0.217 / 80.3% |
| RTX 5060 8 GB, Ryzen 5 5600, 32 GB RAM (tokens/s) | dense Q4_K_M | MoE Q4_K_M | speed-up |
|---|---|---|---|
| llama.cpp auto split, context 0 | 3.72 | 5.47 | 1.47× |
| llama.cpp auto split, context 4,096 | 3.22 | 5.40 | 1.68× |
| best manual split | 4.06 | 6.08 | 1.50× |
| 2× Tesla T4, whole model on GPU (tokens/s) | dense Q4_K_M | MoE Q4_K_M | speed-up |
|---|---|---|---|
| context 0 | 13.48 | 16.34 | 1.21× |
| context 4,096 | 13.20 | 16.11 | 1.22× |
| context 128k (KV cache q8_0) | 3.27 | 3.46 | 1.06× |
| context 256k (KV cache q8_0) | 1.45 | 1.65 | 1.14× |
llama-bench tg128 (generation of 128 tokens), llama.cpp b12110. Prompt processing is on par with the dense model
(0.91–1.01×).-ncmoe 60 (MoE) and -ngl 28 (dense), measured with almost no context. With a 16k
context the MoE needs all experts in RAM on this card: 5.68 tok/s in LM Studio (its own llama.cpp build,
KV cache q8_0, MTP off, 512-token answer).Both models in bf16 on the same questions (JAX on TPU, lm-evaluation-harness 0.4.13 with a JAX backend). Next to each score: the difference to the original with a 95% bootstrap interval, and the share of questions where this model gives the same answer as the original.
| benchmark | Qwen3.8-27B | Qwen3.8-27B-MoE | difference | same answer |
|---|---|---|---|---|
| MMLU (14,042, 0-shot) | 83.5% | 78.6% | −4.9 [−5.5, −4.3] | 85.4% |
| ARC-Easy + ARC-Challenge | 74.2% | 73.4% | −0.8 [−1.8, +0.3] | 86.6% |
| HellaSwag (3,000, acc_norm) | 82.4% | 78.7% | −3.6 [−4.5, −2.7] | 92.9% |
| Belebele, 15 languages | 89.2% | 84.5% | −4.8 [−5.2, −4.2] | 88.6% |
| GSM8K (1,319, chat, no thinking) | 79.9% | 83.6% | +3.7 [+2.0, +5.5] | 76.3% |
| tool calls: valid call | 93.8% | 95.8% | +2.0 | same function 98.5% |
| needle in a haystack, 4k–32k | 100% | 100% | 0 |
By language (Belebele): English −2.2; French, Spanish, Italian −1.2 to −1.4; Chinese, Russian −1.7; German, Japanese, Korean, Turkish about −3; Arabic −3.9; Polish −4.2; Urdu −6.2; Swahili −16.0, Amharic −19.1. Low-resource languages lose the most; for them the original is the better choice.
Next-token fidelity (held-out data; KL divergence from the original's next-token distribution, 0 = identical, and how often both pick the same most likely token):
| data | KL | same top-1 token |
|---|---|---|
| text, 4k tokens | 0.268 | 81.4% |
| long documents, 16k tokens | 0.180 | 85.4% |
| agent conversations | 0.124 | 88.6% |
transformers (tested with 5.22.1, architecture Qwen3_5MoeForConditionalGeneration):
from transformers import AutoProcessor, Qwen3_5MoeForConditionalGeneration
model = Qwen3_5MoeForConditionalGeneration.from_pretrained("thatacube/Qwen3.8-27B-MoE", dtype="auto", device_map="auto")
processor = AutoProcessor.from_pretrained("thatacube/Qwen3.8-27B-MoE")
vLLM: not tested with this model. The checkpoint uses the layout of the official Qwen3.5-MoE models
(qwen3_5_moe), which vLLM supports, so vllm serve thatacube/Qwen3.8-27B-MoE is expected to work.
Apache-2.0, as the base model. This is a modified version of Qwen3.8-27B by the Qwen team: the feed-forward layers are regrouped into experts, routers are added and the weights are fine-tuned (merged LoRA). If you use it, please also cite Qwen (see the base model card).
Healing data, with attribution as required by their licenses:
model-00005-of-00012.safetensors 4.6 GiBmodel-00007-of-00012.safetensors 4.6 GiBmodel-00009-of-00012.safetensors 4.6 GiBmodel-00008-of-00012.safetensors 4.6 GiBmodel-00010-of-00012.safetensors 4.6 GiBmodel-00004-of-00012.safetensors 4.6 GiBmodel-00006-of-00012.safetensors 4.6 GiBmodel-00002-of-00012.safetensors 4.5 GiBmodel-00003-of-00012.safetensors 4.5 GiBmodel-00011-of-00012.safetensors 4.4 GiBmodel-00012-of-00012.safetensors 3.8 GiBmodel-00001-of-00012.safetensors 2.4 GiBQwen/Qwen3.8-27B