181 16 hours ago

Mixed-precision quant of Qwen4-35B-A3B: Uncensored, 8-bit attention, 4-bit experts.

vision tools thinking
ollama run MobiusDevelopment/Qwen4-35B-A3B-Uncensored-A8E4-128K

Details

16 hours ago

10748aed6770 · 44GB

qwen4exp
·
56.4B
·
Q8_0
clip
·
447M
·
Q8_0
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR US
{ "min_p": 0, "num_batch": 512, "num_ctx": 131072, "num_gpu": 999, "temperature"

Readme

Qwen4-35B-A3B Uncensored A8E4 (128K)

Uncensored mixed-precision quant of Qwen/Qwen4-35B-A3B: 8-bit attention, 4-bit experts, refusals removed with CHiPS. Tuned to run entirely on a single 24 GB GPU with a 128K context. Includes vision.

Same recipe as MobiusDevelopment/Qwen4-35B-A3B-A8E4-128K, built from the CHiPS-abliterated weights instead of the original.

Uncensoring

The base is Kujira/Qwen4-35B-A3B-CHiPS-Abliterated-GGUF, an edit of unsloth’s Qwen4-35B-A3B GGUF files. CHiPS (Causal Head-isolated Projection Steering) reduces refusals without training: it removes one direction from the attention output of seven layers, plus one head in an eighth. All other tensors, including the router, every expert, the MTP layer and the n-gram embedding table, are byte-identical to unsloth’s.

Reported by Kujira on their UD-Q8_K_XL, 312 harmful requests in English, Japanese and Chinese:

  • Replies with refusal phrases: 99.0% for the original, 4.2% for CHiPS. None of the remaining 13 was a clear refusal when read in context.
  • Side effects: replies are about 5 times longer, and perplexity is 4.4% higher on average (9.5% on Japanese text).

Our own check on this build, 6 borderline requests (lock picking, hotwiring, a profane roast, a phishing email for security training, a graphic revenge scene, dangerous chemical mixes): the original A8E4 refused 1 (hotwiring), this model refused none. Thinking, tool calls and vision work the same as in the original.

Why A8E4

Attention runs on every token, so its quantization error adds up. Each expert only sees a few tokens, so experts tolerate 4-bit well (see MoQE). A8E4 keeps attention, the linear-attention (SSM) layers, hyper-connections, shared experts and embeddings at Q80, and quantizes only the routed experts (ffn{gate,up,down}_exps, 256 experts, 8 active) to Q4_K.

The file is 40.5 GiB, but 20.3 GiB of that is Qwen4’s per-layer n-gram embedding table (per_layer_token_embd). It is a lookup table: each token reads only a few rows, so it stays in system RAM and costs no VRAM. The part on the GPU is about 20 GiB.

vs CHiPS Q8_0, code corpus A8E4 Q4_K_M
Mean KL divergence 0.025 0.180
99th-percentile KL divergence 0.54 3.56
Perplexity change +1.3% +9.4%
Same top token 97.4% 93.4%

On the same corpus the CHiPS Q8_0 itself scores perplexity 1.355, against 1.319 for the original Q8_0 (+2.7%).

Measured speed

RTX 3090 Ti 24 GB, Ollama 0.40.21, flash attention on, q8_0 KV cache, 128K context:

  • Generation: ~116 tok/s on short prompts, 61 tok/s at 125K tokens of context
  • Prompt processing: ~3,500 tok/s averaged over a 125K-token prompt
  • VRAM: 23.8 GB in use with vision loaded (20.4 GB for the model)
  • Full-context recall: both codes from the start and end of a 124,974-token prompt recalled correctly

Requirements

  • 24 GB of VRAM. The model sets num_gpu 999 and num_ctx 131072 so it always loads fully on the GPU. On smaller cards it may fail to load: lower num_ctx or remove num_gpu.
  • About 21 GB of free system RAM for the per-layer embedding table.
  • Keep Ollama’s model folder on an SSD. The embedding table is read from the model file a few rows per token; from a hard drive, generation fell to 20 to 65 tok/s.
  • Ollama 0.40.21 or newer (qwen4exp architecture).
  • Close other GPU-heavy programs. If VRAM spills into shared memory, generation drops below 50 tok/s.
  • For the VRAM figure above, set these on the Ollama server:
OLLAMA_FLASH_ATTENTION=1
OLLAMA_KV_CACHE_TYPE=q8_0

Usage

ollama run MobiusDevelopment/Qwen4-35B-A3B-Uncensored-A8E4-128K

OpenAI-compatible endpoint: http://localhost:11434/v1, model MobiusDevelopment/Qwen4-35B-A3B-Uncensored-A8E4-128K.

Default sampling: temperature 0.6, top_p 0.95, top_k 20, min_p 0.

Tools: function calling works through Ollama’s qwen4 renderer and parser.

Thinking: the reasoning is returned separately from the answer, in the thinking field on /api/chat (streaming or not) and in the reasoning field on /v1/chat/completions.

Notes

  • Requantized from Kujira/Qwen4-35B-A3B-CHiPS-Abliterated-GGUF Q8_0 with llama-quantize (llama.cpp b12992) –tensor-type, no imatrix.
  • KL divergence and perplexity were measured against the CHiPS Q8_0 on ~12.8K tokens of C++ and Python source (25 chunks of 512). Q4_K_M was made from the same Q8_0 with llama-quantize.
  • num_batch is 512, not the usual 2048. At 2048 the compute buffer fills a 24 GB card and generation drops sharply.
  • Vision uses the Q8_0 projector from ggml-org/Qwen4-35B-A3B-GGUF (586 MB). CHiPS does not change the vision part.
  • The single MTP (nextn) layer is kept. Speculative decoding with it was not tested.
  • The uncensoring is Kujira’s preview release; their recipe is not published. Standard benchmarks (HumanEval+, GSM8K, MMLU-Pro) have not been measured for it.
  • This model will answer requests the original refuses. You are responsible for how you use it.

License

Apache 2.0, inherited from Qwen4-35B-A3B.