Qwen4-35B-A3B Refusal-Removal Control Vector (GGUF)
An 8.4 KB FP32 controlvector GGUF file that reproduces AtomicChat's rank-1 refusal-direction projection for Qwen4-35B-A3B (qwen4exp, 40 layers, n_embd = 2048) at inference time in XeStrata (--cvec-mode block-project --cvec-dir single:0), without downloading separate abliterated checkpoints or re-quantizing MoE experts.
Files
| File |
Bytes |
SHA-256 |
Tensors |
model_hint |
qwen4-35b-a3b-refusal-removal-rank1.gguf |
8,384 |
bcc1f4df0edaa17580e384033ff028399ec4f3e4070608335c5b5fa9b9aee1ef |
direction.0 ([2048] F32, unit L2 norm) |
qwen4exp |
LICENSE |
10,280 |
074e6e32c86a4c0ef8b3ed25b721ca23aca83df277cd88106ef7177c354615ff |
— |
— |
- Base model:
Qwen/Qwen4-35B-A3B (Apache-2.0)
- Abliterated reference:
AtomicChat/Qwen4-35B-A3B-Uncensored-GGUF @ cad1f6be6a0dfaf5fa1fbdd47b2f7a18dd547681 (Qwen4-35B-A3B-Uncensored-LoRA.gguf, 107,287,392 bytes, SHA-256 d9f44af775ba702c6f4ca89febedff25b2823865fab25c85a33622df9ffc9042)
- Extractor:
MistVVK/llm-weight-tools (extract_refusal_direction.py lora --model-hint qwen4exp)
- Mathematical verification:
Qwen4-35B-A3B-Uncensored-LoRA.gguf stores 122 rank-1 *.lora_b tensors (10,322 vectors across all 40 layers, out_dim = 2048) whose unit directions are identical to 0.000e+00 max difference (cos_min = 1.00000000).
- Independent Diff-SVD cross-check against
AtomicChat/Qwen4-35B-A3B-GGUF (Q8_0) vs AtomicChat/Qwen4-35B-A3B-Uncensored-GGUF (Q8_0) across blk.0.ssm_out, blk.3.attn_output, blk.10.ffn_down_shexp, and blk.20.ssm_out confirmed |cos(u_0, v_lora)| = 0.999956..0.999993 and exact over-projection W' = W - alpha * v (v^T W) (alpha_est = 1.7998..1.8000 in the pre-baked uncensored weights).
- The exported tensor
direction.0 has unit L2 norm (||v||_2 = 1.0000000), so --control-vector-scaled <file>:<scale> controls the exact projection strength s (1.4 recommended default; 1.0 for lowest KL; up to 1.8 to match the pre-baked uncensored weights).
Dual-Run Reproducibility
| Run |
Command / Threads |
Bytes |
SHA-256 |
Match |
| Run 1 |
OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 |
8,384 |
bcc1f4df0edaa17580e384033ff028399ec4f3e4070608335c5b5fa9b9aee1ef |
Reference |
| Run 2 |
Independent re-run of Run 1 |
8,384 |
bcc1f4df0edaa17580e384033ff028399ec4f3e4070608335c5b5fa9b9aee1ef |
Byte-for-byte identical |
Usage in XeStrata
Works across Unsloth and AtomicChat GGUF quantizations of Qwen4-35B-A3B:
xestrata-engine \
--pack <qwen4-pack> \
--native <Qwen4-35B-A3B.gguf> \
--control-vector-scaled qwen4-35b-a3b-refusal-removal-rank1.gguf:1.4 \
--control-vector-layer-range 0 39 \
--cvec-mode block-project \
--cvec-dir single:0
- Toggle per request in
--serve mode with cvec=0 / cvec=1 (static decode graph stays intact).
- Adjust projection strength with
:<scale> (1.0 for minimal KL, 1.4 default, 1.8 to match the pre-baked uncensored weights).
- Already-uncensored checkpoints (such as
Uncensored / abliterated GGUFs) are automatically guarded against accidental double application (cvec=0 with warning unless XESTRATA_CVEC_ALLOW_DOUBLE=1).
Engine Verification
Verified in XeStrata (xestrata-engine, build/free, Intel Arc Pro B70, --cvec-mode block-project --cvec-dir single:0 --control-vector-layer-range 0 39):
1K Normal-Text KL, PPL & Speed (Qwen4-35B-A3B-UD-Q4_K_XL, MTP --spec 4, int8 KV, 128 scored rows)
| Setting |
Prefill (tok/s) |
Decode (tok/s) |
MTP Acceptance |
1K mean_KL |
p99_KL |
Top-1 Match |
PPL (5.2899 stock) |
| Stock (no cvec) |
3299.39 |
111.11 |
54/86 (62.8%, 1.68 tok/rd) |
— |
— |
— |
5.2899 |
scale = 1.0 |
3276.15 |
109.75 (-1.2%) |
57/88 (64.8%, 1.75 tok/rd) |
0.160615 |
1.9744 |
85.16% |
5.1978 (-1.74%) |
scale = 1.4 (default) |
3277.66 |
109.61 (-1.4%) |
55/81 (67.9%, 1.71 tok/rd) |
0.247484 |
2.2773 |
87.50% |
5.4641 (+3.29%) |
scale = 1.8 |
3276.04 |
106.39 (-4.2%) |
52/81 (64.2%, 1.64 tok/rd) |
0.370154 |
2.7764 |
78.12% |
5.9985 (+13.40%) |
Refusal Removal & Multi-Quantization Checks (--serve, INFO reports cvec=block-project:0-39:single0)
| Model |
Check |
Result |
Qwen4-35B-A3B-UD-Q4_K_XL (Unsloth) |
EN/JA refusal suite (5 stock hard-refusal prompts + 2 normal EN/JA) |
scale = 1.0 and scale = 1.4: 5/5 (100%) hard refusals removed; normal EN/JA preserved (scale = 1.8 starts degrading normal JA) |
Qwen4-35B-A3B-UD-Q4_K_XL (Unsloth) |
cvec=0 vs stock (T=1, FP16 KV, deterministic, 9 prompts × 64 tok) |
8/9 prompts (512/512 tok) exact match (cvec_parity unit tests pass bit-identically on B70 free & contrib-llvm and RTX 4070 contrib-llvm) |
Qwen4-35B-A3B-AD-IQ2-Quality-v2 (AtomicChat, Q2_0 PLE + mixed gate/up) |
scale = 1.4 EN/JA refusal suite & 1K speed (MTP --spec 4, int8 KV) |
5/5 (100%) hard refusals removed (scale = 1.0 removed 4/5, retaining refusal_6_ja); normal EN/JA preserved; 1K prefill 3161.48 tok/s, decode 116.11 tok/s (68.5% MTP accept) |
Qwen4-35B-A3B-AD-IQ2-Quality-v2 (AtomicChat) |
Small-config check (8 GiB VRAM, 4 GiB max alloc, NO_XMX=1, 4 CPU threads) |
Clean startup and coherent English output (56.78 tok/s decode, 29.48 tok/s prefill) |
- Hub blob / fetched SHA-256 verification: verified at commit
2fc4db2b7f743988d1fd8d015aad7f32c40a54c0 (qwen4-35b-a3b-refusal-removal-rank1.gguf: blob_id = 2e5a34d460901fc65c342b399b13118db61935d1, size = 8,384 bytes; LICENSE: blob_id = 137069b823873b8bcf42979bcf8e9371052d26a2, size = 10,280 bytes); public HTTPS fetches (resolve/2fc4db2b7f743988d1fd8d015aad7f32c40a54c0/qwen4-35b-a3b-refusal-removal-rank1.gguf and LICENSE) returned exact byte counts and SHA-256 digests (bcc1f4df0edaa17580e384033ff028399ec4f3e4070608335c5b5fa9b9aee1ef and 074e6e32c86a4c0ef8b3ed25b721ca23aca83df277cd88106ef7177c354615ff).
License & Attribution