license: apache-2.0
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
library_name: gguf
pipeline_tag: image-text-to-text
tags:
- gguf
- llama.cpp
- qwen4
- moe
- uncensored
- imatrix
Qwen4-35B-A3B-Uncensored — Q4 GGUF (Unsloth UD-IQ4_XS recipe)
A 4-bit GGUF of OpenUncensored/Qwen4-35B-A3B-Uncensored
(itself a fine-tune of Qwen/Qwen4-35B-A3B), sized to run fully on a single 24 GB GPU.
Uncensored model. The upstream fine-tune removes refusals. You are responsible for how you use it.
Refusal behaviour of this quant was not separately evaluated.
Files
| File | Size | What |
|---|---|---|
Qwen4-35B-A3B-Uncensored-UD-IQ4_XS.gguf |
32.0 GB | the model (text + MTP head) |
mmproj-BF16.gguf |
903 MB | vision projector (the stock Qwen4 vision tower — the uncensored fine-tune left it byte-identical) |
chat-template-tolerant.jinja |
11 KB | optional: stock template where an explicit reasoning_effort wins over enable_thinking (see below) |
tensor-types.txt |
22 KB | the per-tensor quant recipe used (llama-quantize --tensor-type-file) |
How it was made
- BF16 safetensors → Q8_0 GGUF with mainline llama.cpp's converter (Qwen4 support, PR #33626).
- Q8_0 → final quant with
llama-quantize --allow-requantize, using- the per-tensor types of Unsloth's Dynamic v3.1
UD-IQ4_XSfor stock Qwen4-35B-A3B, read from their GGUF header (tensor-types.txt: experts mostly IQ4_XS/Q4_K,outputQ6_K,token_embdQ5_K,per_layer_token_embdIQ4_NL), and - Unsloth's importance matrix for Qwen4-35B-A3B (computed on the stock model, applied here to the fine-tune).
- the per-tensor types of Unsloth's Dynamic v3.1
Requantizing from Q8_0 instead of BF16 (disk-space constraint) adds a tiny amount of error on top of the recipe.
All credit for the recipe and imatrix goes to Unsloth; this is not an official Unsloth release.
Running (llama.cpp, mainline, Dec 2026 or newer)
Tested on one RTX 4090 (24 GB): 131072 total context, 4 parallel slots, ~210 tok/s single-stream decode with MTP speculative decoding, ~23.5 GB VRAM.
llama-server -m Qwen4-35B-A3B-Uncensored-UD-IQ4_XS.gguf \
--mmproj mmproj-BF16.gguf --no-mmproj-offload \
-ngl 99 -ot per_layer_token_embd=CPU -fa on --jinja \
--ctx-size 131072 -ctk q8_0 -ctv q8_0 --parallel 4 --kv-unified \
--spec-type draft-mtp --spec-draft-n-max 2 \
--reasoning off # thinking per request via reasoning_effort / chat_template_kwargs
-ot per_layer_token_embd=CPUkeeps the large per-layer embedding table in system RAM (it is a lookup table, so the GPU keeps room for KV cache).- On 24 GB, 196608 and 262144 context failed to allocate compute buffers (even with
-ub 256); 131072 fits. - Recommended sampling (Qwen): thinking — temp 1.0, top_p 0.95, top_k 20; non-thinking — temp 0.7, top_p 0.8, presence_penalty 1.5.
Optional template
The stock template raises Conflicting thinking settings when the server defaults to enable_thinking=false
(--reasoning off) and a client sends reasoning_effort=high — Claude Code against llama.cpp's Anthropic endpoint does this.chat-template-tolerant.jinja changes only that block: an explicit reasoning_effort wins, otherwise enable_thinking decides.
Use it with --chat-template-file chat-template-tolerant.jinja.
Quick evaluation
A small private coding check (6 Python modules written one-shot from a spec, graded by 101 pytest tests, 3 samples, thinking off, temp 0.2):
| Model | Tests passed (3 runs) | Mean | Decode speed (single) |
|---|---|---|---|
| this quant | 101 / 95 / 97 | 97.7 | ~214 tok/s |
| Qwen3.8-27B (same GPU) | 98 / 101 / 100 | 99.7 | ~22 tok/s |
This is a small sanity check, not a benchmark — treat it as "no obvious quantization damage", nothing more.
License
Apache-2.0, following the base model and the upstream fine-tune.