spark-ds41f-1030 is out, qualified and in production on both topologies: four Sparks (TP4 ring) and three Sparks (TP3 triangle), both at 1M context. As before, the release name is the project and the release date. The model is DeepSeek-V4.1-Flash-1017 at native weights.
Repository: GitHub - christopherowen/spark-ds41f: Reproducible Docker/vLLM deployment, tuning, and benchmarks for DeepSeek V4.1 Flash on a switchless three-node or four-node DGX Spark fabric. Β· GitHub
Release notes: spark-ds41f/experiments/2026-10-26-spark-ds41f-candidate/release-notes.md at main Β· christopherowen/spark-ds41f Β· GitHub
The highlights
- Stock and abliterated from one deployment, at the same time. The same native weights are served under two names:
deepseek-v4.1-flash(stock) anddeepseek-v4.1-flash-weightless(GLP-steered). The client picks per request. Stock outputs are bit-identical with steered requests in the same batch. - Multi-session tuning. A short request no longer waits behind another sessionβs long prompt. Beside a 131K prefill, its first token now arrives in 3.3β3.6 s instead of 12.4β12.8 s on four Sparks.
- Faster. On four Sparks, decode is 1.9β3.6% faster at every concurrency (78.3 tok/s at one stream) and prefill is 8β12% faster from 32K to 1M. On three Sparks, decode is 2.3β3.8% faster and prefill 4β7% faster.
- More memory headroom. The head nodeβs lowest free memory during a three-node start went from 6.2 to 7.3 GiB.
- Correctness and crash fixes, including an engine stop under mixed agent and chat traffic (#677).
- Debugging support: in-kernel phase timing, KV poisoning and a weight digest. All are off by default.
- Same answers. At temperature 0, greedy outputs are 256/256 identical to 1025 on both topologies; teacher-forced KL is 4.2e-8 nats.
Stock and abliterated, side by side
1025 could serve the GLP-steered model, but only as the whole deployment. 1030 serves both under two names from one set of native weights. Steering is applied per request: at each configured layer, the engine projects the steering direction out of the residual stream for requests that ask for the weightless name. The checkpoint is never modified or re-quantized. Requests for the stock name in the same batch, and through the same prefix cache, keep their own text, bit for bit.
The vector is msuicheβs published GLP vector for 1017 (weightless, https://weightle.ss). On AdvBenchβs 520 prompts, the stock name answered without a refusal phrase 2.5% of the time and the steered name 51.2%. Beam search on the steered name returns HTTP 400. The steering launch joins the decode chainβs programmatic dependent launch (PDL), so serving both names costs no measurable decode speed.
Multi-session performance
Several long agent sessions plus interactive chats was the case this release targeted. Until now, a long prompt arriving mid-session held every chunked step until it finished prefilling, so a short question asked beside it waited 12+ seconds for its first token.
Prefill yield (--prefill-yield short, 10 s limit) lets a waiting prompt that fits in one chunk, and any held first token, take the next step ahead of the long prefill:
- On four Sparks beside a 131K prefill, a short requestβs median first token drops from 12.4β12.8 s to 3.3β3.6 s.
- On three Sparks, beside 3 decoding streams it drops from 16.6 s to 2.0 s, and beside 6 from 18.3 s to 9.6 s. Decode steps during the long prefill are 35β44% shorter.
- The long prompt pays only while short requests keep arriving. On three Sparks that is 3.7β4.6% of its prefill rate, against 1025, which ran a larger 8,192-token chunk on the triangle. With no short requests waiting, the same prefill is 3% faster than 1025.
The work started from a scheduler inventory and a calibrated simulator of where concurrent sessions stall (#620). Thanks to @stu.miller for pushing on the βseveral long sessions, then one prefill kicks offβ case.
Performance
Speed was measured in one session per topology (1030, 1025, 1030 again), with verdicts judged against the repeat.
Four Sparks (TP4 ring, 1M context, 16 sequences):
| 1025 | 1030 | change | verdict | |
|---|---|---|---|---|
| 1 stream, decode tok/s | 75.4 | 78.3 | +3.6% | better |
| 1 stream, TTFT | 0.128 s | 0.122 s | β4.5% | better |
| 8 streams, output tok/s | 194.6 | 198.4 | +2.0% | better |
| 16 streams, output tok/s | 251.7 | 257.7 | +2.4% | better |
| prefill 32K / 131K / 1M, tok/s | 6,744 / 6,798 / 4,948 | 7,313 / 7,396 / 5,549 | +8.4% / +8.8% / +12.2% | better |
| 131K prefill beside 15 decoding streams | 6,447 | 6,978 | +8.2% | better |
Three Sparks (TP3 triangle, 1M context, 8 sequences):
| 1025 | 1030 | change | verdict | |
|---|---|---|---|---|
| 1 stream, decode tok/s | 61.2 | 63.5 | +3.8% | better |
| 1 stream, TTFT | 0.159 s | 0.153 s | β4.1% | better |
| 8 streams, output tok/s | 154.7 | 158.6 | +2.5% | better |
| prefill 32K / 131K / 262K / 500K | +4.4% / +4.1% / +5.3% / +7.0% | better |
Sampled decode (temperature > 0) is 1.9β2.9% faster at 1, 8 and 16 streams. Most of the gain comes from five changes:
- PDL along the decode chain;
- the attention front in a single launch;
- 2-bit scale codes for experts with narrow block scales;
- 64-row MoE tiles in prefill;
- the sequence-parallel MoE exchange hidden under the combine.
Every serving kernel is still TileLang. B12X no longer loads at all, and weights load directly with --load-format direct.
Memory
- vLLM no longer zeroes KV blocks as it allocates them. Each cache reads only slots that have been written, and the indexer reads no key past the visible positions.
- Two budget-sized buffers that nothing read are gone, and the drafterβs workspace lane shrank from 837 MiB to 13 MiB.
- 2-bit expert scale codes live inside the 4-bit codesβ buffer, so model loading stays at 71.67 GiB a rank on four Sparks.
- On three Sparks, where the margin is thinnest, the head nodeβs lowest free memory during startup rose from 6.2 GiB to 7.3β8.0 GiB. The startup (5 GiB) and running (3 GiB) memory guards are unchanged.
A note on the startup KV line: it now reads 11.02 full 1M contexts on four Sparks, where 1025 read 6.21. This is a counting fix (#586), not new memory. vLLM had been charging every request a promptβs in-flight chunks, and the pool is the same size.
Correctness and crash fixes
- Engine stop under mixed agent and chat traffic (#677, reported by @tsw2k). A prompt with one token left, padded with placeholder drafts, reached the Engram host hash, whose check raised and stopped EngineCore. The GPU now hashes those rows. A reproduction of the reported load (4 agents up to 311K tokens, 8 chats resending each question, 300 s) ran clean on two boots: 0 failures out of 150 requests each. 1025 has the same code path.
- The grouped MoE GEMMβs pipeline stages now wait for every threadβs copies. Before, expanding the coded scales could read rows that had not landed yet.
- Barron et al.'s softmax fix in the logprob and verification kernels. Text is unchanged; log probabilities move by up to a few 1e-6.
- DeepSeek API semantics: effort aliases,
response_format,tool_choice: noneand the assistant prefix now follow DeepSeekβs API. - One intended temperature-0 change. CED now replays a promptβs last 128 rows wherever its chunks end. Text can differ from 1025βs for multi-chunk prompts whose final chunk has 1β128 rows: 0.79% of multi-chunk prompts on four Sparks. Every other prompt is unchanged.
Debugging support
These are off by default; unset, none of them loads anything:
VLLM_DS41_IKET: in-kernel timing of each kernelβs load, wait, compute and store phases, for finding where a stepβs time goes.VLLM_KV_CACHE_POISON: fills new KV blocks with NaN, so a read of an unwritten slot shows up instead of silently reading zeros.SPARK_DS41F_WEIGHT_DIGEST: a digest of the loaded weights, to confirm every node serves the same bytes.
Switched fabrics (contributed)
Thanks to @rob01 for the nccl-switched and oneshot-switched transports, with their doctor checks (#662). Thanks to @tsw2k for marking NCCL and sparknet packets for the switchβs lossless traffic class (#669). rob01 has run them for 14+ hours behind a switch. My own qualification covers only the switchless ring and triangle.
Reproducibility and rollback
Each releaseβs recipe and upstream lock are now frozen in the repository: releases/spark-ds41f-1030/ and, for rollback, releases/spark-ds41f-1025/. Tests check that production matches the newest release. Host requirements are unchanged from 1025: memory-saver DKMS 0.4.1, the 64 KiB kernel for the 1M profiles, driver 580.178.04.
Upgrading from 1025
-
Pull
main(9461a705 or later). -
New: put the GLP vector file on every node. The recipe serves the second name, and
cluster startrefuses without the file. The repository is gated, so accept its agreement once on Hugging Face, then on each node:hf download msuiche/DeepSeek-V4.1-Flash-1017-abliterated-cyber-GLP-39-L1-39-a0.75
glp.deepseek-v41-flash-1017-GLP-39-L1-39-a0.75.gguf
βrevision 2715ffd51f59899115853e1118db080536966c44 -
Build on one idle node and copy the image to the others (docs/setup.md, section 6):
bin/spark build prepare
bin/spark --cluster-config config/cluster.json build image --apply -
Sync, start and check:
bin/spark --cluster-config config/cluster.json cluster sync --apply
bin/spark --cluster-config config/cluster.json cluster start --apply
bin/spark --cluster-config config/cluster.json doctor --live
Known limitations
- On three Sparks, a 131K prefill beside 3β6 decoding streams with short requests waiting is 3.7β4.6% slower than 1025. This is the yield trade-off above, accepted for the short requestsβ first token arriving 2β8Γ sooner.
- Seeded sampling at 8 streams depends on the batch under adaptive verification, as in 1025. Temperature 0 does not.
- Copy drafts beside DSpark are not in this release; enabled, they still fail to start (#619).
Special thanks: Jordi (@JordiPosthumus on GitHub)
Much of this releaseβs three-Spark work comes from Jordi, who runs two TP3 triangles at 1M and has independently qualified every candidate on them:
- The triangleβs 6,144-token prefill budget. Jordi measured that 6,144 beats 8,192 on a triangle: shorter decode stalls beside a long prompt for about 2% of prefill (#503). That is the budget 1030 ships and qualified.
- Prefill yield on three Sparks. He measured the stall on his triangle, checked my scheduler simulator against hardware, and reproduced a starvation case at 8 slots (#620). He then showed that yield costs nothing in decode at any depth on TP3 (#668).
- Memory. He confirmed the buffer and workspace savings independently on a triangle: the head nodeβs lowest free memory during a 983K-token prefill went from 3.74 to 5.24 GiB (#642).
- Candidates qualified before mine. He wrote and qualified candidate 10βs TP3 arm (#653) and qualified candidate 12 on both of his triangles while mine was still cabled as a ring. He also caught a defect in candidate 12βs TP3 arm (the four-image cap had come back) and checked that a site can drop the steered name cleanly (#668).
- Earlier releases: the max_num_seqs boot failure (#434), memory growth at 1M (#439), the missing prompt-token details (#455), containerd image IDs (#488) and the sink-metric scopes (#489).
Jordiβs work is careful and well-measured, and it has made the triangle a first-class target. Thank you.
Thanks also to msuiche, rob01, tsw2k and stu.miller, and to everyone posting results and logs in this thread. Reports like #677 are how the crash fixes happen.
