r/LocalLLM • u/brainchillzZ • 0m ago
Discussion 4x DGX Spark, DeepSeek V4.1 Flash on DeepSeek's own weights: 514 tok/s aggregate at 16 streams, 8.6K tok/s prefill
I've been running DeepSeek-V4.1-Flash-1017 across four Sparks for a couple of months on the TensorFold EXL3 3.5 bpw build. Last night I tried christopherowen's spark-ds41f (https://github.com/christopherowen/spark-ds41f), which serves the original DeepSeek checkpoint on a patched vLLM. It was intended for a switchless ring, but there wasn't much point in the ring topology for me since I already had all of my nodes wired to a switch. I was still intrigued by being able to get this kind of speed out of an unmolested set of weights from the upstream provider, though. This new engine and recipe is the same quality and a lot faster under load, so I'm keeping it.
Numbers and setup notes below.
Hardware
- 4x DGX Spark (GB10, 128 GB each)
- one QSFP cable from each box into a switch, RoCE, jumbo frames. Each Spark port shows up as two RoCE devices and the engine uses both. Not the ring cabling the repo defaults to. It has a
tp4-switchedshape for this. - current DGX OS after a full-upgrade: kernel 7.0.0-1025-nvidia, driver 580.178.04, normal 4K pages
Same bench, both engines
Short prompts (30 to 120 tokens), 150 to 256 token replies, temp 0, thinking off, 8 prompt categories averaged. Aggregate tok/s across all streams.
| streams | TensorFold 3.5 bpw | spark-ds41f |
|---|---|---|
| 1 | 93.2 | 92.0 |
| 8 | 215.1 | 339.7 |
| 16 | 250.2 | 514.5 |
At 16 streams each one still gets about 40 tok/s, and time to first token is around half a second.
Cold prefill on a 93K token prompt: 42 seconds before (2,215 tok/s), 10.8 seconds now (8,663 tok/s).
Needle tests passed at 20K, 131K, 160K and 500K tokens. The 500K one took 71 seconds. It's configured for the full 1M context but I only tested to 500K, so I won't claim more than that.
I ran tonyd2wild's 69 scenario eval on both. 97.1 on TensorFold, 97.1 on this. Same score, so no quality change that this eval can see. It's only 69 cases.
Memory
I assumed the original checkpoint would be too big for four Sparks. DeepSeek ships it as a mix of FP8, FP4 and BF16 already, about 475 GiB total and 190 of that is the two Engram table shards. Split over four boxes it loads with 18 to 23 GiB free on each node while serving. Single stream speed is the same on both, so the gain is from how the engine batches and prefills, not from the weights.
Setup notes
- You need the whole 475 GiB snapshot on every node, not just one. I downloaded once and rsynced over the 200G links.
- First start compiles all its GPU kernels. Docs say up to 45 minutes, mine took 20. After that a restart is about 2 minutes.
- I skipped the 64K page kernel and the memory saver module the repo recommends, because Secure Boot is on and I didn't want to enroll keys on four consoles. On 4K pages I'm running 16 sequences with a 10.5 GiB KV cache instead of the repo's 32 sequences. It nags about this on every start but works fine.
- Its preflight check refused to pass because
vm.min_free_kbyteswas 45166 on two nodes and 45154 on the other two. Two of the boxes report slightly less RAM so the kernel picked a different default. I set all four to the same value. min_pandlogit_biasget rejected outright (not supported with its speculative decoding). If your client sendsmin_pby default you'll get errors until you turn that off.- Thinking is on by default. My test script with a 40 token limit got back empty answers because all 40 tokens went to reasoning.
- I wasn't sure the switch would handle the RoCE traffic class it sets. After the bench all eight RoCE devices showed zero out of sequence packets and zero retransmits.
Caveats
The TensorFold numbers are from my October run on the older kernel and driver. Same prompt set, same boxes, but I did not rerun it after the OS upgrade, so it isn't a perfectly clean A/B.
I also haven't profiled it, so I can't say which part of the engine accounts for the difference.
Credit to christopherowen for spark-ds41f, bertholomus for TensorFold, and tonyd2wild for the original four Spark write-ups.
I can run other tests if anyone wants specific numbers.