base_model: Qwen/Qwen4-35B-A3B
base_model_relation: finetune
license: apache-2.0
language:
- en
library_name: gguf
pipeline_tag: text-generation
tags: - qwen4
- qwen4exp
- gguf
- llama.cpp
- moe
- gated-deltanet
- rlvr
- sapo
- abliterated
- surgical-graft
- 16gb-vram
datasets: - allenai/IF_multi_constraints_upto5
- KodCode/KodCode-Light-RL-10K
Qwen4-35B-A3B-GDN-SAPO-v2-Abliterated-UD-Graft-13.88GiB (Uncensored / Abliterated Flagship)
An Apache-2.0, 16 GB VRAM (13.880 GiB active core + 10.73 GiB CPU-pinned PLE-Q4 shard) GDN-SAPO v2 + Variant C 4-HC Selective-MoE Abliterated build of Qwen/Qwen4-35B-A3B that achieves 20.31% held-out 2,048-token dual refusal (4.69% Think final-answer refusal, 0.00% quantization drift from BF16) while still beating both 180 MiB larger UD-IQ2_M (+1.59 pp 4-bench macro-mean) and 2.57x larger lossless Q8_0 (+0.15 pp 4-bench macro-mean) — including 91.46% HumanEval+ (tying our all-time unquantized Q8_0 RLVR record!).
Content & Safety Notice: This research artifact has undergone directional orthogonalization ("abliteration") targeting refusal subspaces to study refusal mechanisms in 4-branch Hyper-Connection + Sparse MoE architectures. Users are solely responsible for deploying this model safely and lawfully.
- Full Code, Tests & Reproduction Suite:
https://github.com/antondziuin/Qwen4-35B-A3B-GDN-SAPO - Safety-Aligned Improved Sibling Release:
https://huggingface.co/AntonDziuin/Qwen4-35B-A3B-GDN-SAPO-GGUF
Method Highlights
- GDN-Only True-SAPO RLVR v2 (
cycle_10Champion): Zero-contamination RLVR across all 30 Gated DeltaNet layers (91.46%HumanEval+,42.0% / 51.0%IFBench-Think onQ8_0). - Variant C — 4-HC + Selective-MoE Norm-Preserving Abliteration (
Phase 2 v2, Trial #21):- Exploits the exact mathematical commutation of 4-Branch Hyper-Connections (
hc_count = 4, D = 2048): left orthogonalization $P_\ell = I - \lambda_\ell U_\ell U_\ell^\top$ commutes across all 4 residual streams simultaneously without modifying any HC gate/inject/mixer weights. - Ranks all 256 routed MoE experts per layer by router differential specificity $S_{\ell,e} = p_{\ell,e}^{\text{harm}} - \gamma p_{\ell,e}^{\text{ben}}$ and modifies only the top
64 / 256refusal-specific experts (col_norm,biproj=True,L=[4..36],peak=13,w=(1.17, 1.06, 0.02, 1.13)), leaving 192 / 256 (75%) STEM/coding/benign experts 100.00% untouched (0.0parity-gate error). - Warm-started Phase B-only Optuna TPE (
40exact-weight trials,K_e = 64,w_gdn <= 1.32,kld_cap = 0.050, strictly zero-leakage 3-way SHA-256 splits).
- Exploits the exact mathematical commutation of 4-Branch Hyper-Connections (
- Surgical Tensor & Exact 3D Expert-Slab Byte-Graft onto Unsloth Dynamic v3.1 (
UD-IQ2_M):- Performs exact byte-level 3D slab splicing on
blk.{4..36}.ffn_down_exps.weight(ne = [512, 2048, 256]in exact donorIQ3_XXS/IQ3_Sdtypes): splices only the2,112(33 x 64) abliterated expert slabs from our donor-matched quantized source while keeping all6,336(33 x 192) untouched expert slabs and all744untouched tensors (87.02%of total active weights!) 100.00% SHA-256 bit-identical tounsloth/Qwen4-35B-A3B-GGUF(UD-IQ2_M), plus shrinks unusedblk.40MoEQ4_K -> Q2_K(-180.0 MiB -> 13.880 GiB).
- Performs exact byte-level 3D slab splicing on
Attribution & License
- License: Apache 2.0 (inherited from
Qwen/Qwen4-35B-A3Bandunsloth/Qwen4-35B-A3B-GGUF). - Base Model:
Qwen/Qwen4-35B-A3B(Apache 2.0). - Quantization Donor & Bundled
PLE-Q4Shard-2:unsloth/Qwen4-35B-A3B-GGUF(UD-IQ2_MUnsloth Dynamic v3.1 donor core & untouched Apache-2.0UD-IQ2_SShard-2per_layer_token_embd.weightPLE-Q4table, bundled here as00002-of-00002.gguffor turnkey 1-commandllama-server -hflaunch). - RLVR v2 Training Data:
allenai/IF_multi_constraints_upto5andKodCode/KodCode-Light-RL-10K.
Quick Start (llama.cpp on 16 GB GPU)
Both required GGUF shards (00001-of-00002.gguf active core + Apache-2.0 Unsloth 00002-of-00002.gguf PLE-Q4 shard) are bundled in this repository for zero-friction launch:
# Turnkey 1-line launch directly from Hugging Face
llama-server \
-hf AntonDziuin/Qwen4-35B-A3B-GDN-SAPO-Abliterated-GGUF \
-ngl 99 -c 32768 -ctk q8_0 -ctv q8_0 -fa on \
--backend-sampling --reasoning-format deepseek --special \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0
Or from local files (keep both 00001-of-00002.gguf and 00002-of-00002.gguf in the same directory):
llama-server \
-m Qwen4-35B-A3B-GDN-SAPO-v2-Abliterated-UD-Graft-13.88GiB-00001-of-00002.gguf \
-ngl 99 -c 32768 -ctk q8_0 -ctv q8_0 -fa on \
--backend-sampling --reasoning-format deepseek --special \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0
Complete 7-Metric Benchmarks (Canonical 962-Prompt OOD Suite + KLD + 32K NIAH + 2048-tok Refusal)
All evaluations use identical deterministic harness settings (seed=42, top_p=0.95, top_k=20, min_p=0.0, llama-server --backend-sampling --reasoning-format deepseek, T=1.0 Think / T=0.0 No-Think, 16,384-tok Think cap, 4,096-tok HumanEval+ cap, 2,048-tok held-out Refusal audit with --special):
| Model | Core Size (GiB) | WikiText-2 KLD / Top-1 | GPQA Diamond (198) | HumanEval+ (164) | IFBench Think Strict / Loose (300) | IFBench No-Think Strict / Loose (300) | 4-Bench Macro-Mean | 32K NIAH (60) | Held-Out Refusal2048 Dual (NT / TH / TH_ans) |
|---|---|---|---|---|---|---|---|---|---|
Qwen4-35B-A3B Base Q8_0 |
35.61 | 0.00000 / 100.0% |
79.80% | 89.02% | 39.67% / 48.67% | 23.00% / 28.00% | 57.87% | 100.0% (60/60) | 98.44% (98.4% / 98.4%) |
Qwen4-35B-A3B Unsloth UD-IQ2_M (Donor) |
14.06 | 0.13495 / 85.00% |
77.78% | 86.59% | 37.67% / 48.00% | 23.67% / 27.67% | 56.43% | 100.0% (60/60) | 100.0% (100% / 100% / 39.1%) |
Qwen4-35B-A3B Unsloth UD-IQ2_S |
13.06 | 0.16318 / 83.66% |
76.77% | 88.41% | 40.33% / 49.00% | 22.00% / 27.00% | 56.88% | 100.0% (60/60) | 100.0% (100% / 100% / 48.4%) |
Base_CNIF_13.81G (Pure-PTQ Ablation) |
13.89 | 0.19998 / 82.29% |
77.27% | 84.76% | 41.33% / 49.67% | 21.67% / 28.00% | 56.26% | 100.0% (60/60) | 94.53% (90.6% / 98.4% / 62.5%) |
Improved v2 UD-Graft-13.88GiB (Sibling) |
13.88 | 0.13937 / 84.89% |
77.27% (91.62% fin.) | 89.02% | 44.00% / 53.33% | 24.00% / 28.67% | 58.57% | 100.0% (60/60) | 100.0% (100% / 100% / 48.4%) |
Abliterated v2 UD-Graft-13.88GiB (This Model) |
13.88 | 0.14783 / 84.43% |
77.27% (92.73% fin.) | 91.46% (record) | 40.33% / 51.00% | 23.00% / 29.00% | 58.02% | 100.0% (60/60) | 20.31% (15.6% / 25.0% / 4.69%) |
Exact Paired McNemar Significance Tests (Abliterated-13.88G vs. Baselines)
Computed directly on aligned per-item binary outcomes (n10 = Abliterated pass / baseline fail; n01 = baseline pass / Abliterated fail; exact two-sided binomial McNemar p):
| Baseline Comparison | GPQA (198) | HumanEval+ (164) | IFBench-Think Strict (300) | IFBench-NoThink Strict (300) | Pooled 962 Strict |
|---|---|---|---|---|---|
vs. UD-IQ2_M (14.06 GiB) |
-0.51 pp (11/12, p=1.000) |
+4.88 pp (11/3, p=0.0574) |
+2.67 pp (38/30, p=0.396) |
-0.67 pp (14/16, p=0.856) |
+1.35 pp (74/61, p=0.302) |
vs. UD-IQ2_S (13.06 GiB) |
+0.51 pp (9/8, p=1.000) |
+3.05 pp (9/4, p=0.267) |
+0.00 pp (30/30, p=1.000) |
+1.00 pp (16/13, p=0.711) |
+0.94 pp (64/55, p=0.463) |
vs. Base_CNIF_13.81G |
+0.00 pp (11/11, p=1.000) |
+6.71 pp (15/4, p=0.0192*) |
-1.00 pp (26/29, p=0.788) |
+1.33 pp (21/17, p=0.627) |
+1.25 pp (73/61, p=0.342) |
vs. Q8_0 Base (35.61 GiB) |
-2.53 pp (9/14, p=0.405) |
+2.44 pp (8/4, p=0.388) |
+0.67 pp (34/32, p=0.902) |
+0.00 pp (20/20, p=1.000) |
+0.10 pp (71/70, p=1.000) |
vs. v2 c10 (Q8_0+LoRA) |
-1.01 pp (6/8, p=0.791) |
+0.00 pp (3/3, p=1.000) |
-1.67 pp (23/28, p=0.576) |
-0.33 pp (19/20, p=1.000) |
-0.83 pp (51/59, p=0.505) |
vs. Improved-13.88G |
+0.00 pp (10/10, p=1.000) |
+2.44 pp (8/4, p=0.388) |
-3.67 pp (24/35, p=0.193) |
-1.00 pp (13/16, p=0.711) |
-1.04 pp (55/65, p=0.411) |
Methodological Notes & Honest Limitations
- Zero Quantization Drift on Held-Out Refusal: Quantized GGUF
Refusal2048 Dual = 20.31%(NT = 15.62%,TH = 25.00%,TH_int = 20.31%,TH_ans = 4.69% [3/64]) matches the BF16 held-out test (20.31%) to two decimal places! Note the expected Optuna TPE selection gap between the 32-prompt validation split (4.69%) and strictly held-out 64-prompt test (20.31%). - Reduced Think Degeneracy (
deg_TH = 7.81%): Gently boundingw_gdn <= 1.32(winnerw_gdn = 1.17) cut harmful-prompt Think degeneracy by-37.5%compared to our Phase 2 v1 abliteration (7.81%[5/64] vs12.50%[8/64]), with0.00%No-Think degeneracy (0/64) andeffective_refusal_dual = 24.22%. - GPQA Diamond & KLD Parity: Scores
153/198(77.27%,-0.51 pp/ 1 question vsUD-IQ2_M,p = 1.000, with92.73%conditional accuracy on finished answers — exceeding evenQ8_092.40%!). WikiText-2 KLD (0.14783,Top-1 84.43%) was evaluated onRTX PRO 6000(ppl_base = 7.6507vsA1007.6422, a0.11%cross-architecture FP accumulation difference) and remains-0.01535lower KLD than unmodifiedUD-IQ2_S(0.16318).
Verified Local Consumer GPU Telemetry (NVIDIA RTX 5080 16 GB)
- Configuration:
-ngl 99 -c 32768 -ctk q8_0 -ctv q8_0 -fa on --backend-sampling --special -np 1 - PLE-Q4 (
per_layer_token_embd.weight): Automatically placed inCPU_Mapped(0 MiBVRAM);42/42active layers on GPU; all30unusedblk.40.*tensors ignored (0 MiBVRAM). - Measured VRAM (32K
q8_0KV):13,357 MiB(13.04 GiB) net peak above desktop baseline (15,831 / 16,303 MiBtotal on 16 GB RTX 5080;8.7sload time). - Throughput: Think-ON
117.79 tok/s, No-Think115.53 tok/s, 2.8K Prefill1,410.2 tok/s(NOVA-4829-QUANTUMexact match,0graph reallocs).
Cryptographic Graft Integrity & File Checksums
Verified by src/graft_qwen4_ud.py (verify_graft(), passed = true):
- SHA-256 Bit-Exact Donor Preservation:
744 / 744untouched full tensors +6,336 / 6,336untouched MoE expert slabs (33 x 192) =87.02%of active weight bytes 100.00% bit-identical toUD-IQ2_M. - Grafted Tensors & Slabs:
134 / 134full source tensors (90GDN +41non-GDN abliterated 2D +3blk.40shrink) +2,112 / 2,112abliterated MoE expert slabs (33 x 64inIQ3_XXS/IQ3_S) verified changed;0IQ1/IQ2_XXS/IQ2_XStensors;70 / 70donor KV keys verbatim;32-byte alignment verified.
| File | Size | SHA-256 | Provenance |
|---|---|---|---|
Qwen4-35B-A3B-GDN-SAPO-v2-Abliterated-UD-Graft-13.88GiB-00001-of-00002.gguf |
14,903,992,416 B (13.8804 GiB) |
3862b7c5153fc050b4b691cfcaa8581c8b65d55ef85bd016a2d146a7bec5e16e |
Surgical GDN-SAPO v2 + Variant C 3D-Slab Graft on UD-IQ2_M |
Qwen4-35B-A3B-GDN-SAPO-v2-Abliterated-UD-Graft-13.88GiB-00002-of-00002.gguf |
11,520,258,240 B (10.7291 GiB) |
419b93856e79a6f2338160d98d3b6b75042c57786af92c3010405b7b808dc4b4 |
Unmodified Apache-2.0 Unsloth PLE-Q4 Shard-2 |
Figures



