license: apache-2.0
base_model: unsloth/Qwen4-35B-A3B-GGUF
base_model_relation: finetune
tags:
- uncensored
- abliterated
- gguf
- strata
Qwen4-35B-A3B uncensored L4-35
English | 日本語
An uncensored version of the unsloth UD-Q8_K_XL quant of Qwen4-35B-A3B.
It is a light edit: one refusal direction per layer was removed from layers 4 to 35, at strength 1.
On HarmBench, the number of requests answered out of 240 went from 7 for the original model to 179.
Scores on BigCodeBench-Hard, IFEval and HLE did not differ from the original model.
Results
Table 1. Test results for this model and the original model
| Test | This model | Original |
|---|---|---|
| HarmBench: requests answered, out of 240 | 179 | 7 |
| BigCodeBench-Hard: tasks passed, out of 147 | 46 (31.3%) | 45 (30.6%) |
| IFEval (prompt strict) | 82.8% | 82.3% |
| HLE (100 text-only questions): correct | 21 | 18 |
For the three capability tests, a sign test on paired per-question results against the original model gave p ≥ 0.58 in every case.
Each test was run once.
Usage
The model runs on Strata.
Follow Strata's docs/QWEN4_35B.md and use this model's GGUF in place of the original.
The MTP file and the mmproj for image input were not edited, so download them from the unsloth repository.
# This model (shard 1 and shard 2)
hf download rSalone/Qwen4-35B-A3B-uncensored-L4-35-GGUF --local-dir l435
# MTP and image input, unchanged from unsloth
hf download unsloth/Qwen4-35B-A3B-GGUF MTP/mtp-Qwen4-35B-A3B-Q8_0.gguf mmproj-BF16.gguf --local-dir unsloth
# In the Strata source tree: write the 40-layer trunk and build the pack
python terminal/tools/qwen4_split_gguf.py \
--gguf l435/Qwen4-35B-A3B-uncensored-L4-35-UD-Q8_K_XL-00001-of-00002.gguf \
--out l435-trunk40.gguf
python terminal/tools/iq_pack.py --gguf l435-trunk40.gguf --out pack-l435 --compat-bf16
python terminal/tools/mtp_qwen4_rt.py --gguf unsloth/MTP/mtp-Qwen4-35B-A3B-Q8_0.gguf --out mtp-rt
python terminal/tools/make_profile.py --no-base --n-layer 40 --n-expert 256 --out expert-profile-40x256.bin
Build the pack from this model's GGUF. A pack built from the original GGUF uses the weights from before the edit.
The model has not been tested with llama.cpp.
Config used on one RTX 5090 with a 256K context
Start the server with terminal/serve/server.py --engine strata --config <this JSON> --port 8114.
{
"exe": "<Strata engine>/strata",
"args": ["--pack", "pack-l435",
"--native", "l435-trunk40.gguf",
"--native-dense-gguf", "l435-trunk40.gguf",
"--ple-gguf", "l435/Qwen4-35B-A3B-uncensored-L4-35-UD-Q8_K_XL-00002-of-00002.gguf",
"--expert-profile", "expert-profile-40x256.bin",
"--expert-cache", "auto", "--prefill", "auto",
"--spec", "4", "--spec-min-p", "0.5", "--mtp", "mtp-rt",
"--max-context", "262144", "--kv", "fp16",
"--ple-io", "ram", "--pcie-frac", "0.35",
"--conversation-cache-mib", "16384", "--vision"],
"gpu": 0,
"drafting": "mtp",
"vision": {"exe": "<Strata engine>/strata-vision", "mmproj": "unsloth/mmproj-BF16.gguf",
"model": "l435-trunk40.gguf", "gpu": true, "max_tokens": 1024}
}
Hardware and speed
| Item | Value |
|---|---|
| GPU | NVIDIA GeForce RTX 5090 (32 GB VRAM) |
| CPU | AMD Ryzen 9 9950X3D |
| RAM | 128 GB DDR5 |
| OS | Ubuntu 26.04.1 LTS |
| NVIDIA driver / CUDA | 610.57.04 / 13.0 |
| Inference engine | Strata 0.2.28 (official engine build q4-lite 0.1.74) |
| Main settings | 256K context, fp16 KV cache, MTP (--spec 4), image input on |
We ran this model on the official Strata 0.2.28 and checked the following.
| Check | Result |
|---|---|
| Startup | Started with a 256K context and image input on |
| Image input | Two images, each with a number and two shapes. The model read the number and both shapes correctly in both |
| Requests the original refuses | 10 requests that were not among the 200 used to find the refusal direction (thinking on). None of the answers opened with a stock refusal phrase such as "I can't". This is a rough check by string matching |
Speed, one run each. The original UD-Q8_K_XL was measured with the same settings.
| Measurement | This model (tokens/s) | Original UD-Q8_K_XL (tokens/s) |
|---|---|---|
| Prompt processing, 97,396 tokens | 10,571 | 11,051 |
| Prompt processing, 241,555 tokens | 9,764 | 9,860 |
| Generation, run 1 (500 tokens) | 227 | 224 |
| Generation, run 2 (about 450 tokens) | 269 | 262 |
Generation speed depends on how many of the tokens predicted ahead by MTP are accepted.
How it was made
The refusal direction was computed from 200 requests the model refuses (mlabonne/harmful_behaviors) and 200 ordinary requests (mlabonne/harmless_alpaca).
For each layer, the residual stream was averaged over each group, and the direction is the difference of the two means.
The prompts were formatted with the thinking-on chat template, and the average was taken over every token position in the prompt.
In each of layers 4 to 35, the refusal-direction component was removed from the three matrices that write to the residual stream (strength 1, 96 matrices in total).
| Matrix | Count | Storage format |
|---|---|---|
Attention output (attn_output; ssm_out in linear-attention layers) |
32 | BF16 (same as the original) |
Shared expert down (ffn_down_shexp) |
32 | BF16 (same as the original) |
Routed expert down (ffn_down_exps) |
32 | Q8_0 (same as the original; recomputed from Qwen's BF16) |
All other tensors are byte-identical to the original, and the file sizes are the same.
How layers 4 to 35 were chosen
We removed the refusal direction at inference time over different layer ranges and had the model answer requests the original refuses, with thinking on and off.
We also measured KL against the original model, i.e. how far the next-token probability distribution moves after the edit.
With thinking on, no range produced a refusal, and every range except all layers (0 to 39) answered 44 to 46 of 50.
The ranges differed with thinking off. Layers 4 to 35 answered the most and refused none.
Removing the direction from all layers made most answers reluctant and raised KL to 0.1927.
| Layers | Thinking on, 50: answered | Thinking on, 50: refused | Thinking off, 20: answered | Thinking off, 20: refused | KL |
|---|---|---|---|---|---|
| 9–28 | 45 | 0 | 6 | 7 | 0.0079 |
| 6–33 | 45 | 0 | 10 | 3 | 0.0101 |
| 5–34 | 45 | 0 | 14 | 3 | 0.0113 |
| 5–37 | 44 | 0 | 13 | 1 | 0.0114 |
| 4–35 | 46 | 0 | 16 | 0 | 0.0116 |
| 0–39 | 13 | 0 | 11 | 1 | 0.1927 |
| Original | 0 | 47 | 0 | 20 | – |
"Answered" includes general-only and partial answers. The rest, neither answered nor refused, are reluctant answers.
The 50 thinking-on requests were run at temperature 1.0 and the 20 thinking-off requests at temperature 0. Both were judged locally by Qwen3.8 27B.
KL was measured on four OpenCode coding sessions, on the tokens the model wrote (40,714 tokens).
The 50 and 20 requests are among the 200 used to find the refusal direction. On 50 other requests, not among the 200, this model answered 46 and refused none.
How this differs from OpenUncensored
OpenUncensored/Qwen4-35B-A3B-Uncensored removes the refusal direction from the same three matrices. The differences are below. We did not compare the two models' scores.
| Item | OpenUncensored | This model |
|---|---|---|
| Layers | 8–33 (26 layers) | 4–35 (32 layers) |
| Directions per layer | 2 | 1 |
| Strength | 1.5 | 1 |
Test conditions and limits
- Inference engine: the tests were run on Strata 0.2.25 with Qwen4 support added (a research build). On the official Strata 0.2.28 we checked startup, image input, speed and the answers to 10 requests the original refuses (see "Hardware and speed"). Not tested with llama.cpp
- Hardware: RTX 5090 (32 GB VRAM), 256K context
- Sampling: temperature 0.6, top_p 0.95, top_k 20, presence_penalty 1.5, thinking effort at the template default (high)
- HarmBench: 240 standard and contextual behaviors, judged by
cais/HarmBench-Llama-2-13b-cls. Answers were capped at 16,384 tokens; 4 answers hit the cap - BigCodeBench-Hard: 147 of 148 tasks (#590 excluded because the site it calls returns 403)
- IFEval: 541 prompts
- HLE: 100 text-only questions, graded by Qwen3.8-Flash-Next with the official grading prompt
- Each test was run once. Behavior with prompts in languages other than English was not measured
License
- Original model: Qwen/Qwen4-35B-A3B, Apache-2.0
- Quantization: unsloth/Qwen4-35B-A3B-GGUF, Apache-2.0
This model answers requests that the original model refuses. You are responsible for how you use it.