cyberneurova/CyberNeurova-DeepSeek-V4-Flash-abliterated-GGUF
DeepSeek-V4-Flash · Abliterated · GGUF
CyberNeurova research — cyberneurova.ai Release: v2 (three-direction multi-turn-aware ablation, 1338-prompt capture corpus)
A permanently-abliterated version of `deepseek-ai/DeepSeek-V4-Flash` (284 B FP8 MoE) packaged as GGUF for llama.cpp. The abliteration is baked into the weights at conversion time — no runtime hooks, no slowdown, no reliance on the inference framework supporting custom code paths.
Status: experimental research artifact. Built with antirez's llama.cpp DeepSeek-V4-Flash fork, which is itself experimental. Use at your own discretion.
What's new in v2
Plain English: v2 strictly dominates v1 on every dimension we measure. The big-ticket fixes are the OOD soft-refusal failure mode (which the v1 release was reported on) and tool-calling JSON correctness (which v1 broke ~25% of the time).
Detailed numbers: see cyberneurova-ablated-deepseek-flash-v4.pdf and cyberneurova-deepseek-v4-flash-abliteration-v2.html in this repo.
Variants — pick one
Routed-expert weights are quantised at the listed level; embed, head, attention, and shared-expert paths are always Q8_0 in both variants. The abliteration directions are baked into all paths.
Note: antirez's V4-Flash converter currently supports onlyq8_0,q2_k,iq2_xxs,iq2_xs,tq1_0,tq2_0for routed-expert weights. Q4_K_M / Q5_K_M / Q6_K are not available for V4-Flash GGUFs at the time of this release — the architecture's FP8 expert layout is the limiting factor, not us.
How to download
Q2_K (recommended)
hf download cyberneurova/CyberNeurova-DeepSeek-V4-Flash-abliterated-GGUF \
cyberneurova-DeepSeek-V4-Flash-abliterated-Q2_K.gguf \
--local-dir .Q8_0 (max quality)
hf download cyberneurova/CyberNeurova-DeepSeek-V4-Flash-abliterated-GGUF \
cyberneurova-DeepSeek-V4-Flash-abliterated-Q8_0.gguf \
--local-dir .Either variant will be ~98 GB or ~282 GB respectively over the wire. The HF hub uses LFS — hf download resumes interrupted transfers automatically.How to run
Step 1: Build antirez's V4-Flash-aware llama.cpp fork
V4-Flash is not in upstream llama.cpp yet. You need antirez's fork.
git clone https://github.com/antirez/llama.cpp-deepseek-v4-flash.git
cd llama.cpp-deepseek-v4-flash
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -jBuild takes 5-10 min on a modern machine. CPU-only build is sufficient (this model runs on CPU + RAM; GPU offload is optional).
Step 2: Run with llama-cli (interactive)
Q2_K:
./build/bin/llama-cli \
-m cyberneurova-DeepSeek-V4-Flash-abliterated-Q2_K.gguf \
-cnv \
-p "You are a helpful assistant." \
-r "<|im_end|>"Q8_0:
./build/bin/llama-cli \
-m cyberneurova-DeepSeek-V4-Flash-abliterated-Q8_0.gguf \
-cnv \
-p "You are a helpful assistant." \
-r "<|im_end|>"Step 3 (alternative): Run as a server with llama-server
./build/bin/llama-server \
-m cyberneurova-DeepSeek-V4-Flash-abliterated-Q2_K.gguf \
--host 0.0.0.0 --port 8080 \
-c 4096OpenAI-compatible API at http://localhost:8080/v1/chat/completions.
Important inference notes
- `-r "<|im_end|>"` is required as a stop sequence until upstream tokenizer support catches up. Without it, the model may continue past the end-of-turn marker and emit garbage.
- The DeepSeek-V4 chat template is auto-detected by recent fork builds.
- Default sampling settings (temp 0.7, top-p 0.95) work well. Nothing exotic is required for the abliteration to take effect — it's baked in.
- For quicker first-token latency on the Q2_K, try
-c 2048instead of 4096 unless you actually need the longer context.
Hardware requirements
\* You can technically run with less RAM if your system mmaps the GGUF from a fast SSD, but generation throughput drops sharply.
Reasonable platforms:
- M3/M4 Max with 128 GB unified memory → Q2_K runs comfortably
- M3/M4 Ultra with 192 GB or 512 GB → Q2K fast, Q80 with mmap
- Workstation/server with 256-512 GB DDR5 → either variant
- 8× A100/H100 with 80 GB each → either variant fits when offloaded
Headline benchmark results
Measured on the bf16 hooked weights via vLLM. The Q80 GGUF preserves these effects nearly exactly; Q2K introduces small additional noise typical of any 2-bit quant.
The soft_refusal_probe is 12 hand-curated complaint-case prompts (drug synthesis, weapons, malware, doxxing) plus 43 stratified random samples from the 1338-prompt capture corpus — prompts the model has never been benchmarked against. v2 takes refusal from 81.8% → 3.6% on this OOD set, a 22× reduction.
Full per-benchmark breakdown, by-category numbers, and sample baseline/ablated text: see the PDF and HTML in this repo.
Intended use
Defensive security research and academic study of refusal mechanisms in modern MoE LLMs. Useful as a counterfactual baseline against the original V4-Flash for safety research and red-team evaluation.
Not intended for automating harmful action. The abliteration removes canonical refusal behavior but does not remove the model's underlying knowledge — the model still recognises harmful instructions as harmful, it simply no longer refuses them by pattern.
Limitations
- A small fraction of safety-critical prompts (~3.6% on the OOD probe, ~1% on capture-time held-out evaluation) still produce refusals or soft refusals. Linear residual-stream ablation cannot fully remove these without unacceptable damage to general capabilities.
- Q2K routed-expert quantization introduces small noise on top of the ablation — Q80 paths preserve it cleanly.
- Long-context (>32 k) behaviour post-abliteration is not validated in this release.
- antirez's llama.cpp fork is experimental and not in upstream.
- v1 → v2 baselines on the bench differ slightly because the bench was re-run on a different vLLM build (v2: a B200 sm_100 source build); ablated-vs-ablated deltas are valid, baseline numbers are bench-run-specific.
License
MIT (inherits from upstream DeepSeek-V4-Flash).
Acknowledgements
- DeepSeek-AI for V4-Flash
- antirez for the V4-Flash llama.cpp fork
- Arditi et al. 2024 for the refusal-direction methodology this work builds on
