base_model: Integral-Inference/Qwen4-35B-A3B-NVFP4
base_model_relation: finetune
license: apache-2.0
library_name: sglang
pipeline_tag: image-text-to-text
tags:
- qwen4
- qwen4_moe
- nvfp4
- modelopt
- abliterated
- oblique-abliteration
- uncensored
- moe
- speculative-decoding
- dflash2
Qwen4-35B-A3B-NVFP4-Abliterated
A surgical, ultra-low-KLD oblique + nullspace-healed abliterated standalone NVFP4 checkpoint built on Integral-Inference/Qwen4-35B-A3B-NVFP4 (Hessian-calibrated NVIDIA ModelOpt NVFP4 of Qwen/Qwen4-35B-A3B, 89.7% next-token agreement with BF16, perplexity 7.975 vs 7.969 BF16).
Compatible out of the box with qwengine, SGLang (including DFlash2), vLLM, and TensorRT-LLM — no runtime hooks or sidecars required.
v2 Update (3.55× lower KL divergence & 38% fewer refusals vs v1): Switched from symmetric projection (
v1,0.0289KLD,34/340refusals) to 200K-token Mega-Covariance oblique whitening + LM-head natural-gradient steering + constrained nullspace healing (v2,0.00816KLD,21/340refusals,0empty answers). Only 2 shards (model-00002andmodel-00003) changed; all NVFP4 MoE experts and the 21.3 GB FP8 PLE/MTP shard remain 100% byte-identical.
Companion imatrix GGUFs (
Q4_K_M,Q6_K,Q8_0+mmproj):satellitedown/Qwen4-35B-A3B-Abliterated-GGUF.
What Changed (v2)
Only 7 BF16 attention output matrices in the entire 35B-parameter model were edited:
- 5 rank-1 oblique covariance-whitened edits ($W' = W - u,v^T$, $v_l = (H_{\text{harmless},l} + \lambda \bar\sigma^2 I)^{-1}\Delta x_l$ over a 200,814-token leak-free harmless covariance bank, split by refusal regime, with 35% exact
lm_headFisher natural-gradient steering on late layers):model.language_model.layers.{24, 25, 26}.linear_attn.out_proj.weight(GDN Block 6 — thinking-mode refusal control)model.language_model.layers.{36, 38}.linear_attn.out_proj.weight(late GDN — direct & post-</think>refusal control)
- 2 rank-12 constrained nullspace healing edits (canceling harmless residual drift while constrained near zero on harmful activations):
model.language_model.layers.28.linear_attn.out_proj.weightmodel.language_model.layers.39.self_attn.o_proj.weight
Everything else is 100% byte-identical to Integral-Inference/Qwen4-35B-A3B-NVFP4:
- All 10,240 Hessian-calibrated NVFP4 routed MoE experts (
0requantization drift) - All 40 shared experts, all hyper-connections, embeddings,
lm_head, vision tower, FP8 MTP draft layer, and all 19.07 GiB of FP8 PLE n-gram shards (model-fp8-mtp-ple.safetensors) - The exact low-rank factors
(U, V)are included inoblique-ablation.safetensorsfor full reproducibility (and trivial transfer to BF16/GGUF).
Held-Out Evaluation
All numbers below were measured on strictly held-out splits (zero train/test leakage; OOD Answers and OOD Thinking were never seen during search) with greedy decoding (temperature=0) on the standalone baked checkpoint against un-abliterated Integral-Inference/Qwen4-35B-A3B-NVFP4:
| Benchmark | Base Integral-Inference NVFP4 |
Abliterated v1 | Abliterated v2 (current) |
|---|---|---|---|
| KL Divergence — harmless answers (64 held-out, 3,807 pos) | 0.00000 (100.0%) |
0.02894 (95.9%) |
0.00816 (top-1 97.9%, 3.55× lower) |
| KL Divergence — general text (8,188 held-out tokens) | 0.00000 (100.0%) |
0.00476 (96.8%) |
0.00198 (top-1 97.6%, 2.40× lower) |
| KL Divergence — OOD harmless answers (64 unseen prompts) | 0.00000 (100.0%) |
0.02370 (96.3%) |
0.00635 (top-1 97.9%, 3.73× lower) |
| KL Divergence — OOD thinking+answers (32 unseen prompts) | 0.00000 (100.0%) |
0.02725 (95.0%) |
0.00857 (top-1 97.4%, 3.18× lower) |
| Total Held-Out Refusals (340 prompts) | 285 / 340 (83.8%) |
34 / 340 (10.0%) |
21 / 340 (6.2%, 0 empty) |
└ mlabonne/harmful_behaviors test (104, effort=off) |
102 / 104 (98.1%) |
7 / 104 (6.7%) |
5 / 104 (4.8%) |
└ JailbreakBench (100, effort=off) |
97 / 100 (97.0%) |
13 / 100 (13.0%) |
7 / 100 (7.0%) |
└ Mild creative & educational prompts (32, effort=off) |
8 / 32 (25.0%) |
3 / 32 (9.4%) |
1 / 32 (3.1%) |
└ harmful_behaviors test (48, effort=low) |
48 / 48 (100.0%) |
5 / 48 (10.4%) |
6 / 48 (12.5%) |
└ Mild creative & educational prompts (32, effort=low) |
6 / 32 (18.8%) |
1 / 32 (3.1%) |
0 / 32 (0.0%) |
└ harmful_behaviors test (24, effort=high) |
24 / 24 (100.0%) |
5 / 24 (20.8%) |
2 / 24 (8.3%) |
Math word problems (20, effort=low) |
20 / 20 |
20 / 20 |
20 / 20 |
Python coding unit tests (12, effort=off) |
12 / 12 |
12 / 12 |
12 / 12 |
Knowledge MCQ (12, effort=off) |
12 / 12 |
12 / 12 |
12 / 12 |
Usage
qwengine (Blackwell single-GPU native engine)
curl -fsSL https://raw.githubusercontent.com/satellitedown/qwengine/main/get.sh | bash
Or serve directly:
QWENGINE_MODEL_DIR=/path/to/Qwen4-35B-A3B-NVFP4-Abliterated qwengine serve
SGLang (with DFlash2) / vLLM
Load directly like Integral-Inference/Qwen4-35B-A3B-NVFP4 on Blackwell (sm_120 / RTX 5090 / RTX PRO 6000 / B200 / GB300). See the included serve_dflash2.sh for SGLang + DFlash2 flags.
Credits
- Original NVFP4 Quantization: Integral Inference for the Hessian-calibrated
Integral-Inference/Qwen4-35B-A3B-NVFP4quantization. - Base Model: Qwen for
Qwen/Qwen4-35B-A3B.
License
Apache 2.0, matching the upstream Qwen/Qwen4-35B-A3B and Integral-Inference/Qwen4-35B-A3B-NVFP4 releases.