Instructions to use drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors") model = AutoModelForCausalLM.from_pretrained("drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors
- SGLang
How to use drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors with Docker Model Runner:
docker model run hf.co/drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors
You need to agree to share your contact information to access this model
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Responsible Use Agreement
This model has had safety refusals removed. That makes it useful for red-teaming, security research, evaluation, and unfiltered assistant tasks — and also removes guardrails a user must therefore supply themselves.
Prohibited uses (you must agree before access is granted):
- Anything involving the sexual exploitation or endangerment of minors.
- You must be of age 18 years or older to use and download this model.
- You agree any information generated that can cause harm in terms of generating recipe, knowledge to make any materials/substances is your own input and responsibility. You will be accountable for any harm/damage caused by your action/input.
- Content promoting self-harm or suicide.
- Generation of material that is illegal in your jurisdiction, or that targets real individuals for harassment, doxxing, or fraud.
- Any use prohibited by the upstream DeepSeek license.
You are responsible for adding appropriate safety filtering, human review, and access controls for your deployment. The weights are provided as-is, with no warranty. The license is inherited from the upstream DeepSeek base model — review and comply with it before use or redistribution.
Log in or Sign Up to review the conditions and access this model content.
keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors
Drop-in abliterated weights for official DeepSeek-V4-Flash-0731 (GA) that still run MiaAI-Lab’s production 2× DGX Spark recipe with DSpark speculative decoding intact.
The ablit is L10–35 only. DSpark target layers 40–42 (and L36–39) are restored hash-identical to official stock safetensors. MTP / draft tensors were never edited (edit_mtp: false).
This replaces the earlier L10–42 drop on this repo (…-Abliterated-32-32). Same gated terms. Old URL redirects here.
| HF | https://huggingface.co/drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors |
| Base | deepseek-ai/DeepSeek-V4-Flash-0731 @ 9e165c30 |
| Ablit | L10–35 · λ=3.5 · k=1 · 26× attn.wo_b · mean Δrel ≈ 0.057 |
| Anchors | L36–42 shards = official SHA-256 · DSpark targets [40, 41, 42] · MTP stock |
| Scales | float8_e8m0fnu preserved |
| Runtime | Anemll ghcr.io/anemll/dspark-vllm-gx10:0.1.1 + MiaAI 2× recipe · TP=2 · MTP=5 · nvfp4_ds_mla · util ≤ 0.85 |
Full credit: Anemll/dspark-vllm-gx10 · MiaAI-Lab/DeepSeek-v4-Flash-DSpark-2x-DGX-Spark · DeepSeek-AI
See RESPONSIBLE_USE.md and the gate form above.
Why “anchored tensors”
0731 ships DSpark inside the checkpoint (dspark_target_layer_ids: [40, 41, 42]). Projecting wo_b through L42 walks through the drafter. The target stops refusing; the stock drafter keeps proposing refusal-shaped tokens; acceptance dies.
This drop restores those safetensor shards to official stock:
| Layer | Shard | dest SHA-256 prefix |
|---|---|---|
| 36 | model-00038-of-00048.safetensors |
137fa617a74ba8e7 |
| 37 | model-00039-of-00048.safetensors |
a29af1aa519d7ce7 |
| 38 | model-00040-of-00048.safetensors |
8bc93d8a7d1987dc |
| 39 | model-00041-of-00048.safetensors |
fd312e7fdd6cb579 |
| 40 | model-00042-of-00048.safetensors |
4d19bf368083c9a1 |
| 41 | model-00043-of-00048.safetensors |
b7103842ceb70848 |
| 42 | model-00044-of-00048.safetensors |
422d3889fa20c238 |
Invariant (DSPARK_ANCHOR_MANIFEST.json): restored target shards hash-identical to official stock; live source and all MTP/draft tensors unchanged.
Live vs official 0731 (same Mia production stack, 2026-08-23)
2× DGX Spark · Anemll 0.1.1@sha256:a83948492cf1… · vLLM 0.25.2.dev0+g752a3a504 · 1M ctx · seqs=6 · util 0.835 · thinking off.
Real tasks (C1 decode / C6 agg):
| Task | Official 0731 | This checkpoint |
|---|---|---|
| structural (JSON fill-512) | 64.1 / 173 | 66.0 / 171 |
| list | 84.7 / 213 | 81.1 / 315 |
| essay | 31.9 / 90 | 34.1 / 94 |
| reading | 35.2 / 99 | 34.6 / 93 |
MiaAI matrix (bench-miaai.py, 128 tok, thinking false):
| Cell | Official | This checkpoint |
|---|---|---|
| c=1 p=256 | 67.6 | 69.2 |
| c=6 p=256 best agg | 167.5 | 173.9 |
| c=1 p=128K | 76.1 · TTFT 85s | 67.4 · TTFT 83s |
| KV tokens | 2,490,368 (2.38× @ 1M) | 2,471,790 (2.36×) |
Smoke 6/6 both legs. Long c=6 is Mia issue #27 (serialized long prefill), not an ablit regression.
Download
# after access is approved
hf download drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-Anchored-Tensors \
--local-dir ~/models/DeepSeek-V4-Flash-0731-ablit-anchored
The previous id drowzeys/keys-DeepSeekV4-Flash-GA-0731-Dspark-Abliterated-32-32 redirects here.
Serve (Mia + Anemll, 2× DGX Spark)
docker pull ghcr.io/anemll/dspark-vllm-gx10:0.1.1
# In MiaAI DeepSeek-v4-Flash-DSpark-2x-DGX-Spark .env.dspark:
# ABLITERATED=1
# DSPARK_MODEL_ABLITERATED=/path/to/DeepSeek-V4-Flash-0731-ablit-anchored
# DSPARK_REVISION_ABLITERATED=
# DSPARK_ENCODING_FILE=.../encoding/encoding_dsv4.py
# MTP_NUM_TOKENS=5 GPU_MEMORY_UTILIZATION_TEXT=0.835 MAX_MODEL_LEN=1048576
Files
| Path | Purpose |
|---|---|
model-*-of-00048.safetensors + index |
Full FP8 checkpoint (DSpark MTP stock + restored L36–42) |
DSPARK_ANCHOR_MANIFEST.json |
SHA-256 invariant for restored shards |
encoding/encoding_dsv4.py |
0731 tokenizer encoding for Anemll/Mia |
ABLIT_META.json |
Edit stats / recipe fingerprint |
ablit/ |
Refusal-direction artifacts |
Credits
- DeepSeek-AI — DeepSeek-V4-Flash-0731
- Anemll — https://github.com/Anemll/dspark-vllm-gx10
- MiaAI-Lab — https://github.com/MiaAI-Lab/DeepSeek-v4-Flash-DSpark-2x-DGX-Spark
- Keys (drowzeys) — abliteration + safetensor anchors
- Downloads last month
- 12,146