Repository navigation
dsv41-1.0.0: DeepSeek-V4.1-Flash on two DGX Spark
The engine of the DeepSeek-V4.1-Flash recipe v1.0.0: DeepSeek-V4.1-Flash-1017 (EXL3, 2.9 bpw) on two DGX Spark, tensor-parallel (TP=2) over the QSFP link.
| Commit | 07aa02585f64cfb04c60a96de6554c0d4708ed46 on deepseek-v41-tp2 |
| Base | TensorFold 0.6.6 (ashhart/TensorFold) + the DeepSeek-V4.1 TP2 engine by bertholomus, with fixes by willjriley and Capicua25x |
| Image tag that the recipe builds | tensorfold-dsv41:07aa02585f64 |
| Hardware | 2x NVIDIA DGX Spark (GB10), ConnectX-7, RoCE v2, MTU 9000 |
Results (from the recipe, on this engine line)
- Decode: 57 tok/s on prose and 92 tok/s on code, 1 request. That is 2.1x and 2.3x the vLLM setup on the same pair.
- Prefill: 2,179 tok/s at 32K tokens (median of 3 cold runs), and about 2,000 to 2,200 tok/s up to 64K.
- 1,048,576-token context, 4 concurrent requests. Aggregate decode reaches 140 tok/s on code.
- 32/32 serving tests: tool calling, structured output, thinking levels, and 64K and 200K needle tests.
The saved runs and the method are in the recipe's runs/2026-10-17/ and runs/2026-10-18/.
Changes on top of the base
| Pull request | Change |
|---|---|
| #1 | tool_choice required and named on DeepSeek's DSML call format. Prompts byte-identical to DeepSeek's reference encoder. |
| #2 | Structured output (json_schema, json_object, regex, choice) on the speculative TP=2 decoder, also under --parallel. |
| #3 | Fault isolation: a host fault ends only its own stream. A broken lane ends the process with exit code 75, so a supervisor can restart it. |
| #4 | Faster long prefills (the Engram page drop). |
| #6 | Steady prefill with the prefix-cache spill on: spill files written with O_DIRECT, past the page cache. |
The recipe's docs/WHAT-I-CHANGED.md gives the reason and the proof for each change.
Use it
Do not install this engine by hand. The recipe builds the image from this commit and checks the setup:
git clone https://github.com/Elevatormusic/DeepSeek-V4.1-Flash-1017-EXL3-TensorFold-2x-DGX-SparkThen follow its README: docker/build.sh builds tensorfold-dsv41:07aa02585f64 on both nodes.
Known issues
- At netdev MTU 1500 the RDMA gather fails with
transport retry counter exceeded(recipe issue #15). Set MTU 9000 on the CX7 netdevs. The recipe's preflight checks this. The engine fix (#9) is in the next release. /v1/messagesreturns 400 whenbudget_tokens >= max_tokens(recipe issue #15). A fix is planned for the next release.
Licence
Apache-2.0, as upstream TensorFold. See LICENSE and NOTICE.