DeepSeek-V4.1-1017-Ablitrated-Efficient-v4
Full merged weights of the v7b-quiet abliteration, published together with a
delta against base 1017. The merge is …-Efficient-v3 (V3.1 lineage) with
its head replaced by v7b; the head is the whole change.
- Repo (full weights): 48 shards, 96,085 tensors, same FP8 layout as the parent.
- Base-relative delta:
delta/v4-vs-base-1017.safetensors(159 tensors, 3.46 GB) — apply todeepseek-ai/DeepSeek-V4.1-Flash-1017and you get exactly these shards. - v3-relative delta:
delta/v4-vs-v3.safetensors(1 tensor, 1.32 GB) — apply to the v3 checkpoint for the lightweight path.
Research release. No training was performed; this is inference-time weight surgery on an MIT-licensed DeepSeek-V4.1 derivative.
Results (this box, TP4, greedy, seed 7)
| Suite | n | Refusal | Soft | Footnotes | Direct | Reprimand |
|---|---|---|---|---|---|---|
| XSTest normal | 450 | 0 | 1 | 2 | 162 (36 %) | 15 (3.3 %) |
| HarmBench standard | 200 | 0 | 0 | 0 | 92 % | 4 % |
| Agentic prompts | 20 | 0 | 0 | 0 | 100 % | 20 % |
| SORRY-bench | 450 | 0.2 % | 0 | — | 86 % | — |
| MMLU-Pro | 600 | — | — | — | 64.5 % | — |
| GSM8K | 600 | — | — | — | 97.2 % | — |
Comparison to the previous best delta (…-v4x06):
| Axis | v4x06 | v4 (v7b) | Δ |
|---|---|---|---|
| XSTest-450 refusal / soft | 0 / 0 | 0 / 1 | soft +1 |
| XSTest footnotes | 9 | 2 | −7 |
| Agentic direct | 75 % | 100 % | +25 pp |
| MMLU-Pro 600 | 57.0 | 64.5 | +7.5 pp |
| GSM8K 600 | 96.8 | 97.2 | +0.4 pp |
Paired McNemar on identical MMLU items vs v4x06: +15 / −63, p < 1e-4 (decisive). Versus the immediately preceding v7b parent (HB4, 64.7): +10 / −9, p = 1.0 — MMLU is flat run-to-run; the footnote improvement is the real HB4→HB5 movement.
What changed vs base 1017
159 tensors, all bf16/fp8 layout preserved:
| Tensor group | Count | Change |
|---|---|---|
head.weight | 1 | 55 token rows rescaled — I ×1.15, refusal/hedge openers ×0.4–0.9 |
layers.*.attn.wo_b.weight / .scale | 80 | V3.1 values (base-1017 attention output restored during v3's own merge) |
layers.*.ffn.shared_experts.w2.weight / .scale | 78 | V3.1 values; layers 39 is identical to base and omitted |
The 55 head rows are one lexical family: the first-person opener I (boosted ×1.15) plus
the contraction and auxiliary rows it needs ('d, 's, 't, 'll, 're, 've, Ġam,
Ġis, Ġdo, Ġcan, Ġhave, Ġwould, Ġshould, Ġable, Ġunable, Ġknow,
Ġonly, …) and the refusal/hedge set (Ġsorry, Ġunfortunately, ĠUnfortunately,
Ġcaution, Ġwarning, ĠWarn, Ġpause, Ġclarify, Ġreality, ĠHold,
ĠDisclaimer, Ġapologize, Ġafraid, Ġglad, Ġappreciate, Ġactually,
ĠActually, ĠNote, ĠImportant, ĠBefore, Ġimportant, Ġunderstand,
Ġasking, Ġlove, Ġhappy, …). Per-row scales and token ids live in
delta/deltas.json.
Apply the delta
from safetensors import safe_open
# base-relative: 159 tensors, patch the 41 affected shards of DeepSeek-V4.1-Flash-1017
python delta/apply_delta.py \
--base /models/DeepSeek-V4.1-Flash-1017 \
--delta delta/v4-vs-base-1017.safetensors \
--out /models/v4-merged
apply_delta.py hardlinks every untouched shard and rewrites only the 41 that hold a patched
tensor; budget ~300 GB of free disk. --verify re-reads the output and compares all 96,085
tensors against the delta's base_sha256/sha256 map.
In-process (vLLM, TP4) for the v3-relative file:
curl -X POST http://127.0.0.1:18000/collective_rpc \
-H 'Content-Type: application/json' \
-d '{"method":"apply_weight_delta","args":["delta/v4-vs-v3.safetensors"]}'
curl -X POST http://127.0.0.1:18000/reset_prefix_cache
Expect {"loaded":1,"unknown":[],"requested":1}. Deltas are lost on restart.
Lineage
deepseek-ai/DeepSeek-V4.1-Flash-1017 (MIT)
└─ pentacoxian-dev/DeepSeek-V4.1-1017-Ablitrated-Efficient-v3 (V3.1)
└─ this repo: v3 + v7b head
Limitations
- Agentic is n=20; ±1 prompt is 5 pp. The 100 % direct is stable across two runs, but the 20 % reprimand is at the noise floor.
- HarmBench direct is 5 pp under v4x06; the residual is creative-prose output the letter-opener classifier does not credit, present in every weight set tested.
- MMLU-Pro is 3.8 pp under the un-abliterated base. Restoring base
q/kv/wo_afor layers 20–39 was neutral (64.0 vs 64.7, p = 0.52) and is not included. - Full checkpoint is 500 GB; the delta is the practical artifact. License is MIT inherited
from DeepSeek; abliteration and merge by
pentacoxian-dev.