base_model:
- ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF
license: mit
pipeline_tag: text-generation
tags: - gguf
- deepseek-v4.1
- abliterated
- uncensored
- gsq
- rco
- strata
- llama.cpp
Changes from Abiray/DeepSeek-V4.1-Flash-1017-Uncensored-GSQ-RCO-IQ2_XXS-GGUF
This repository fixes the missing shard 6 issue in the original release. The Engram table (DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf) has been renamed to DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00006-of-00006.gguf, making it a proper part of the 6-shard model layout.
What this means for users:
- Works out of the box with llama.cpp b11870+ and Unsloth Studio — no manual symlink creation needed
- Download all files from this repository and load directly
- The
.gitattributesfile was updated to track the renamed shard 6, and the oldDeepSeek-V4.1-Flash-Engram-IQ4_NL.ggufentry was removed since that filename no longer exists - The
run_with_strata.pyhelper script was updated to reflect that shard 6 is now a real file rather than requiring a symlink
All other files (backbone shards 1-5, mmproj, chat template, conversion scripts) remain identical to the original Abiray release.
Model card for Abiray/DeepSeek-V4.1-Flash-1017-Uncensored-GSQ-RCO-IQ2_XXS-GGUF:
DeepSeek-V4.1-Flash-1017-Uncensored-GSQ-RCO-IQ2_XXS-GGUF (Zero-LoRA, llama.cpp b11870+ & Strata 6-Shard Layout)
IMPORTANT for Unsloth Studio / llama.cpp users: After downloading all files, you must create a symlink for shard 6 before loading the model. Run this command in the model directory:
ln -s DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00006-of-00006.gguf(On Windows:
mklink /H DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00006-of-00006.gguf DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf)
Alternatively, run the includedsetup_symlink.shscript. Without this step, Unsloth Studio will not recognize the Engram table as part of the model.
This repository provides a standalone, weight-baked abliterated (uncensored) GGUF build of ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF (IQ2_XXS).
Update (October 2026): Upgraded to the official
llama.cpp(b11870+/v0.8.0+) &Strata6-sharddeepseek41layout (00001-of-00006.ggufthrough00006-of-00006.gguf) with embedded Jinja chat template,deepseek41.attention.kv_source_layersmetadata, andmmproj-DeepSeek-V4.1-Flash-1017-BF16.ggufvision support.
Key Highlights
- Zero LoRA Required at Runtime: All 86 abliterated residual-writing tensors are baked directly into the quantized GGUF weights (
blk.0..39.attn_output_b.weightupgraded toQ6_K,blk.0..39.ffn_down_shexp.weight, and 6ffn_down_exps.weightlayers). - Native
llama.cpp(b11870+/b12017+) &StrataSupport: Loads directly in mainlinellama.cpp(llama-cli/llama-server) andstrata-dsv41without external adapters. - Same Size as Original (138.58 GB vs. 138.24 GB): Adds only
+0.34 GB(+0.25%) across the entire 5-shard backbone. - 100% GSQ-RCO Intelligence Preserved: All 28 1-bit
IQ1_MGSQ-calibrated routed-expert layers and the 110.6 GBIQ4_NLEngram lookup table remain 100% untouched byte-for-byte.
Empirical Verification & llama-perplexity KL-Divergence Audit (b12017)
Verified end-to-end against stock ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF (IQ2_XXS) across all 40 layers and all 129,280 vocabulary logits using llama-perplexity --kl-divergence (build b12017):
| Metric | Result | Notes |
|---|---|---|
| Total Model Tensors Verified | 1,043 / 1,043 |
1,042 backbone tensors (Shards 2–5) + 1 concatenated Engram tensor (Shard 6) |
Abliterated Residual Writers (blake2b) |
86 (80 dense + 6 exact 2-bit expert layers) |
Zero 1-bit IQ1_M GSQ routed-expert tensors touched |
Preserved 1-Bit IQ1_M GSQ Expert Layers |
28 / 28 (100%) |
Preserves ISTA-DASLab's 100% AIME25 / GPQA-D calibration |
Log-Perplexity Correlation Cor(ln(PPL(Q)), ln(PPL(base))) |
99.84% |
PPL(Q) = 2.4857 ± 0.5017 vs. PPL(base) = 2.3538 ± 0.4522 |
129,280-Vocab Top-1 Token Agreement (Same top p) |
98.425% ± 1.109% |
Exact greedy Top-1 match across full 40-layer forward pass |
End-to-End Median KL-Divergence (Median KLD) |
0.000421 nats |
Mean KLD = 0.009546 ± 0.001921 nats (1% KLD = 0.000002 nats) |
Median Token Probability Shift (Median Δp) |
-0.003% |
Mean Δp = -0.602 ± 0.239%, RMS Δp = 2.747 ± 0.500% |
| Mean Non-Refusal Subspace Cosine Similarity | 0.999609 |
Across 5,119-D orthogonal intelligence subspace |
Raw llama-perplexity --kl-divergence Output (b12017)
chunk PPL ln(PPL(Q)/PPL(base)) KL Divergence Δp RMS Same top p
1 2.4857 ± 0.5017 0.05455 ± 0.01477 0.00955 ± 0.00192 2.747 ± 0.500 % 98.425 ± 1.109 %
====== Perplexity statistics ======
Mean PPL(Q) : 2.485713 ± 0.501683
Mean PPL(base) : 2.353761 ± 0.452226
Cor(ln(PPL(Q)), ln(PPL(base))): 99.84%
Mean ln(PPL(Q)/PPL(base)) : 0.054545 ± 0.014768
Mean PPL(Q)/PPL(base) : 1.056060 ± 0.015596
Mean PPL(Q)-PPL(base) : 0.131953 ± 0.056319
====== KL divergence statistics ======
Mean KLD: 0.009546 ± 0.001921
90.0% KLD: 0.029794
Median KLD: 0.000421
10.0% KLD: 0.000010
5.0% KLD: 0.000006
1.0% KLD: 0.000002
Minimum KLD: 0.000001
How to Download & Run (No LoRA Needed — llama.cpp & Strata)
Important: Both
llama.cpp(b11870+) andStrataopen the sharedDeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf(110.6 GB) lookup file as Shard 6 (...-00006-of-00006.gguf). After downloading, create a symlink (Linux/macOS) or hardlink (Windows) so Shard 6 is linked automatically:
# 1. Download all 5 backbone shards + the Engram lookup file + mmproj
hf download Abiray/DeepSeek-V4.1-Flash-1017-Uncensored-GSQ-RCO-IQ2_XXS-GGUF \
--local-dir ./DeepSeek-V4.1-Uncensored
cd ./DeepSeek-V4.1-Uncensored
# 2A. Link the Engram file as Shard 6 (Linux / macOS):
ln -s DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00006-of-00006.gguf
# 2B. Or on Windows (Command Prompt / PowerShell):
cmd /c mklink /H DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00006-of-00006.gguf DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf
Option 1: Run with llama.cpp (b11870 / v0.8.0 or newer) — Recommended
# CLI Inference
llama-cli -m DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00001-of-00006.gguf \
-ngl 99 --reasoning on --reasoning-effort 50 \
-p "Explain mixed-precision quantization."
# Server Inference (with Vision Projector)
llama-server -m DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00001-of-00006.gguf \
--mmproj mmproj-DeepSeek-V4.1-Flash-1017-BF16.gguf \
--jinja -ngl 99 --reasoning on --reasoning-effort 50 --port 8080
Option 2: Run with Strata (1x 12 GB+ NVIDIA GPU)
Note for Strata
0.2.8(build 0.1.54): Always pass--family deepseek41 --model ist-das-2.00bpwand the directory path (--model-path ./DeepSeek-V4.1-Uncensored). Because this uncensored build upgradesblk.0..39.attn_output_b.weighttoQ6_K(138.58 GBvs. stock138.24 GB), ifStrata 0.1.54's hardcoded stock file-size check insetup.pyreports"this is not a model size Strata knows", either connect Strata tollama-serverabove (http://127.0.0.1:8080) as a Custom Model API, or build the pack directly via Strata's bundledtools/dsv41/pack_gguf.py.
curl -fsSL https://github.com/Niko1221/Strata/releases/latest/download/install.sh | sh
strata launch --family deepseek41 --model ist-das-2.00bpw --model-path ./DeepSeek-V4.1-Uncensored --full-quality
Upgrading Existing Pre-Oct 27 4-Shard Downloads Locally (No Re-Download Needed)
If you previously downloaded the 00001-of-00004.gguf layout, you can convert your local folder into the 6-shard 00001-of-00006.gguf layout in place using the included patched convert_ds41_upstream.py script:
python convert_ds41_upstream.py /path/to/your/model/folder --delete-old
Shard Integrity & SHA256 Checksums
| Filename | Size | SHA256 |
|---|---|---|
DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00001-of-00006.gguf |
5.78 MB (5.51 MiB) | f356f198561f56df36f7ab92d7238a926646d76de992c34f15bcb939a5f529b9 |
DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00002-of-00006.gguf |
39.66 GB (36.94 GiB) | db021c117306070573a8aba333f34f9c47ee757a1072aaacc0cab7bf4c737862 |
DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00003-of-00006.gguf |
39.85 GB (37.11 GiB) | 5c6de54009714a6996985f86553348e5d8e0d5ece7f64a89558e2f53d90bfa76 |
DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00004-of-00006.gguf |
39.11 GB (36.43 GiB) | 706de34f9c252234cd349081b3b76bf69dc77677ac8d006f7d4538558ba49e87 |
DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00005-of-00006.gguf |
19.95 GB (18.58 GiB) | 85e29c00f0d5616de05d20b96e367ed9eb3ba20ed958c860da899dad8c9f7a8e |
DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf |
110.60 GB (103.00 GiB) | 3dac4c54893ad7aa89103c0028500eadc78e74112cef3a2930a97e67dc9fb4f3 |
mmproj-DeepSeek-V4.1-Flash-1017-BF16.gguf |
0.97 GB (0.91 GiB) | 0fdc4b7693f287e9665940cf42bd39c546ffe4f0def89c569d7d0e45d60d2df1 |
Acknowledgements & Credits
This release builds directly upon research, quantization breakthroughs, and tooling from across the open-source AI ecosystem:
- DeepSeek AI — For open-sourcing the base DeepSeek-V4.1 architecture and foundation weights.
- ISTA-DASLab — For developing the GSQ-RCO quantization pipeline, preserving the 1-bit
IQ1_Mrouted experts with zero degradation on AIME25/GPQA-D, and providing the sharedDeepSeek-V4.1-Flash-Engram-IQ4_NL.gguflookup backbone. - AtomicChat — For identifying and isolating the orthogonal refusal directions (EN+RU) that enabled weight-baked abliteration without requiring runtime LoRA adapters.