Primary sourceNVIDIA AI
View sourceEvent ·Multi-source
NVIDIA NIM 运行 SGLang 实测:默认 KV cache 调优带来 31% 吞吐提升
Benjamin Marie 在单张 RTX PRO 6000 上对比测试了 NVIDIA NIM 2.1.5 与原生 SGLang 0.5.21,两者运行同一个 Gemma 4 31B NVFP4 模型构建。单请求速度相同(35 tok/s),但 NIM 的 8 并发吞吐从 118 提升到 154 tok/s,提升 31%。 差异来源是 KV cache 默认配置:NIM 把 mem-fraction-static 设为 0.92,给 KV cache 留出更多显存,使可用上下文从 123K 增到 160K tokens,原本被拒绝的 128K-token 长提示也能正常服务;SGLang 自带的启发式只取 0.785,浪费了约 17 GB 显存。 除此之外 NIM 的价值主要在工程便利性:单个容器自动选择 GPU 并行度,并提供健康检查端点方便 Kubernetes 部署。作者计划下一步在 8x B200 或 8x H200 等经过专门调优的硬件配置上继续测试。
Current read
自己搭 SGLang 的可以看看这个测试:不换模型、不改代码,光把 KV cache 显存占比从 0.785 调到 0.92,8 并发吞吐就涨了 31%。NIM 容器的好处主要是默认参数调好了,想省事的可以试试。
11 sources26° AI heatLast updated 2026/12/5 00:27:10
Evidence
11 sourcesRelated source 1PyTorch
View sourceRelated source 2kimmonismus
View sourceRelated source 3Blognone
View sourceRelated source 4Lambda
View sourceRelated source 5阿里通义 Qwen
View sourceRelated source 6DAIR.AI
View sourceRelated source 7arXiv cs.AI
View sourceRelated source 8rohanpaul_ai
View sourceRelated source 9MiniMax_AI
View sourceRelated source 10Tech in Asia
View sourceConflict check
Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.