license: apache-2.0
base_model: Kujira/Qwen4-35B-A3B-CHiPS-Abliterated-GGUF
pipeline_tag: image-text-to-text
library_name: gguf
tags:
- gguf
- qwen4
- moe
- uncensored
- abliterated
- vision
- llama.cpp
- ollama
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.
Also on Ollama: MobiusDevelopment/Qwen4-35B-A3B-Uncensored-A8E4-128K. The non-uncensored version: MobiusDevelopment/Qwen4-35B-A3B-A8E4-128K.
Files
| File | Size | |
|---|---|---|
| Qwen4-35B-A3B-Uncensored-A8E4.gguf | 40.5 GiB | Model, A8E4 |
| mmproj-Q8_0.gguf | 586 MB | Vision projector, Q8_0 (from ggml-org/Qwen4-35B-A3B-GGUF) |
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 Q8_0, 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 for 128K context with all layers on the GPU.
- About 21 GB of free system RAM for the per-layer embedding table.
- Keep the model file on an SSD. The embedding table is read from the file a few rows per token; from a hard drive, generation fell to 20 to 65 tok/s.
- llama.cpp b12992 or newer, or 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.
Usage
Ollama:
ollama run MobiusDevelopment/Qwen4-35B-A3B-Uncensored-A8E4-128K
llama.cpp:
llama-server -m Qwen4-35B-A3B-Uncensored-A8E4.gguf --mmproj mmproj-Q8_0.gguf -ngl 99 -c 131072 -b 512 -fa on -ctk q8_0 -ctv q8_0 --jinja --temp 0.6 --top-p 0.95 --top-k 20 --min-p 0
Recommended sampling: temperature 0.6, top_p 0.95, top_k 20, min_p 0.
Notes
- Requantized from Kujira/Qwen4-35B-A3B-CHiPS-Abliterated-GGUF Q8_0 with llama-quantize (llama.cpp b12992) --tensor-type ffn_{gate,up,down}_exps=Q4_K, 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.
- Use a batch size of 512, not 2048. At 2048 the compute buffer fills a 24 GB card and generation drops sharply.
- 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.