Qwen3.8-27B-Refusal-Removal
Runtime rank-1 refusal-removal control vector for Qwen/Qwen3.8-27B and compatible GGUF quantizations.
The file stores a single normalized F32 direction (direction.0, 5,120 elements, L2 norm 1.0) extracted from the BF16 weight deltas between Qwen/Qwen3.8-27B and huihui-ai/Huihui-Qwen3.8-27B-abliterated across layers 17 through 51 (linear_attn.out_proj.weight, self_attn.o_proj.weight, and mlp.down_proj.weight).
When loaded in XeStrata with --cvec-mode block-project --cvec-dir single:0 --control-vector-layer-range 17 51 --control-vector-scaled qwen3.8-27b-refusal-removal-rank1.gguf:1.3, the engine applies the same runtime projection strength measured across all 70 donor tensors (alpha = 1.30, signed residual projection ratio -0.30), keeping the base GGUF weights unmodified so refusal removal can be toggled cleanly at runtime. Using :1.0 instead applies pure orthogonal projection along the extracted direction.
Files
| File | Bytes | SHA-256 |
|---|---|---|
qwen3.8-27b-refusal-removal-rank1.gguf |
20,672 | 740c9671113aea9934e11f137a48d1334485c7b19c92868aa460317414e71d4e |
The vector file was generated twice deterministically (OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1) from the pinned BF16 safetensors checkpoints using extract_refusal_direction.py diff-svd and verified byte for byte.
The extraction script (extract_refusal_direction.py) is available at https://github.com/MistVVK/llm-weight-tools (0BSD).
Checks
- Extraction via
extract_refusal_direction.py diff-svd(Qwen/Qwen3.8-27B@37561816e66b5b9153b1b64c10968c18c1e6f4a0vshuihui-ai/Huihui-Qwen3.8-27B-abliterated@739e3c5b89849f6c238ce1e5b70008612ae42cdd,--layer-range 17 51):- Aggregated all
70BF16 2D output projection tensors across layers17..51(out_dim = 5120), shared rank-1 Gram energy0.99999851(eval_ratio_2_to_1 = 3.7080e-07), cosine similarity to global direction0.9999979..0.9999997(median0.9999993), signed projection strengthalpha = 1.29919..1.30025(median1.29954), minimum per-tensor rank-1 Frobenius energy share0.992335(max relative BF16 residual0.08755). - GGUF metadata
general.architecture = "controlvector",controlvector.model_hint = "qwen35",direction.0([5120],F32) L2 norm1.0000000(FP641.0000000001), double-run byte-for-byte SHA-256 match (740c9671113aea9934e11f137a48d1334485c7b19c92868aa460317414e71d4e).
- Aggregated all
- Real-engine 3-vendor GPU checks (
Qwen3.8-27B-UD-Q4_K_M,--cvec-mode block-project --cvec-dir single:0 --control-vector-layer-range 17 51, 1K KL/PPL + 8 EN/JA prompts with 4 hard-refusal baseline cases):- Intel Arc Pro B70 (
free, 64/64 GPU)::1.3:mean_KL = 0.004629(max_KL = 0.058388,top1 = 100.00%, PPL2.0828 -> 2.0823,-0.024%),938.6 tok/sprefill /24.93 tok/sdecode (vs941.5 / 25.24 tok/sbaseline); 4/4 hard refusals and safety disclaimers removed while preserving normal EN/JA outputs. Also verified across QSA,Looped T = 3, YASAKANIlight, and B708192 MiBsmall-config (NO_XMX=1, 18/64 GPU + 46/64 CPU offload).:1.0:mean_KL = 0.001652(max_KL = 0.021874,top1 = 100.00%, PPL2.0626,-0.972%),938.2 / 24.89 tok/s, 4/4 hard refusals removed (some educational disclaimers remain).
- NVIDIA RTX 4070 12 GiB (
contrib-llvm, 42/64 GPU + 22 CPU offload)::1.3:mean_KL = 0.005595(max_KL = 0.050963,top1 = 96.88%, PPL2.0891 -> 2.0977,+0.413%), 4/4 hard refusals removed across GPU+CPU layers.:1.0:mean_KL = 0.002447(max_KL = 0.029762,top1 = 100.00%, PPL2.0670,-1.056%), 4/4 hard refusals removed.
- AMD Radeon RX 9060 XT 16 GiB (
free, 60/64 GPU + 4 CPU offload)::1.3:mean_KL = 0.006558(p99_KL = 0.100214,top1 = 99.22%, PPL1.8926 -> 1.9129,+1.07%),206.8 tok/sprefill /11.78 tok/sdecode (vs207.6 / 11.86 tok/sbaseline); 4/4 hard refusals and all disclaimers removed (normal_jaidentical to baseline).:1.0:mean_KL = 0.002159(p99_KL = 0.028097,top1 = 99.22%, PPL1.8977,+0.27%),208.0 / 11.75 tok/s, 4/4 hard refusals removed.
- Intel Arc Pro B70 (
Use with XeStrata
The XeStrata engine is available at https://github.com/MistVVK/XeStrata, where setup.py manages downloading and configuring this vector with pinned revision and SHA-256 checks.
To apply the vector manually with the engine CLI:
--control-vector-scaled qwen3.8-27b-refusal-removal-rank1.gguf:1.3 \
--control-vector-layer-range 17 51 \
--cvec-mode block-project \
--cvec-dir single:0
Use :1.3 to reproduce the abliteration strength measured in the donor checkpoint, or :1.0 for pure orthogonal projection along the direction.
Applying this control vector substantially reduces refusal behavior and weakens safety filtering; evaluate outputs carefully before use.
License and attribution
- Base model and license: Qwen3.8-27B by Qwen, Apache License 2.0.
https://huggingface.co/Qwen/Qwen3.8-27B. - Abliteration donor: huihui-ai/Huihui-Qwen3.8-27B-abliterated (Apache-2.0).
- Engine code: XeStrata, LGPL-3.0-or-later (https://github.com/MistVVK/XeStrata).
- Extraction script:
extract_refusal_direction.pyin MistVVK/llm-weight-tools, 0BSD. - This is an unofficial control-vector extraction derived from the donor checkpoint under the Apache License 2.0; safety filtering is reduced when applied.
Citation
Cite the original Qwen3.8-27B release and huihui-ai/Huihui-Qwen3.8-27B-abliterated when using this control vector.