vLLM and DeepInfer Performance Comparison and Optimizations
vLLM demonstrates strong alignment with DeepInfer's capabilities, achieving decode throughput within 6% across batch sizes 8–256, and incorporating optimizations like MegaAttn and MegaMoE to enhance performance.
Performance Comparison Between vLLM and DeepInfer
In a performance comparison between vLLM and DeepInfer, vLLM demonstrates strong alignment with DeepInfer's capabilities. According to DeepSeek, vLLM's decode throughput is within 6% of DeepInfer's across batch sizes 8–256, and its prefill performance closely follows DeepInfer's published curve. Under DeepSeek's specific decode configuration (131K context, nextn=3), vLLM on GB200 achieves throughput within 6% of DeepInfer's published results across the same batch sizes (Figure 2). Notably, DeepInfer was originally built on vLLM, and vLLM has since incorporated and optimized kernels from DeepSeek's libraries, such as MegaAttn, MegaMoE, and Mega-mHC, to enhance performance further. These findings highlight the iterative development and mutual integration between vLLM and DeepInfer, enabling scalable and efficient large model inference.
Model-Specific Optimizations and Their Impact
Model-specific optimizations play a crucial role in scaling DeepSeek-V4.1-Flash efficiently. According to the DeepSeek-V4.1-Flash Technical Report, the model's small KV cache footprint—only 890 bytes per token—stems from cross-layer KV sharing and FP4 compression. This design significantly reduces memory overhead, enabling more efficient parallel processing. Additionally, bounded replay further optimizes performance by limiting the scope of KV cache updates. Layer 20 writes global KV for all tokens but processes only the last 128 for indexing and attention, while layers 21–39 focus exclusively on those tokens. These optimizations, as outlined in the DeepSeek-V4.1-Flash Technical Report, contribute to the model's ability to scale effectively on large GPU clusters like GB300 NVL72.
Scalability and Throughput on GB300 NVL72
On one NVIDIA GB300 NVL72 rack, vLLM with P/D disaggregation and Wide-EP serves DeepSeek-V4.1-Flash on SemiAnalysis AgentX at 954K tokens/s per GPU, according to vLLM Engineering. This performance is achieved with a P90 of 196 tokens/s per user, which is 7.9× higher than the single-node result previously reported. The same vLLM build also serves the model online, as noted in vLLM Engineering, demonstrating that DeepInfer’s offline model targeting does not limit the system’s ability to scale across the full NVL72 rack. Additionally, increasing the context size from 128K to 855K only adds 0.6 ms (+7%) to the target model’s decode latency, as stated in vLLM Engineering, highlighting the efficiency of the system under extended context lengths.
Efficiency of DEP and Wide-EP in Serving
In serving DeepSeek-V4.1-Flash at scale, the efficiency of DEP (Dynamic Execution Partitioning) and Wide-EP (Extended Parallelism) is critical. According to vLLM Engineering, with DEP4 decoding at 128K context and 64 requests per rank, MoE (Mixture of Experts) consumes 62% of the target step, while attention and the indexer together account for only 13%. This highlights the computational dominance of MoE in this configuration. vLLM Engineering notes that in an AgentX prefill-only run at concurrency 256, DEP4 achieved only 83% of DEP2's per-GPU throughput (53.3K vs. a higher value). This suggests that while DEP4 improves efficiency, it still lags behind DEP2 in certain high-concurrency scenarios. vLLM Engineering explains that the system now writes KV (Key-Value) cache for all new tokens but processes only the 128-token replay batch for remaining computations, indicating a trade-off between memory usage and computational efficiency.
Optimization Insights and Lessons Learned
Optimization Insights and Lessons Learned highlight the importance of addressing unexpected overhead in serving large language models. According to vLLM Engineering, the gap between GPU-only and serving step times reveals significant overhead that must be carefully managed. vLLM has supported both DeepInfer and other serving methods for a while, as noted in vLLM Engineering, and continues to perform well in large-scale scenarios. Figure 6, referenced in vLLM Engineering, illustrates decode performance on GB300 NVL72 with different EPLB configurations, showing the impact of enabling EPLB for the target model and the DSpark draft. These insights underscore the need for careful configuration and optimization when scaling models like DeepSeek-V4.1-Flash to high-performance hardware.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.