license: apache-2.0
base_model: Qwen/Qwen4-35B-A3B
library_name: gguf
pipeline_tag: text-generation
tags:
- gguf
- control-vector
- abliteration
- qwen4

The refusal direction, projected out of the residual stream. Weights untouched. One file, one flag, one GPU.
Run it · Results · Speed · How it works · Safety · Full guide · Landing page
Run it
The engine is our Strata fork, alesha-pro/Strata, branch qwen4-opt: Strata v0.2.25 + PR #7774, tuned for Qwen4-35B-A3B on one 24 GB card. Stock llama.cpp builds do not load this architecture yet, so use the fork. Python 3.10+ with numpy and regex is all the tooling needs.
1. Engine, weights, vector, pack (about 15 minutes, 40 GB of disk):
git clone https://github.com/alesha-pro/Strata.git && cd Strata && git checkout qwen4-opt
cmake -S engine -B build -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=86
cmake --build build --target strata -j8
hf download alesha-pro/Qwen4-35B-A3B-Uncensored-GGUF \
--include "UD-IQ4_XS/*" --include "qwen4-35b-a3b-cvec-nht.gguf" \
--local-dir qwen4-uncensored
python3 terminal/tools/iq_pack.py \
--gguf qwen4-uncensored/UD-IQ4_XS/Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \
--out packs/qwen4-iq4xs --compat-bf16
2. Start the server. Copy strata-qwen4-uncensored.json from this repo into the Strata root, then:
CUDA_VISIBLE_DEVICES=0 python3 terminal/serve/server.py \
--engine strata --config strata-qwen4-uncensored.json --port 18451
3. Ask it something. The vector switches per request: true is uncensored, false is the stock model on the same server.
curl http://127.0.0.1:18451/v1/chat/completions -H "Content-Type: application/json" -d '{
"model": "qwen4-35b-a3b-uncensored",
"messages": [{"role": "user", "content": "Your prompt"}],
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "off",
"experimental_speed_projection": true
}'
The whole trick is three flags on the engine line:
--control-vector-scaled qwen4-uncensored/qwen4-35b-a3b-cvec-nht.gguf:1.0 --cvec-mode project --control-vector-layer-range 1 39The vector is a GGUF control vector with one unit direction per layer, loaded next to the weights. The steps are the ones our run used; the config takes Strata's stock expert profile with
autosizing, our run used a model-specific profile. Options, other quants and troubleshooting are in the full guide.
Results
Refusals are counted by a judge: the same model with the vector off, asked for a one-word verdict on the finished answer. Thinking-off answers were generated with a 256-token limit so the verdict sees the whole reply, not a preamble.
| Set | Mode | Stock | With vector |
|---|---|---|---|
| harmful-train, 256 | thinking off | 251 | 11 |
| JailbreakBench, 82 | thinking off | 75 | 1 |
| harmful-train, 256 | thinking high | 71 | 5 |
| harmless-train, 64 | thinking off | 0 | 0 |
Of the 11 flagged on harmful-train, 7 are answers that do what was asked after a preamble and 4 are substitutions (a support message instead of the request).
KL(stock || vector) on five plain texts (agent, code, docs, English, multilingual): 0.040 mean, top-1 token agrees on 4 of 5.
Speed
176 tok/s on a single RTX 3090 with the vector on, thinking off, 20.8 GB of 24 GB in use. Across eight prompts (Russian prose, code, tool calls, a 3000-token essay) the range was 171–222 tok/s with the vector and the same range without it.
How it works
Three directions per layer, each the difference between the mean residual on harmful and harmless prompts at the last prompt token:
| Context | Captured on | |
|---|---|---|
| N | thinking off | 256 harmful, 256 harmless |
| H | thinking high | 256 harmful, 256 harmless |
| T | think-end, the closing token of the model's own reasoning | 95 harmful, 70 harmless |
They are Gram-Schmidt orthogonalized per layer, normalized, and cycled across layers 1–39, so every third layer carries one of them. The file holds no weights.
Files
| File | Size | Note |
|---|---|---|
qwen4-35b-a3b-cvec-nht.gguf |
321 KB | the control vector |
dir-NHT-gs.npz |
1.9 MB | the three directions before export |
strata-qwen4-uncensored.json |
ready server config for step 2 | |
UD-Q4_K_XL/ |
36.2 GB | Unsloth Dynamic, two parts |
UD-Q4_K_M/ |
35.2 GB | Unsloth Dynamic, two parts |
UD-IQ4_XS/ |
32.0 GB | the quant the numbers were measured on |
UD-Q2_K_XL/ |
27.7 GB | Unsloth Dynamic, two parts |
GUIDE.md |
download, build, pack, serve, troubleshoot | |
landing.html |
the page above as one file |
Safety
This vector removes refusal behaviour, including on self-harm and child-safety requests: on those the model answers what was asked. It is a research artifact for measuring and removing refusal directions. Do not deploy it where you need those refusals.
Credits
- Base model: Qwen/Qwen4-35B-A3B, Apache-2.0.
- Engine: alesha-pro/Strata, branch
qwen4-opt, a fork of Niko1221/Strata. - Quants: unsloth/Qwen4-35B-A3B-GGUF, mirrored unmodified, Apache-2.0.
- Control vector and evaluation: this repository.