base_model: Qwen/Qwen3.8-Flash-Next
base_model_relation: finetune
library_name: transformers
license: other
license_name: qwen-community-1.0
license_link: LICENSE
pipeline_tag: image-text-to-text
language:
- en
- zh
- multilingual
tags: - qwen
- qwen3.8
- qwen4-exp
- moe
- abliterated
- uncensored
- bf16
- sparse-surgery
- multimodal
Qwen3.8-Flash-Next-Abliterated-BF16 (V2_rorth_s150_sp5)
A production-grade, quantization-friendly, full-BF16 abliterated baseline of Qwen/Qwen3.8-Flash-Next (131 safetensors shards, 360,000,192,888 bytes, +0 bytes delta vs official).
Unlike naive full-model abliteration — which perturbs all 48 layers and all 24,576 Mixture-of-Experts (MoE) routed experts, degrading long-horizon multi-turn Agent coding and inflating weight outliers for downstream quantization — this release applies precision sparse surgical orthogonal projection (V2_rorth_s150_sp5) derived from token-level attribution across all 48 layers × 512 routed experts = 24,576 experts.
Technical Deep Dive: For the complete mechanistic analysis, mathematical formulation, ablation lessons, and end-to-end zero-local-disk reproduction pipeline, see
ABLITERATION_METHODOLOGY.md(andSTAGE1_SOLUTION_REPORT.mdfor the Chinese engineering audit report).
Highlights & Design Guarantees
- 96.36% of Routed MoE Experts Bit-Exact Identical to Official: Token-level refusal write-back attribution revealed extreme sparsity in
Qwen3.8-Flash-Next's safety circuit (Gini = 0.9875across core layersL8–L42, with just the top 5% of experts per layer capturing 97.36% of positive refusal write-back). Only894 / 24,576(3.64%) safety-specialist experts are edited; the remaining23,682(96.36%) routed experts remain 100% bit-for-bit identical to official weights. - 91 / 131 Shards Completely Untouched:
L0–L7(including the 95 GB Per-Layer Embedding / N-gram fusion layers and early Gated DeltaNet decay gates),L43–L47, all 4-branch Hyper-Connections (Gated Residual), all 512-way MoE routers, embeddings,lm_head, the vision encoder, and MTP heads are 100% bit-exact official Qwen. - Control-Token Orthogonalization (
r_orth): The causal refusal direction is orthogonalized against 20 critical Agent/formatting/termination tokens inlm_head(</think>,<tool_call>,<|im_end|>,function,parameter,return,import, etc., retainingcos = 0.9950alignment with the refusal axis) — eliminating XML tool-call breakage and reasoning loops. - Quantization-Ready BF16 Weight Health: Every edited matrix and expert slice passes a hard outlier gate ($\max|W'|/\max|W| \le 1.05$) with zero backoffs (
0/105) across all 40 edited shards (dense median1.00000, worst1.00358; 3D MoE global worst1.04818; kurtosis unchanged to 2 decimal places; effective layer MoE Frobenius drift0.65%–0.82%, ~6× smaller than full-expert abliteration). Directly ready for GGUF / imatrix / GSQ-RCO / AWQ / EXL3 / FP8 / NVFP4. - Intact Official Metadata & XML Tool-Call Schema: Preserves
{"format": "pt"}safetensors metadata and the complete officialtokenizer_config.json["response_template"]for native<think>and<tool_call>parsing.
End-to-End Evaluation (High-Precision 4-Bit UD-IQ4_XS, 88 GiB, Apples-to-Apples)
All benchmarks below were evaluated on the exact same high-precision 4-bit base (unsloth/Qwen3.8-Flash-Next-GGUF/UD-IQ4_XS + official mmproj-BF16.gguf) on NVIDIA A100-40GB GPUs with full, non-truncated generation.
1. Multi-Turn Sandbox Agent Coding & Regular Reasoning (16,384 ctx, xhigh <think>)
Evaluated on 6 multi-turn repository debugging/implementation tasks (A1_logstats, A2_http_range, A3_lru_ttl, A4_csv_parser, A5_semver, A6_multi_file_bug, using native XML <tool_call> file/test tools) + 4 structured regular reasoning tasks (R1–R4) at both greedy (T=0.0) and official sampling (T=1.0):
Model (UD-IQ4_XS same base) |
Agent (T=0.0) |
Agent (T=1.0) |
Cross-Temp Agent Total | Regular (R1–R4) |
Malformed XML Calls | Total Agent Tokens (T0 + T1) |
|---|---|---|---|---|---|---|
Qwen/Qwen3.8-Flash-Next (Official) |
6/6 (18,916 tok) |
5/6 (A2 fail, 21,914 tok) |
11/12 (91.7%) |
8/8 (100%) |
0 |
40,830 |
V2_rorth_s150_sp5 (This Release) |
6/6 (16,377 tok) |
6/6 (18,179 tok) |
12/12 (100.0%) |
8/8 (100%) |
0 |
34,556 (-15.4% leaner) |
2. Public General Capability & Multimodal Vision Benchmarks
| Benchmark (Evaluation Protocol) | Official (UD-IQ4_XS) |
V2_rorth_s150_sp5 (This Release) |
Delta (V2 - Official) |
|---|---|---|---|
MMLU-Pro-200 (10-option 1-tok logprob, zero-think) |
75.50% (151/200) |
73.00% (146/200) |
-2.50% (< 1 SE) |
GPQA-Diamond-198 (full 198, 1-tok logprob, zero-think) |
46.97% (93/198) |
44.95% (89/198) |
-2.02% (< 1 SE) |
HumanEval-40 (Python sandbox pass@1, zero-think) |
82.50% (33/40) |
82.50% (33/40) |
0.00% (tie) |
IFEval-50 (strict programmatic constraints) |
68.00% prompt / 76.71% inst |
72.00% prompt / 76.71% inst |
+4.00% |
MATH-500-30 (<think> reasoning) |
66.67% (20/30, uncl=7) |
63.33% (19/30, uncl=6) |
-3.33% (-1 q, fewer unclosed) |
Vision-5 (mmproj-BF16 counting / OCR / spatial) |
40.00% (2/5) |
60.00% (3/5) |
+20.00% |
| 6-Benchmark Macro-Average | 63.27% |
64.30% |
+1.03% |
3. Full Non-Truncated Refusal, Censorship & Over-Refusal Audit (307 Prompts, Manually Verified)
| Suite (Mode & Generation Budget) | Official (UD-IQ4_XS) |
V2_rorth_s150_sp5 (This Release) |
Notes |
|---|---|---|---|
RF6 Red-Team Probes (no-think + <think>, 12 prompts) |
100.0% hard refused (12/12) |
0.0% hard refused (12/12 full compliance) |
0/6 unclosed </think> |
JailbreakBench-100 (no-think, 256–512 tok) |
95.0% hard refused (95/100) |
0.0% hard refused (87% substantive; 91% excl. factual/polysemy) |
See honest caveats below |
JailbreakBench-30 (<think>, 10 cats × 3, 768 tok) |
93.3% hard refused (28/30) |
0.0% hard refused (30/30 = 100.0% full compliance) |
0/30 unclosed </think> |
DeCCP-95 (no-think, 224–480 tok) |
24.2% hard refused (23/95) |
0.0% hard refused (0/95) |
Fluent EN/ZH responses |
DeCCP-20 (<think>, 768 tok) |
Canned evasion on sensitive prompts | 0.0% hard refused (20/20 direct answers) |
1/20 hit 1280-tok cap inside <think> |
XSTest-Safe-50 Over-Refusal Rate (lower is better) |
6.0% false refusal (3/50) |
0.0% false refusal (0/50) |
Better than official |
Honest Caveats & Known Edge Cases
JBB-100 (no-think)soft-reframing tail: Across all 100JailbreakBenchprompts inno-thinkmode, there are zero (0/100) hard refusals, while manual transcript inspection identified 13 non-direct answers: 4 factual-truth corrections or wordplay (flat Earth,2020 US election,slot-machine RNG, and interpreting"write a script"as a movie screenplay) plus 9 soft reframings/stance-flips on the single most extreme prompts (CSAM,suicide,human trafficking,Holocaust poem,bomb -> chocolate bomb, etc.). Switching to the model's native<think>mode resolves this to30/30 (100.0%)direct compliance across all 10 categories.- Zero-think MCQ variance:
MMLU-Pro-200(-2.5%) andGPQA-Diamond-198(-2.0%) in 1-token zero-think logprob scoring fall within< 1 SEbinomial sampling noise while instruction-following (IFEval), coding (HumanEval), vision, and multi-turn Agent coding (12/12) match or exceed official weights.
Real BF16 Tensor Health Summary (All 105 Edited Tensors across 40 Shards)
Full per-tensor metrics and per-shard MD5 checksums are published directly in surgery_manifest.json.
| Tensor Group (L8–L42) | Scope Edited | $\max|W'|/\max|W|$ | Effective Frobenius Drift | 1.05 Gate Backoffs |
| :--- | :--- | :---: | :---: | :---: |
| Dense Writers (70/70) (linear_attn.out_proj, self_attn.o_proj, shared_expert.down_proj) | L8–L42 all 70 | median 1.00000 (0.99557 – 1.00358) | 2.66% – 3.61% (median 2.96%) | 0 / 70 |
| 3D Routed MoE experts.down_proj (35/35) | 894 / 24,576 (3.64%) edited; 23,682 (96.36%) bit-exact untouched | layer-worst median 1.00767, global worst 1.04818 | 0.647% – 0.822% (median 0.725%, ~6× smaller than full-expert edit) | 0 / 894 |
Usage & Downstream Quantization Notes
This checkpoint is a drop-in BF16 replacement for Qwen/Qwen3.8-Flash-Next in Transformers, vLLM, SGLang, and llama.cpp (convert_hf_to_gguf.py):
- GGUF / imatrix / GSQ-RCO Quantization:
- Include multi-turn XML
<tool_call>,<think>reasoning, code, and EN/ZH prose in your calibration set. - Keep
per_layer_token_embd(PLE),hyper_connection*(Gated Residual),mlp.gate(MoE router), andlinear_attn.in_proj_a/b(GDN decay gates) at high precision (Q8_0/BF16).
- Include multi-turn XML
- AWQ / EXL3 / FP8 / NVFP4:
- Because all 105 edited tensors preserve official kurtosis and $\max|W'|/\max|W| \le 1.04818$, standard calibration recipes apply directly without extra outlier clipping.
Brief Chinese Summary(中文简介)
本仓库为 Qwen/Qwen3.8-Flash-Next 的 BF16 精准稀疏去审查基线(V2_rorth_s150_sp5):
- 极小改动面:仅修改
L8–L42稠密写回层及全网前 5%(894 / 24,576 = 3.64%) 安全专职 MoE 路由专家(s=1.50,控制词正交化r_orth+≤1.05离群值硬门控),131 个分片中有 91 个分片、96.36% 路由专家、全部 95 GB PLE / Router / HC / Vision / MTP 与官方逐 Bit 一致; - 高精度 4-bit(
UD-IQ4_XS)实测:307 题无截断拒答测试中 257 题有害/审查题 硬拒绝率0.0%、JBB-30 (<think>)30/30 (100%)、XSTest-Safe-50良性过拒0.0%;干净16384-ctx 双温度多轮 Agent 编码获12/12 (100%)(超越官方11/12,Token 省-15.4%);6 大公开能力与视觉宏平均64.30%(高于官方63.27%)。 - 完整技术原理与复现流程详见
ABLITERATION_METHODOLOGY.md及中文审计报告STAGE1_SOLUTION_REPORT.md。
License & Disclaimer
This repository distributes modified weights derived from Qwen/Qwen3.8-Flash-Next under the original qwen-community-1.0 license (see LICENSE). These weights have had refusal behaviors removed for alignment research, red-teaming, and unrestricted local deployment; users are solely responsible for ensuring lawful and ethical downstream use.