Jiunsong commited on
Commit
2a7dd6a
·
verified ·
1 Parent(s): 0d987a4

Rename release and document MQ 2xDGX performance

Browse files
Files changed (1) hide show
  1. README.md +188 -53
README.md CHANGED
@@ -1,90 +1,221 @@
1
  ---
2
  license: mit
3
  library_name: transformers
 
4
  base_model: deepseek-ai/DeepSeek-V4-Flash-0731
 
5
  tags:
6
  - deepseek-v4
 
 
7
  - fp8
 
 
 
 
 
 
 
 
 
8
  - obliteratus
 
9
  - dgx-spark
 
 
 
10
  ---
11
 
12
- # SuperDeepseek-V4-Flash
13
 
14
- SuperDeepseek-V4-Flash is a weight-level OBLITERATUS derivative of
15
- `deepseek-ai/DeepSeek-V4-Flash-0731`, pinned to `9e165c30e2704aec5d9d593cce3eebd58bbef1cb`. It was built and
16
- validated only on two local NVIDIA DGX Spark nodes; no rented GPU, cloud accelerator,
17
- or Hugging Face Job was used.
18
 
19
- ## Method
20
 
21
- The release uses two measured passes. Phase 1 fits robust trimmed
22
- harmful-minus-harmless directions independently in chat, think-high, and think-max,
23
- then fuses them into a rank-1 subspace at selected strength
24
- 2. Phase 2 recaptures the baked phase-1 model,
25
- orthogonalizes a rank-1 residual subspace against phase 1, and applies
26
- selected strength 0.5.
27
 
28
- Only 43 backbone and three DSpark `attn.wo_b` weight/scale pairs are redirected to the
29
- deterministic FP8 overlay (92 tensors). Routed experts,
30
- shared experts, routers, embeddings, mHC tensors, and all other parent tensors remain
31
- the original pinned files. Under the bounded SuperTune recovery policy, A bounded rank-64 output-head recovery was applied; its relative Frobenius delta was 0.0025.
32
 
33
- ## Measured validation
 
 
 
 
34
 
35
- | Metric | Parent | SuperDeepseek |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  |---|---:|---:|
37
- | Worst-mode refusal | 97.92% | 4.17% |
38
  | Worst empty answer | 0.00% | 0.00% |
39
- | Worst tool compliance | 100.00% | 100.00% |
40
- | Worst correct-tool rate | 100.00% | 100.00% |
41
- | Minimum capability mean | 0.9375 | 0.9583 |
42
 
43
- The independently reloaded overlay reproduced the selected candidate's deterministic
44
- validation behavior exactly. The minimum matched-case decode ratio against the parent
45
- was 0.9627; the median was
46
- 1.0012. Regular CUDA graphs beat
47
- the breakable profile by 1.2125x at C=1
48
- and 1.2674x at C=6. Accepted
49
- long-context needle-retrieval probes passed with actual prompt sizes of
50
- 149,845 and 1,028,621 tokens.
51
 
52
- Under the sealed [sparkDash](https://github.com/MiaAI-Lab/sparkDash)-style measurement contract at
53
- commit `dfde4214f32b174880832a4d317d3c0567750ac5`, p256/C6 aggregate decode measured
54
- 118.5505 tok/s for forced output and 123.2888 tok/s for
55
- structured tool output.
 
 
 
 
 
 
 
56
 
57
- ## Fast two-node serving
 
 
58
 
59
- The measured DGX Spark recipe follows the linked deployment article:
60
- <https://x.com/i/status/2083975272085221734>.
61
 
62
- Use TP=2 over CX-7 RoCEv2, NVFP4 DS-MLA KV cache, DSpark speculative decoding with
63
- K=1 and greedy draft sampling, FlashInfer b12x MoE, prefix caching, async scheduling,
64
- chunked prefill, and regular CUDA graphs. The important profile switch is:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
  ```bash
67
- export VLLM_USE_BREAKABLE_CUDAGRAPH=0
 
 
 
 
 
 
 
 
 
68
  ```
69
 
70
- The exact reproducible launcher and evidence files are included in this repository.
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  ## Uncensored behavior
73
 
74
- “Uncensored” here means the measured refusal subspace was reduced on the declared
75
- holdout while tool, formatting, Unicode, reasoning, code, repetition, serialization,
76
- and empty-output gates remained within the stated bounds. It does not mean every prompt
77
- will be answered, nor does it imply correctness or safety.
 
 
 
 
 
 
 
 
 
78
 
79
  ## Limitations
80
 
81
- - OBLITERATUS changes refusal behavior; downstream operators remain responsible for
82
- access control, policy enforcement, monitoring, and legal use.
83
- - The reported quality checks are finite canaries, not proof of universal capability.
84
- - Long-context acceptance is not a guarantee of useful recall across the full window.
85
- - The optimized serving profile is hardware- and runtime-specific to the measured
86
- two-node DGX Spark/CX-7 configuration.
87
- - The parent license and all upstream model limitations continue to apply.
 
 
88
 
89
  ## Evidence identities
90
 
@@ -97,3 +228,7 @@ will be answered, nor does it imply correctness or safety.
97
  | decode benchmark | `6745453ee65b9e59581d715bf668bc710b0bc680fe726763e9a750dd25f45565` |
98
  | overlay audit | `c618a1a2da8295b07b1d93d9a59c9a66e8e430c2b8bdf1aca07a56ad56455e8e` |
99
  | head recovery audit | `a5aa6531909444a5d6199d889030b6b9424868a7656e4db8d77c30aad4bfc8db` |
 
 
 
 
 
1
  ---
2
  license: mit
3
  library_name: transformers
4
+ pipeline_tag: text-generation
5
  base_model: deepseek-ai/DeepSeek-V4-Flash-0731
6
+ base_model_relation: finetune
7
  tags:
8
  - deepseek-v4
9
+ - mixture-of-experts
10
+ - fp4
11
  - fp8
12
+ - bf16
13
+ - mixed-precision
14
+ - quantized
15
+ - long-context
16
+ - 1m-context
17
+ - reasoning
18
+ - tool-calling
19
+ - uncensored
20
+ - vllm
21
  - obliteratus
22
+ - supertune
23
  - dgx-spark
24
+ language:
25
+ - en
26
+ - ko
27
  ---
28
 
29
+ <div align="center">
30
 
31
+ # SuperDeepseek-V4-Flash-abliterated-MQ-2xDGX
 
 
 
32
 
33
+ **A fast, less-refusing DeepSeek V4 Flash with mixed quantization (MQ), verified 1M-token retrieval, and 123 tok/s-class aggregate decode on two DGX Spark nodes.**
34
 
35
+ [![Precision](https://img.shields.io/badge/precision-FP4%20%2B%20FP8%20%2B%20BF16-0ea5e9)](#quantization-and-precision)
36
+ [![Context](https://img.shields.io/badge/context-1%2C048%2C576-7c3aed)](#verified-long-context)
37
+ [![Decode](https://img.shields.io/badge/aggregate%20decode-up%20to%20123.3%20tok%2Fs-16a34a)](#decode-performance)
38
+ [![Tools](https://img.shields.io/badge/tool%20gate-100%25-0f766e)](#behavior-and-capability)
39
+ [![License](https://img.shields.io/badge/license-MIT-64748b)](#license)
 
40
 
41
+ </div>
 
 
 
42
 
43
+ SuperDeepseek-V4-Flash-abliterated-MQ-2xDGX is the performance-focused SuperDeepseek release built from
44
+ [`deepseek-ai/DeepSeek-V4-Flash-0731`](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731).
45
+ It keeps the official hybrid checkpoint layout, applies a surgical OBLITERATUS +
46
+ SuperTune update, and ships as a directly loadable checkpoint with no LoRA or runtime
47
+ adapter required.
48
 
49
+ ## Release highlights
50
+
51
+ | | |
52
+ |---|---|
53
+ | **Architecture** | DeepSeek V4 Flash, 304B-class MoE, 43 backbone layers + 3 MTP layers, 256 routed experts, top-6 |
54
+ | **Release format** | Hybrid FP4 experts + FP8 E4M3 blocks + BF16 quality-sensitive tensors, about 169.5 GB on the Hub |
55
+ | **Targeted update** | 46 `attn.wo_b` weight/scale pairs, with all routed experts and untargeted parent tensors preserved |
56
+ | **Verified context** | 1,048,576 configured; 1,028,621-token prompt accepted with successful needle retrieval |
57
+ | **Aggregate decode** | **118.6 tok/s** forced output and **123.3 tok/s** structured tool output at p256/C6 |
58
+ | **Behavior shift** | Worst-mode refusal **97.92% -> 4.17%**, while the measured tool gates remain **100%** |
59
+ | **Capability floor** | Minimum capability mean **0.9375 -> 0.9583** against the pinned parent |
60
+
61
+ ## Why run this model
62
+
63
+ - **Far fewer unnecessary refusals:** the selected checkpoint reduces the measured
64
+ worst-mode refusal rate from 97.92% to
65
+ 4.17%.
66
+ - **Tools stay intact:** tool compliance and correct-tool selection remain at
67
+ 100.00% and
68
+ 100.00% in the paired release gate.
69
+ - **Real 1M context proof:** both 149,845-token and 1,028,621-token needle-retrieval
70
+ requests completed successfully.
71
+ - **Fast on two DGX Spark nodes:** the measured serving profile reaches
72
+ 123.3 aggregate tok/s on structured tool generation.
73
+ - **Surgical rather than destructive:** experts, routers, embeddings, mHC tensors,
74
+ and every untargeted parent tensor retain the official checkpoint representation.
75
+
76
+ ## Quantization and precision
77
+
78
+ `MQ` in the model name means **mixed quantization**. This is an
79
+ **official-layout mixed-precision checkpoint**, not a full-BF16 release and not a
80
+ custom whole-model requantization.
81
+
82
+ | Component | Precision / storage |
83
+ |---|---|
84
+ | MoE expert weights | **FP4**, inherited from the official `expert_dtype=fp4` checkpoint layout |
85
+ | Block-quantized paths | **FP8 E4M3**, dynamic activation scaling, 128x128 weight blocks, UE8M0 scales |
86
+ | 43 backbone + 3 MTP `attn.wo_b` updates | Deterministic **FP8** weight/scale overlay, 92 tensors |
87
+ | Default unquantized and quality-sensitive paths | **BF16** (`torch_dtype=bfloat16`) with F32 metadata/normalization where defined upstream |
88
+ | Output head recovery | One bounded **BF16** `head.weight` overlay, rank-64, relative Frobenius delta 0.0025 |
89
+ | Measured serving KV cache | **NVFP4 DS-MLA** |
90
+
91
+ The parent checkpoint is pinned to `9e165c30e2704aec5d9d593cce3eebd58bbef1cb`. Only the declared FP8
92
+ `attn.wo_b` pairs and the single bounded BF16 output head are redirected by the final
93
+ weight index; the remaining parent tensors keep their original quantization and bytes.
94
+
95
+ ## What was changed
96
+
97
+ The release uses two measured weight-space passes:
98
+
99
+ 1. OBLITERATUS fits a robust rank-1 refusal direction across chat,
100
+ think-high, and think-max modes and applies the selected strength
101
+ 2.
102
+ 2. A second rank-1 residual pass is recaptured from the baked first pass,
103
+ orthogonalized against it, and applied at strength
104
+ 0.5.
105
+ 3. A bounded rank-64 output-head recovery was applied; its relative Frobenius delta was 0.0025.
106
+
107
+ The final checkpoint modifies only the 43 backbone and three MTP `attn.wo_b`
108
+ weight/scale pairs plus the bounded output head. There is no inference-time adapter.
109
+
110
+ ## Behavior and capability
111
+
112
+ | Metric | Official parent | SuperDeepseek-V4-Flash-abliterated-MQ-2xDGX |
113
  |---|---:|---:|
114
+ | Worst-mode refusal | 97.92% | **4.17%** |
115
  | Worst empty answer | 0.00% | 0.00% |
116
+ | Worst tool compliance | 100.00% | **100.00%** |
117
+ | Worst correct-tool rate | 100.00% | **100.00%** |
118
+ | Minimum capability mean | 0.9375 | **0.9583** |
119
 
120
+ The independently reloaded checkpoint reproduced the selected candidate's deterministic
121
+ validation behavior exactly. Empty-output, Unicode, repetition, serialization,
122
+ reasoning, code, formatting, and tool-use sentinels were included in the release gate.
 
 
 
 
 
123
 
124
+ ## Decode performance
125
+
126
+ The numbers below are aggregate concurrent decode throughput, not single-stream speed.
127
+ They use six distinct prompts, fixed-length generation, and the sealed
128
+ [sparkDash](https://github.com/MiaAI-Lab/sparkDash)-style measurement contract at commit
129
+ `dfde4214f32b174880832a4d317d3c0567750ac5`.
130
+
131
+ | Workload | Prompt / concurrency | Aggregate decode |
132
+ |---|---:|---:|
133
+ | Forced output | p256 / C6 | **118.5505 tok/s** |
134
+ | Structured tool output | p256 / C6 | **123.2888 tok/s** |
135
 
136
+ - Median matched decode ratio vs the parent: **1.0012x**
137
+ - Minimum matched-case ratio vs the parent: **0.9627x**
138
+ - Regular CUDA graphs vs breakable: **1.2125x** at C1 and **1.2674x** at C6
139
 
140
+ ## Verified long context
 
141
 
142
+ | Actual prompt tokens | Accepted | Needle retrieved |
143
+ |---:|:---:|:---:|
144
+ | 149,845 | Yes | Yes |
145
+ | **1,028,621** | **Yes** | **Yes** |
146
+
147
+ The configured maximum is 1,048,576 tokens. These are end-to-end acceptance and
148
+ retrieval probes; they are not a claim that every task benefits equally from the full
149
+ window.
150
+
151
+ ## Two-node DGX Spark serving
152
+
153
+ The measured profile uses TP=2 over direct CX-7 RoCEv2 with the
154
+ `ghcr.io/anemll/dspark-vllm-gx10:0.1.1` runtime:
155
+
156
+ - NVFP4 DS-MLA KV cache
157
+ - DSpark speculative decoding with K=1 and greedy draft sampling
158
+ - FlashInfer b12x MoE and FlashInfer autotuning
159
+ - prefix caching, asynchronous scheduling, and chunked prefill
160
+ - regular CUDA graphs with `VLLM_USE_BREAKABLE_CUDAGRAPH=0`
161
+
162
+ The repository includes the exact two-rank launcher under
163
+ `repro/scripts/serve_superdeepseek_v4_dual.sh`. Its measured model-facing options are:
164
 
165
  ```bash
166
+ vllm serve /model \
167
+ --served-model-name SuperDeepseek-V4-Flash-abliterated-MQ-2xDGX \
168
+ --tensor-parallel-size 2 \
169
+ --max-model-len 1048576 \
170
+ --kv-cache-dtype nvfp4_ds_mla \
171
+ --moe-backend flashinfer_b12x \
172
+ --enable-prefix-caching \
173
+ --async-scheduling \
174
+ --enable-chunked-prefill \
175
+ --speculative-config '{"method":"dspark","num_speculative_tokens":1,"draft_sample_method":"greedy"}'
176
  ```
177
 
178
+ After the server is ready, it exposes an OpenAI-compatible API:
179
+
180
+ ```python
181
+ from openai import OpenAI
182
+
183
+ client = OpenAI(base_url="http://127.0.0.1:8888/v1", api_key="EMPTY")
184
+ response = client.chat.completions.create(
185
+ model="SuperDeepseek-V4-Flash-abliterated-MQ-2xDGX",
186
+ messages=[{"role": "user", "content": "Design a reliable tool-using agent."}],
187
+ max_tokens=1024,
188
+ )
189
+ print(response.choices[0].message.content)
190
+ ```
191
 
192
  ## Uncensored behavior
193
 
194
+ “Uncensored” means this checkpoint measurably reduces the selected refusal subspace
195
+ while retaining the declared capability and output-integrity gates. It does not imply
196
+ that every answer is correct or that downstream deployment controls are unnecessary.
197
+
198
+ ## Release integrity
199
+
200
+ - Parent: `deepseek-ai/DeepSeek-V4-Flash-0731@9e165c30e2704aec5d9d593cce3eebd58bbef1cb`
201
+ - 48 original parent shard names preserved
202
+ - 92 FP8 overlay tensors: exactly 46 `attn.wo_b` weight/scale pairs
203
+ - 1 bounded BF16 output-head tensor
204
+ - Independently reloaded paired validation: passed
205
+ - Decode, tool, reasoning, long-context, and output-integrity gates: passed
206
+ - Machine-readable benchmark and release evidence included under `evidence/`
207
 
208
  ## Limitations
209
 
210
+ - The speed figures are measured on a specific two-node DGX Spark/CX-7 runtime and
211
+ should not be treated as universal hardware results.
212
+ - Abliteration changes refusal behavior and can produce content the parent would
213
+ decline. Operators remain responsible for access control and appropriate use.
214
+ - The capability and integrity suites are finite regression gates, not proof of
215
+ universal correctness.
216
+ - One million token acceptance does not guarantee perfect recall at every position or
217
+ on every task.
218
+ - The parent model's license and upstream limitations continue to apply.
219
 
220
  ## Evidence identities
221
 
 
228
  | decode benchmark | `6745453ee65b9e59581d715bf668bc710b0bc680fe726763e9a750dd25f45565` |
229
  | overlay audit | `c618a1a2da8295b07b1d93d9a59c9a66e8e430c2b8bdf1aca07a56ad56455e8e` |
230
  | head recovery audit | `a5aa6531909444a5d6199d889030b6b9424868a7656e4db8d77c30aad4bfc8db` |
231
+
232
+ ## License
233
+
234
+ MIT, following the upstream DeepSeek V4 Flash release.