An int4 quant of orcarouter/Qwen3.8-27B-Uncensored
(an abliterated finetune of Qwen/Qwen3.8-27B by OrcaRouter). I made it to run on a single Intel Arc Pro B70.
It's asymmetric int4, group 128, GPTQ with an MSE clip search, stored in standard GPTQ v1 format (sym: false).
The vision tower, the MTP head and the lm_head stay BF16.
Made by @imdariotoo. I post my B70 and local-model releases on X, so follow there for the next ones.
Safety: this inherits the base model's removed refusal behaviour. It has no meaningful built-in guardrails. Read the base model card for its intended-use terms. Use it responsibly and within the Apache-2.0 license.
KL divergence over the top-20 logits on held-out 2048-token windows (lower is better):
| private chat | code | technical prose | all | top-1 agree | |
|---|---|---|---|---|---|
| symmetric GPTQ int4 g128 (usual recipe) | 0.038 | 0.078 | 0.096 | 0.069 | 91.9% |
| this quant | 0.018 | 0.040 | 0.060 | 0.038 | 94.1% |
The served version (fp8 lm_head, see the cookbook) measures KL 0.039 end to end. On the arithmetic canary from the B70
cookbook it scores 5/6 vs 4/6 for symmetric GPTQ (miss: sum(i*i for i in range(4)) -> 30). That canary is only 6
greedy near-tie questions, so treat it as noise. On the stock model a 100-question version showed no real difference
between quants.
Built for and tested on Intel Arc Pro B70 + vLLM XPU v0.31.0 and v0.32.0 with the launcher and B70 vLLM changes in riceharvest/b70-qwen38-cookbook. That setup gives 262K context with vision, MTP k=4, and fp8 KV on one card.
hf download darioooooo0o/Qwen3.8-27B-Uncensored-GPTQ-Int4-asym --local-dir qwen38-uncensored-b70
MODEL_DIR=$PWD/qwen38-uncensored-b70 ./serve.sh # from the cookbook repo
On a B70 at 275 W, one request at a time. These were measured with a draft vocab tuned on my own traffic; the cookbook's public vocab gives the same ms/step and slightly different tokens/step:
| Decode, short prompts (greedy) | 64-128 tok/s depending on content (35 ms per MTP verify step) |
| Decode at 65K / 100K context | ~79 / 65-70 tok/s greedy, ~64 sampled (43 / 46 ms per step) |
| Prefill | ~2050 tok/s at 6K, ~1450 at 74K |
| Context | 262,144 tokens, ~320K-token KV pool |
Prebuilt image: ghcr.io/riceharvest/b70-vllm:v0.32.0-b70.7 (= :latest, vLLM v0.32.0) has the B70 vLLM changes and kernels
baked in: docker run -d --device /dev/dri -v /dev/dri:/dev/dri:ro --shm-size 8g -p 8000:8000 -v ~/models:/models -e MODEL=darioooooo0o/Qwen3.8-27B-Uncensored-GPTQ-Int4-asym ghcr.io/riceharvest/b70-vllm:latest.
Many concurrent requests: add --mamba-ssm-cache-dtype float16 (after the image name, or B70_GDN_STATE=fp16 ./serve.sh).
Qwen3.8 stores its linear-attention (GDN) state in fp32 by default, and with many requests that state is a large part of what
the GPU reads per step. Measured on Qwen3.6-35B-A3B, which has the same GDN layers: 64 concurrent users went from 49 to 42-45
ms per token, with decode quality at the fp32 noise floor and gsm8k 98/100 vs 94/100
(details). Not measured on this model yet.
Other runtimes: the format is standard asymmetric GPTQ v1, so GPTQModel / transformers / vLLM on CUDA should load it. I only tested on Intel XPU. Stock vLLM XPU (v0.31, v0.32) does not load asym GPTQ correctly without the cookbook's asym GPTQ change (upstream PR vllm#61731).
b70quant.py from the cookbook. GPTQ (damp 0.01, act-order off), asym uint4 with per-group
scale + zero, and a clip search over 11 ratios minimizing |err|^2.4. One layer at a time on the B70, ~1 h.in_proj_a/in_proj_b.Credits: Qwen team (base model), OrcaRouter (finetune), SergiioB (B70 vLLM cookbook this builds on).
Questions or issues: reply to @imdariotoo on X or open a discussion on this repo.
model-extra0.safetensors 5.1 GBmodel-extra1.safetensors 1.8 GBmodel-layer10.safetensors 200 MBmodel-layer12.safetensors 200 MBmodel-layer13.safetensors 200 MBmodel-layer14.safetensors 200 MBmodel-layer16.safetensors 200 MBmodel-layer17.safetensors 200 MBmodel-layer18.safetensors 200 MBmodel-layer20.safetensors 200 MBmodel-layer21.safetensors 200 MBmodel-layer22.safetensors 200 MBmodel-layer24.safetensors 200 MBmodel-layer25.safetensors 200 MBmodel-layer26.safetensors 200 MBmodel-layer28.safetensors 200 MBmodel-layer29.safetensors 200 MBmodel-layer30.safetensors 200 MBmodel-layer32.safetensors 200 MBmodel-layer33.safetensors 200 MBmodel-layer34.safetensors 200 MBmodel-layer36.safetensors 200 MBmodel-layer37.safetensors 200 MBmodel-layer38.safetensors 200 MBmodel-layer40.safetensors 200 MBmodel-layer41.safetensors 200 MBmodel-layer42.safetensors 200 MBmodel-layer44.safetensors 200 MBmodel-layer45.safetensors 200 MBmodel-layer46.safetensors 200 MBmodel-layer48.safetensors 200 MBmodel-layer49.safetensors 200 MBmodel-layer50.safetensors 200 MBmodel-layer52.safetensors 200 MBmodel-layer53.safetensors 200 MBmodel-layer54.safetensors 200 MBmodel-layer56.safetensors 200 MBmodel-layer57.safetensors 200 MBmodel-layer58.safetensors 200 MBmodel-layer60.safetensors 200 MBmodel-layer61.safetensors 200 MBmodel-layer62.safetensors 200 MBmodel-layer00.safetensors 200 MBmodel-layer01.safetensors 200 MBmodel-layer02.safetensors 200 MBmodel-layer04.safetensors 200 MBmodel-layer05.safetensors 200 MBmodel-layer06.safetensors 200 MBmodel-layer08.safetensors 200 MBmodel-layer09.safetensors 200 MBmodel-layer11.safetensors 193 MBmodel-layer15.safetensors 193 MBmodel-layer19.safetensors 193 MBmodel-layer23.safetensors 193 MBmodel-layer27.safetensors 193 MBmodel-layer31.safetensors 193 MBmodel-layer35.safetensors 193 MBmodel-layer39.safetensors 193 MBmodel-layer43.safetensors 193 MBmodel-layer47.safetensors 193 MBmodel-layer51.safetensors 193 MBmodel-layer55.safetensors 193 MBmodel-layer59.safetensors 193 MBmodel-layer63.safetensors 193 MBmodel-layer03.safetensors 193 MBmodel-layer07.safetensors 193 MBorcarouter/Qwen3.8-27B-Uncensored