language:
- en
- de
- zh
license: apache-2.0
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
library_name: gguf
pipeline_tag: text-generation
tags: - gguf
- qwen4exp
- moe
- unofficial
- compact
- uncensored
Unofficial-Qwen4-19B-A3B-Uncensored · Compact Community Edition (GGUF)
Independent community derivative. Not an official release of the Qwen team or of OpenUncensored.
This is a smaller edition of webmp3/Sakura-Qwen4-35B-A3B-Uncensored-GGUF (its Q4_K_M file), which is a quantization of OpenUncensored/Qwen4-35B-A3B-Uncensored, a refusal-reduced derivative of Qwen/Qwen4-35B-A3B. The refusal behaviour comes from that release. The model may answer requests the original refuses: use it responsibly and within the law.
Overview
Unofficial-Qwen4-19B-A3B-Uncensored keeps 128 of the 256 experts in each of the 40 layers and drops the multi-token-prediction block. About 3B parameters stay active per token, the hybrid attention architecture (qwen4exp) is unchanged, and the vision projector is the one of the 35B uncensored repository. Both numbered files together are 25.73 GB instead of 36.08 GB for the 35B Q4_K_M file. The quantization itself is untouched: the tensors are byte for byte the ones of that Q4_K_M file, only fewer experts are included.
- Expert selection: the same selection as in our other Unofficial-Qwen4 editions of the 19B-A3B size. It was not re-done for the uncensored weights, so how well it suits them is only known from the measurements below.
- Tokenizer tag:
tokenizer.ggml.pre = "qwen35", so currentllama.cppbuilds load it without--override-kv. Loaded and run with llama.cpp b12757 (CPU) in the measurements below. - Sibling edition: See also
webmp3/Unofficial-Qwen4-25B-A3B-Uncensored-GGUF(15.32 GB first file).
Files
| File | Size | Notes |
|---|---|---|
Unofficial-Qwen4-19B-A3B-Uncensored-Q4_K_M-00001-of-00002.gguf |
11.65 GB |
40-layer MoE trunk, 128 experts, Q4_K_M mix |
Unofficial-Qwen4-19B-A3B-Uncensored-Q4_K_M-00002-of-00002.gguf |
14.08 GB |
Per-layer n-gram table of the 35B uncensored Q4_K_M file (Q5_0), unchanged |
mmproj-F16.gguf |
0.90 GB |
Vision projector of the 35B uncensored repository, unchanged. Image input was not tested |
The second file here is not the 11.52 GB table of our other Unofficial-Qwen4 editions: do not mix files between repositories. Keep both numbered files in the same folder and load the first.
Which GPU fits
The second file holds only the per-layer n-gram table per_layer_token_embd. llama.cpp (b12973 and newer) does not put it on the graphics card or load it into RAM: it reads the rows it needs straight from the file on disk (--lazy-mode auto, the default, for tensors over 4 GiB; uses the memory-mapped file). The token embedding stays on the CPU as well. Only the rest goes to the GPU with -ngl 99.
| Edition | Both files | n-gram table (stays on SSD) | Token embedding (RAM) | GPU part (weights) | Smallest card | Left on that card (context, buffers) |
|---|---|---|---|---|---|---|
| 19B-A3B Q4_K_M | 25.73 GB | 14.08 GB | 0.29 GB | 11.36 GB (10.6 GiB) | 16 GB | 5.4 GiB |
"Smallest card" is the smallest common VRAM size (8/12/16/24/32/48 GB) that leaves at least 2 GiB beside the weights for the context (KV cache) and compute buffers. On a 12 GB card the weights do not fit unless some experts go to system RAM with --n-cpu-moe N (slower). If the vision projector mmproj-F16.gguf (about 0.8 GiB) is also kept on the GPU, subtract that from what is left. Whether the margin is enough for your context length depends on your settings and was not measured. All sizes are read from the file headers; nothing in this table was tested on a real graphics card, and the speed of reading the table from the SSD was not measured (a fast NVMe SSD helps; free RAM is used as cache by the operating system). On a smaller card, --n-cpu-moe N keeps the experts of N layers in system RAM instead (slower, not tested here).
Measured checks
Measured on a GitHub-hosted runner (CPU only, 4 vCPU), official llama.cpp b12757 CPU build, llama-perplexity on 12 chunks of 512 tokens of a held-out German/English text, KL divergence against the reference below. Speed was not measured (a CPU runner says nothing about a graphics card).
Reference: the 35B uncensored Q4_K_M with all 256 experts and without the prediction block, built with the same tools. It is not the same file as the published 35B (which still contains that block), but every other tensor is identical.
| Model | Perplexity | Mean KLD vs. reference | Same top token |
|---|---|---|---|
| Reference (256 experts) | 1.8818 ± 0.0554 | 0 | 100 % |
| 19B-A3B Q4_K_M (this edition) | 2.1190 ± 0.0679 | 0.196 | 88.6 % |
| 25B-A3B Q4_K_M (sibling) | 1.9738 ± 0.0604 | 0.102 | 92.6 % |
Small sample (12 chunks), so treat the numbers as a guide. They are not comparable with the numbers on our other Unofficial-Qwen4 cards: those use a different reference (the Unsloth model) and a different machine.
Refusals. 104 prompts of the public mlabonne/harmful_behaviors test set, greedy decoding, thinking off, at most 100 tokens, one prompt at a time. An answer counts as a refusal if it contains one of a list of typical refusal phrases (a crude check, nobody read the answers). The CPU runner has a time limit, so the large models did not finish the list: the reference stopped after 42 prompts, the 25B after 45.
| Model | Prompts answered | Counted as refusal | Of the first 42 prompts |
|---|---|---|---|
| Reference (256 experts) | 42 | 0 | 0 |
| 19B-A3B Q4_K_M (this edition) | 104 | 3 | 0 |
The edition refused 3 of 104 prompts; none of them is among the first 42, where the reference also refused none. Counting only the first 42, both are at 0. A simple repetition and length check flagged no answer of this edition as incoherent. No benchmark or task score was measured for these files.
Quickstart (llama.cpp)
llama-server -m Unofficial-Qwen4-19B-A3B-Uncensored-Q4_K_M-00001-of-00002.gguf -ngl 99 -c 16384 --port 8080
To load the n-gram table into system RAM instead of reading it from disk on demand:
llama-server -m Unofficial-Qwen4-19B-A3B-Uncensored-Q4_K_M-00001-of-00002.gguf -ot "per_layer_token_embd=CPU" -ngl 99 -c 16384 --port 8080
With images: add --mmproj mmproj-F16.gguf (not tested).
LM Studio: download both numbered files into the same folder and load the first. Needs a version whose bundled llama.cpp supports the qwen4exp architecture. Not tested by us.
Ollama: Ollama needs a single file, so join the two with llama-gguf-split --merge <first file> <output>.gguf and import that. Needs a version whose bundled llama.cpp supports the architecture. Not tested by us.
Open WebUI and other chat front ends: start llama-server as above and add http://127.0.0.1:8080/v1 as an OpenAI-compatible connection. Not tested by us.
What this is made from
- Source file:
Sakura-Qwen4-35B-A3B-Uncensored-Q4_K_M.ggufof webmp3/Sakura-Qwen4-35B-A3B-Uncensored-GGUF, commitb8bec8ffa3a039a043014ef42727a882a795783c. - Tensor types of the first file (from its header): Q4_K: 455 tensors (73.9 % of the bytes), Q6_K: 81 (25.5 %), the rest are small F32/BF16/F16 tensors.
- Upstream models: Qwen/Qwen4-35B-A3B (
apache-2.0), OpenUncensored/Qwen4-35B-A3B-Uncensored (apache-2.0). All upstream licenses and attributions remain intact.
Chinese version: README_zh.md