I haven’t noticed a lot of people running Spark-specific profiles on the different models they are using to look for optimization opportunities. This is an area where we can really optimize the training and compute kernels to increase inference speeds for our hardware.
I profiled DeepSeek-V4-Flash using Nsight (ncu, nsys) on a 2-node DGX Spark setup using VLLM nightly build 0.23.1 with merges from the jasl fork (6/23) with TP=2 and MTP=2 speculative decoding. Current decode throughput is approximately 38 tokens/sec.
The main finding is that the bottleneck does not appear to be TopK, sparse MLA attention, quantization, or NCCL. The profile is dominated by GEMM execution, especially DeepGEMM FP8/FP4 kernels and suspicious BF16 CUTLASS kernels.
High-Level Findings
1. DeepGEMM is the main bottleneck
DeepGEMM FP8/FP4 kernels account for approximately 61.9% of total GPU time.
These are likely the MoE expert GEMMs, so any meaningful improvement to expert GEMM execution, expert placement, expert parallelism, or GB10-specific kernel support could have a visible effect on throughput.
A rough estimate:
- A 5% DeepGEMM improvement could produce about a 3% total speedup.
- A 10% DeepGEMM improvement could produce about a 6% total speedup.
- A 20% DeepGEMM improvement could produce about a 12% total speedup.
- A 30% DeepGEMM improvement could produce about an 18% total speedup.
2. CUTLASS BF16 kernels are suspicious
CUTLASS BF16 GEMMs account for approximately 25.6% of total GPU time.
The kernel names include cutlass_80_wmma_*, which looks suspicious on GB10 / sm_121 hardware. This does not necessarily prove that Ampere kernels are literally being emulated on Blackwell, because kernel names can reflect template names, generic paths, or PTX fallback behavior.
However, because this bucket is so large, it is one of the highest-priority items to investigate.
The key question is whether these BF16 GEMMs are using an older/generic CUTLASS path instead of a GB10 / sm_121-optimized path.
3. NCCL is visible but not the primary direct cost
NCCL AllReduce accounts for approximately 4.5% of total GPU time.
That is not nothing, but it is also not the main direct bottleneck. However, TP=2 can still create synchronization bubbles that are not fully captured by raw NCCL kernel time.
Expert parallelism is still worth testing, especially for MoE layers, because it may reduce some tensor-parallel synchronization or improve expert locality.
4. Sparse MLA and TopK are not the current bottlenecks
FlashInfer sparse MLA decode accounts for approximately 2.1% of GPU time.
The cooperative TopK / sparse indexer kernel does not appear as a major item in the top kernel list.
Based on this profile, I would not prioritize TopK tuning right now unless a future focused trace shows it above roughly 5% of total GPU time.
Possible Architecture Mismatch
The most important lead is a possible architecture-targeting issue.
DGX Spark GB10 should be sm_121, but the hot paths appear to be labeled as:
- DeepGEMM: sm120
- CUTLASS BF16: cutlass_80_wmma_*
This does not prove the kernels are definitely wrong, but it strongly suggests that the stack may not be using fully optimized GB10 / sm_121 kernel paths.
The next step should be to verify what is actually inside the loaded libraries:
- Native sm_121 SASS
- sm_120 SASS
- PTX fallback
- Older architecture-specific paths
Kernel names alone are not enough to prove the issue, but the profile strongly justifies deeper inspection.
Expected Optimization Potential
Worst Case: 5%–10%
If the current backend paths are already close to optimal for GB10, I would only expect modest gains. That would move throughput from roughly 38 tok/s to around 40–42 tok/s.
Realistic Case: 15%–30%
This is the most likely improvement range if some BF16 GEMM paths are suboptimal, MTP depth can be tuned, a newer build improves GB10 behavior, or expert parallelism/CUDA graph tuning reduces overhead.
That would put expected throughput around 44–49 tok/s.
Good Case: 30%–50%
This is possible if the CUTLASS BF16 bucket is a real fallback path, a newer vLLM / DeepSeek stack improves SM12x support, expert parallelism improves MoE execution, and MTP tuning reduces verification overhead.
That would put expected throughput around 49–57 tok/s.
Best Case: 50%–80%
This is only plausible if the architecture mismatch is severe and fixable.
That would mean replacing a large share of generic or older kernels with true GB10 / SM_121 optimized paths.
In that case, single session throughput could theoretically move from around 38 tok/s toward 57–68 tok/s on 2x DGX Spark, but I would treat that as a stretch target rather than an expected result.