base_model: deepseek-ai/DeepSeek-V4.1-Flash-1017
base_model_relation: adapter
library_name: peft
pipeline_tag: text-generation
license: mit
language: [en, zh]
tags: [lora, deepseek-v4.1, uncensored, abliteration]
DeepSeek-V4.1-Flash-1017 Uncensored LoRA
A 232 MB PEFT LoRA adapter for deepseek-ai/DeepSeek-V4.1-Flash-1017
(revision 08c8657f02291e11b6f6b63e0e16014f8e748518). It reduces refusals while keeping reasoning on. It is served
unmerged on the official FP8 weights and selected per request, so one engine serves both the base model and this
variant. The base weights are not modified.
Hosted in a TEE (Intel TDX + NVIDIA confidential computing) on RedPill asphala/deepseek-v4.1-flash-1017-uncensored.
This adapter removes most refusals. You are responsible for how you use it and for following the law that applies
to you. Do not deploy it where an unfiltered model is inappropriate.
Files
| File | Notes |
|---|---|
adapter_model.safetensors |
rank 45, alpha 45, BF16; sha256 in SHA256SUMS |
adapter_config.json |
PEFT config |
- Target modules:
attn.wq_a,attn.wq_b,attn.wkv,attn.wo_b, and the shared-expertdown_proj. - Key names follow SGLang's DeepSeek-V4 module paths.
- Routed experts, Engram tables, the indexer and the output head are not touched.
Evaluation
Same harness, prompts and sampling for base and adapter. Each cell: reasoning on / reasoning off.
| Benchmark | Base | Adapter |
|---|---|---|
| StrongREJECT (313 prompts), refusal rate | 99.3% / — | 8.5% / 7.8% |
| IFEval (541), prompt-level strict | 87.3% / 89.7% | 87.4% / 87.4% |
| IFEval, reasoning on, 6,144-token reasoning budget | 94.1% | 94.1% |
| GSM8K (1,319), flexible-extract | 93.3% / 96.4% | 93.2% / 96.3% |
StrongREJECT uses the official rubric with an LLM judge; at n = 313 the refusal rate has a 95% interval of about
±3.5 points. Not measured: MMLU on this version, and languages other than English and Chinese.
Method
- A frozen low-rank projection edit on
wo_band the shared-expert down projection. - A LoRA fine-tune on the attention projections that restores concise reasoning which terminates properly.
- A small DPO stage that prefers short, closed, complete answers over refusals and over-long reasoning.
The parts are composed into this single adapter.
Serving
The engine needs LoRA support for the DeepSeek V4 architecture. We serve it with SGLang v0.5.23 plus the changes in
Phala-Network/sglang#126:
--enable-lora --lora-backend triton --lora-paths unc=<adapter dir> --max-lora-rank 45 --max-loras-per-batch 2
Select the adapter per request with "model": "<served-model-name>:unc".
- Set a reasoning budget for long tasks. At maximum reasoning effort the adapter can reason for a very long time.
- Keep decoder SWA bounded replay off when LoRA is enabled (the PR above does this).
- Preload the adapter with
--lora-paths.
Limitations
- With reasoning off, IFEval is about two points below the base model.
- Very short prompts with reasoning on can occasionally produce garbled text.
seeddoes not make outputs reproducible.
Licence and attribution
- Adapter licence: MIT.
- Base model: DeepSeek-V4.1-Flash-1017, MIT.
- Third-party component: the projection on the shared-expert down projection is derived from
dealignai/DeepSeek-V4.1-Flash-1017-UNCENSORED-FP8(MIT).