license: mit
base_model:
- AtomicChat/DeepSeek-V4.1-Flash-1017-Uncensored-GSQ-RCO-GGUF
- ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF
- deepseek-ai/DeepSeek-V4.1-Flash-1017
base_model_relation: quantized
pipeline_tag: text-generation
library_name: gguf
tags: - gguf
- deepseek
- deepseek41
- gsq
- rco
- abliteration
- uncensored
- anti-overthinking
- control-vector
- llama-cpp
- text-generation
DeepSeek-V4.1-Flash-1017 · Uncensored + Anti-Overthinking (GSQ-RCO IQ2_XXS)
An optimized, llama.cpp-ready (b11870+) release of AtomicChat/DeepSeek-V4.1-Flash-1017-Uncensored-GSQ-RCO-GGUF (IQ2_XXS, 2.0 bpw) designed to suppress redundant "Wait" / "But wait" overthinking loops inside <think> without degrading reasoning quality.
What's included & what changed
Native
llama.cpp(b11870+) upstream layout:- Converted from AtomicChat's 4-shard pre-upstream layout to ISTA-DASLab's upstream 6-shard
llama.cpplayout (00001..00005-of-00006.gguf+ symlink to ISTA-DASLab's sharedEngramshard 6), includingengram_kv, foldedengram_gate, vision router bias (exp_probs_b_vl), and the updatedchat_template.jinja. - All 384 GSQ-RCO routed experts and AtomicChat's refusal removal are preserved byte-for-byte.
- Converted from AtomicChat's 4-shard pre-upstream layout to ISTA-DASLab's upstream 6-shard
Surgical Anti-Overthinking LM-Head Patch (baked into Shard 2,
output.weight):- We probed the collapsed residual stream (
hc_attn_pre-0..39andhc_out) across all 40 layers of DeepSeek-V4.1-Flash using de-confounded contrastive<think>traces (PRE_WAITvsNORMAL_THINKvsPRE_CLOSEvsOUTSIDE_THINK, verifying Layer 0 embedding controlLOO-AUROC = 0.47). - The true backtracking/overthinking circuit concentrates in Layers 17–31 (peaking at L21–L31 with
LOO-AUROC = 1.0000,Cohen's d = 9.7–11.6, inter-layer cosine0.85–0.95). - Because overthinking vs.
</think>closure is a two-sided axis, symmetric dense-layer orthogonalization can degrade closure confidence. Instead, we extracted the exact post-output_normbacktracking direction orthogonalized against final-answer prose (OUTSIDE_THINKmean0.00,NORMAL_THINK-0.23,PRE_WAIT+8.42) and surgically attenuated only the 10 backtracking starter token rows (Wait,Hold,Actually,Alternativelyvariants) inoutput.weight(gamma = 10.0, beta = 0.0). - 129,270 of 129,280 vocabulary rows and all 40 transformer blocks remain 100% untouched.
- We probed the collapsed residual stream (
Calibrated Control Vector (
ds41_overthink_suppress.gguf, 800 KB):- Included in this repository for native
llama.cpp--control-vector-scaledsteering on Layers 17–31, explicitly orthogonalized against final-answer prose (OUTSIDE_THINK). - Recommended healthy scale:
-0.008(tunable between-0.006and-0.011; avoid<= -0.014, which can trigger premature</think>tokens).
- Included in this repository for native
Benchmarks (A100-80GB, llama.cpp, thinking=true, reasoning_effort=high)
Measured on overthinking-prone logic/math prompts + 3 reasoning canaries (sum of primes in (20,40) = 120, syllogism No, Python list comprehension [2, 4, 8]):
| Configuration | Overthinking Tokens (3 prompts) | Total Backtracks | Explicit "wait" |
Canary Tokens (3 prompts) | Canaries Passed | Spurious </think> / Artifacts |
|---|---|---|---|---|---|---|
Stock AtomicChat IQ2_XXS |
3,861 | 11 | 10 | 350 | 3 / 3 | 0 |
Baked LM-Head + Control Vector (-0.008, L17–31) |
2,988 (-23%) | 2 (-82%) | 2 (-80%) | 290 (-17%) | 3 / 3 | 0 |
Per-prompt highlights (Stock → Optimized):
math_clock:1,159 → 563tokens (-51%),backtracks: 3 → 1riddle_river:1,202 → 925tokens (-23%),backtracks: 2 → 0,wait: 2 → 0hard_pylist:124 → 87tokens (-30%),wait: 1 → 0, exact[2, 4, 8]hard_primes&hard_syllogism: exact120andNo, 0 artifacts
How to run with llama.cpp (b11870 or newer)
- Download the 5 backbone shards and the optional 800 KB control vector from this repo, plus ISTA-DASLab's shared Engram lookup table (110 GB, unchanged):
hf download thiagovelsa/DeepSeek-V4.1-Flash-1017-Uncensored-AntiOverthink-GSQ-RCO-GGUF --local-dir ds41-antiot
hf download ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF --include "DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf" --local-dir ds41-antiot
# Link the shared Engram file as shard 6 of 6
ln -sf DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf \
ds41-antiot/DeepSeek-V4.1-Flash-1017-Uncensored-AntiOverthink-IQ2_XXS-00006-of-00006.gguf
- Run
llama-server(orllama-cli) with the recommended healthy control vector scale (-0.008on Layers17–31):
llama-server \
-m ds41-antiot/DeepSeek-V4.1-Flash-1017-Uncensored-AntiOverthink-IQ2_XXS-00001-of-00006.gguf \
-ngl 999 --n-cpu-moe 18 -c 8192 --jinja \
--control-vector-scaled ds41-antiot/ds41_overthink_suppress.gguf:-0.008 \
--control-vector-layer-range 17 31
(You can omit --control-vector-scaled to use only the baked output.weight backtrack suppression, or dial the scale gently between -0.006 and -0.011 depending on how concise you want <think> traces to be.)
Credits & License
- Base model: deepseek-ai/DeepSeek-V4.1-Flash-1017 (MIT License)
- GSQ-RCO quantization, upstream converter & shared Engram table: ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF (DASLab, IST Austria)
- Uncensored refusal-direction edit: AtomicChat/DeepSeek-V4.1-Flash-1017-Uncensored-GSQ-RCO-GGUF
- Anti-overthinking circuit analysis, LM-head patch, upstream conversion & calibrated control vector:
thiagovelsa
Released under the MIT License.