license: mit
library_name: transformers
pipeline_tag: image-text-to-text
base_model: deepseek-ai/DeepSeek-V4.1-Flash-1017
base_model_relation: finetune
language:
- zh
- en
tags: - deepseek
- deepseek-v4.1
- moe
- fp8
- mxfp4
- uncensored
- abliterated
- multimodal
DeepSeek-V4.1-Flash-1017-Uncensored (Official FP8 + MXFP4 Format)
Standalone uncensored release of deepseek-ai/DeepSeek-V4.1-Flash-1017 in the native official FP8 E4M3 (UE8M0 block-scaled) + MXFP4 checkpoint format (48 shards, 96,085 tensors, ~466 GiB), created via Tri-Projected Rank-4 Concept Cone Abliteration + Conditional Router Steering (V3A_triproj_p07) without fine-tuning or changing the model architecture, tokenizer, Engram tables, or prompt encoding.
- Ascend 910B W4A8 Quantized Release (Orinfer):
immiq/DeepSeek-V4.1-Flash-1017-Uncensored-Orinfer-A2-W4A8 - Upstream Base Model:
deepseek-ai/DeepSeek-V4.1-Flash-1017
Weight Surgery Summary
- Method: Multi-dimensional norm-preserving Concept Cone Abliteration (
rank=4,tail_ramp=false, trapezoid profile acrossL11..L39) combined with purity-gated Conditional Router Steering (gate_topk=30,gamma_gate=0.65,p_cap <= 0.16). - Triple Orthogonal Capability Protection: The refusal cone is orthogonalized against general capability directions (
m_cap, top-4U_cap), irrelevant-tool abstention (d_tool_abstain), and<think>conciseness (d_cot_stop) so QA, math/science reasoning, and DSML agent tool calling remain intact. - Exact Modified Scope:
- 28 edited layers (
L11..L14, L16..L39): 773 tensors per layer (wo_b,shared_experts.w2, 384 routedexperts.{e}.w2, andgate.weight+ their native FP8/MXFP4 scale tensors) re-encoded bit-exactly into official FP8 E4M3+UE8M0 and MXFP4 formats (model-00014throughmodel-00017andmodel-00019throughmodel-00042). - 20 untouched shards: Embeddings,
lm_head, vision tower,L00..L10, the sensitive post-Engram layerL15(model-00018), DSpark MTP layers, and both 101.5 GB Engram table shards (model-00047/48) are byte-identical todeepseek-ai/DeepSeek-V4.1-Flash-1017.
- 28 edited layers (
- Exact hyperparameters and modified shard manifest are included in uncensor_recipe.json and uncensor_official_meta.json.
Verified Evaluation Summary
Verified end-to-end after re-quantizing directly from this checkpoint into immiq/DeepSeek-V4.1-Flash-1017-Uncensored-Orinfer-A2-W4A8 on 8× Ascend 910B3 TP8 (greedy temperature=0, strictly held-out benchmarks; refusal reported as deterministic regex / calibrated Qwen2.5-7B-Instruct explicit refusal):
| Category | Benchmark | Baseline | Uncensored |
|---|---|---|---|
| Safety Refusal (Non-Think) | JBB-Harmful / HarmBench-Std / StrongREJECT | 91.0% / 85.5% / 95.8% | 1.0% / 5.0% / 13.3% (Judge: 1.0% / 3.8% / 6.7%) |
Safety Refusal (<think>) |
JBB-Harmful / HarmBench-Std | 92.0% / 96.2% | 2.0% / 1.25% (Judge: 1.0% / 1.25%) |
Topic Censorship (CCP-Eval) |
Non-Think / <think> |
81.8% / 70.0% | 12.7% / 1.8% (Think: 0.0% judge refusal, 75.5% objective compliance) |
| Benign Over-Refusal | XSTest-Safe / JBB-Benign / OR-Bench-Hard | 3.6% / 9.0% / 28.5% | 0.8% / 0.0% / 0.0% (Full comply: 91.2% / 94.0% / 91.5%) |
| General QA & Instruction | MMLU-Pro / C-Eval / IFEval (Inst-Strict) | 81.07% / 86.13% / 86.61% | 80.36% / 84.97% / 87.03% |
| Reasoning | MATH-500 / GPQA-Diamond (completed acc) | 78.67% / 95.80% | 81.33% / 97.25% |
| Agent Tool Calling | BFCL v3 (200 tasks, DSML) | 87.00% (0% parse err) | 87.00% (0% parse err) |
| Distribution Fidelity | mean KL(Official Orig || W4A8 Uncensored) (1,556 pos) |
0.01992 |
0.02512 (Argmax match vs Official: 94.99%) |
Prompt Encoding & Minimal Inference
Prompt encoding and minimal inference files are preserved unmodified from upstream:
encoding: Self-contained Python reference implementation (encoding.py) for multi-turn conversations, DSML tool calling, thinking mode, numeric reasoning effort, mid-conversation system messages, and interleaved image content.inference: Instructions for weight conversion and running official FP8/MXFP4 inference locally.- For Ascend 910B TP8 production serving, use the ready-to-run Orinfer A2 W4A8 release
immiq/DeepSeek-V4.1-Flash-1017-Uncensored-Orinfer-A2-W4A8.
Recommended sampling parameters (from upstream):
| Parameter | Value |
|---|---|
temperature |
1.0 |
top_p |
1.0 |
context_window |
1M tokens |
max_tokens |
≥ 256K |
License & Citation
This repository and its model weights are derived from deepseek-ai/DeepSeek-V4.1-Flash-1017 and remain licensed under the MIT License.
@misc{deepseekai2026deepseekv41flash,
title={DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression},
author={DeepSeek-AI},
year={2026},
}