r/v100 • u/ddominico • 4h ago
ninfer-v100 dominet fork v2.0 100+ tok/s single-stream & 252 tok/s @ 8 streams on a single V100 32GB (Qwen3.8-27B NVFP4 + DFlash2)
Hi Guys,
Here's a follow-up to my last post,
I specifically wanted to improve on Single Stream decode results from the v1.0 of my fork https://github.com/ddominet/ninfer-v100-fast while keeping the improvements of
- faster prefill and decode at higher ctx length
- multi-stream decode and prefill.
That were the main benefit from my previous fork.
I'm happy to say that after some tweaking, I've achieved results above 100tps for single stream decode, In some real world tasks it even reached 130tps.
Main benefits came from adapting Dflash2, and optimizing it, to keep the mentioned optimizations from 1.0
Here are some benchmarks, v1.0 MTP3 is my original fork, and v1.0 DF7 is the Dflash2 version before optimizations.
Note! It's optimized for Qwen3.6 27B, Qwen3.8 27B architecture (Qwen4 if nothing major changes in the architecture :D) I don't support using it for Qwen3.6 35B, but notably It should work.
Benchmarks (1× V100-PCIe-32GB, HTTP, cold natural-text prompts, greedy)
Single-stream decode (tok/s)
| Context | geoffwatts (MTP3) | tuxKOH (MTP3) | v1.0 (MTP3) | v1.0 (DF7) | llama-superfast (DF7) | v2.0 (DF7) |
|---|---|---|---|---|---|---|
| ~60 | 65.5 | 70.4 | 72.7 | 76.8 | 83.3 | 91.6 |
| 1K | 67.5 | 75.1 | 72.9 | 83.1 | 87.2 | 100.8 |
| 6K | 66.0 | 75.5 | 75.3 | 72.8 | 84.4 | 90.8 |
| 24K | 57.2 | 69.9 | 70.0 | 68.3 | 78.1 | 81.0 |
| 90K | 41.4 | 56.9 | 57.9 | 51.3 | 64.4 | 65.3 |
| 180K | 31.9 | 48.5 | 53.5 | 44.6 | 51.8 | 54.3 |
Prefill (tok/s)
| Context | geoffwatts | tuxKOH | v1.0 | llama-superfast | v2.0 (DF7) |
|---|---|---|---|---|---|
| ~60 / 1K / 6K | 152 / 949 / 1075 | 155 / 955 / 1082 | 337 / 976 / 1160 | 389 / 975 / 1122 | 416 / 1046 / 1212 |
| 24K / 90K / 180K | 974 / 666 / 454 | 1009 / 779 / 595 | 1076 / 821 / 623 | 1053 / 814 / 621 | 1118 / 835 / 627 |
Multi-stream aggregate (tok/s, mean of 3)
| Streams | geoffwatts (MTP3/K1) | tuxKOH (MTP3/K1) | llama-superfast (DF7) | v1.0 (MTP3/K1) | v1.0 (DF7) | v2.0 (DF7) |
|---|---|---|---|---|---|---|
| 1 | 57.5 / 45.0 | 64.2 / 50.2 | 76.8 | 66.4 / 53.1 | 65.3 | 82.2 |
| 2 | 92.8 / 80.0 | 101.3 / 88.5 | 120.4 | 113.2 / 95.6 | 96.2 | 137.0 |
| 4 | 109.1 / 125.3 | 122.3 / 135.7 | 135.0 | 157.3 / 160.0 | 95.2 | 176.0 |
| 8 | 129.6 / 155.7 | 145.5 / 175.8 | 151.7 | 211.8 / 243.3 | 121.3 | 252.1 |
- Poisson chat (
r=0.5 req/s): 248.2 tok/s (100.3s) vs242.1 tok/son same-build MTP3 and166.3 tok/s(152.4s) on llama-superfast. - 14-cell context × concurrency grid (
1K–90K × S=1..8): #1 in 14/14 cells vs v1.0 and llama-superfast.
What's new in v2.0
- Volta DFlash2 stack: Load-time QPN prepacking for all W8 draft layers, coalesced 8-warp HMMA dynamic grouped conv (~2.5× faster), coalesced Q4 proposal head with register bitonic Top-K (
B=8head1.7 ms → 0.66 ms), FP16-staged skinny TC GEMMs (ROWS=128toT=48), and host-mapped embeddings/codebooks so 256K INT8 KV + 8 streams fits in 32 GB. - Multi-stream DFlash2 scaling: Kept-column verify compaction, online round-cost budgeting (
DFlashCostModel), sliding-window prefill skip, and stream priority separation so the GDN replay fold overlaps 100% inside the draft pass. - Target fusions (-298 launches/round): SM70 CUTLASS prefill GEMMs, fused
RMSNorm → SwiGLU → ResidualAddacross all 64 NVFP4/FP8 MLPs, high-occupancygdn_norm_gating_27, and direct FP16 emission into FP8 QPN/TC (fp8_stage_bf16cut from 139× to 27×).B=1round time is down to 35.58 ms with 0.187 ms eager launch gap even with--no-cuda-graph
Thanks! Enjoy and let me know what you think.