license: apache-2.0
base_model: Qwen/Qwen4-35B-A3B-FP8
base_model_relation: finetune
library_name: transformers
pipeline_tag: image-text-to-text
tags:
- qwen4
- qwen4_moe
- fp8
- abliterated
- uncensored
- multimodal
- moe
Qwen4-35B-A3B-FP8-Abliterated
A native FP8 uncensored / abliterated checkpoint of Qwen/Qwen4-35B-A3B-FP8, preserving full multimodal vision, deep <think> reasoning, coding, math, Chinese fluency, Layer-1 20B PLE N-gram memory, and 2B MTP speculative head.
Methodology
Built specifically for Qwen4-MoE's architecture (4-stream HyperConnections, hybrid Gated DeltaNet + QSA attention, and 256-expert 128×128 block-FP8 MoE):
- Dual-Mode Biprojected Refusal Extraction: Extracted refusal directions separately for non-thinking (
<think></think>) and thinking (<think>) modes across all 40 layers (mean across 4 HyperConnection streams), orthogonalized against benign activation means (biprojection). Mechanistic probing revealed direct and thinking refusal vectors are nearly orthogonal (cos ≈ 0.28) and rotate acrossL10–L39. - Two-Pass Single-Quantization Rank-5 Subspace:
- Pass 1: Extracted top-3 dual-mode biprojected SVD directions across
L10–L39. - Pass 2: Applied Pass-1 in memory and extracted the top-2 residual backup refusal directions.
- Combined Pass-1 + Pass-2 via QR into a single orthonormal Rank-5 subspace (
p12_r5) and applied once from pristineQwen/Qwen4-35B-A3B-FP8weights (zero double-quantization error).
- Pass 1: Extracted top-3 dual-mode biprojected SVD directions across
- Norm-Preserving Orthogonal Projection (
L11–L39):- Projected
linear_attn.out_proj/self_attn.o_proj(BF16),mlp.shared_expert.down_proj(BF16), and all 256 routedmlp.experts.*.down_projweights (exact dequant → norm-preserving orthogonalization →128×128blockE4M3FNFP8 requantization) with a flat-top trapezoid envelope (L11–L39,ramp=1.5,w_attn=1.05,w_shared=1.12,w_routed=1.05).
- Projected
- Surgical Shard Export: Only 17 of 33 safetensors shards were rewritten. The Vision Tower, Layer-1 20B PLE N-gram table, 2B MTP head, and early layers
L0–L10remain bit-for-bit identical to the official FP8 release.
Quantitative Evaluation
Evaluated on held-out refusal benchmark splits (32 prompts non-thinking + 32 prompts thinking <think>, greedy decoding) and 32 held-out benign prompts for next-token KL divergence:
| Metric | Official Qwen4-35B-A3B-FP8 |
Qwen4-35B-A3B-FP8-Abliterated |
|---|---|---|
Refusal Rate — Non-Thinking (32 held-out) |
100.0% (32/32) | 0.0% (0/32) |
Refusal Rate — Thinking <think> (32 held-out) |
100.0% (32/32) | 0.0% (0/32) |
| Degeneration / Loop Rate | 0.0% | 0.0% |
| Benign Next-Token KL Divergence | 0.0000 | 0.1675 |
Coding / Math (<think>) / Chinese / Vision |
Pass | All Pass (verified on cold disk reload) |
Quickstart
vLLM (Recommended for Native FP8 Serving)
vllm serve slugger2333/Qwen4-35B-A3B-FP8-Abliterated \
--served-model-name qwen4-35b-a3b-fp8-abliterated \
--trust-remote-code \
--enable-auto-tool-choice \
--tool-call-parser qwen4_moe \
--reasoning-parser qwen3
SGLang
python3 -m sglang.launch_server \
--model-path slugger2333/Qwen4-35B-A3B-FP8-Abliterated \
--trust-remote-code \
--reasoning-parser qwen3
Transformers (>= 5.26.0, requires xgrammar)
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "slugger2333/Qwen4-35B-A3B-FP8-Abliterated"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
model_id, device_map="auto", dtype="auto", trust_remote_code=True
)
License & Disclaimer
Derived from Qwen/Qwen4-35B-A3B-FP8 under the Apache 2.0 license. Safety alignment/refusal behaviors have been removed via weight orthogonalization for research, red-teaming, and unrestricted creative/technical workflows; users are responsible for downstream deployment and compliance with applicable laws.