Repository navigation
CUDA: MMVQ nwarps=8 for bs=1 for dense models on DGX Spark - #26843
Conversation
Signed-off-by: ynankani <[email protected]>
|
Have you tested this over MoE models? |
Tried with different quant + moe. Don't see any gain/delta due to small_k guard which makes moe and NvFP4 quant to run with generic path
|
|
Please post results with all quant types that you're changing with both MoE and Dense models at bs=1. Microbenchmarks are also ok. |
Looks like moe is not properly gated seeing regression in some quants for moe. Let me ping here once this PR is ready for review. Dense llam_3.1_8b looks okay
|
…ll idle tail) Signed-off-by: ynankani <[email protected]>
|
Hi @am17an needed to add some extra handling based on num iterations for the K geometry. Collected some perf scores with latest changes, please review. Performance sweep token gen dense and moe model (-p 0 -n 128 -r 10)phi4-mini-instruct
llama3.1-8B-instruct
gemma-4-31B
llama3.3-70B
gemma4-26B-A4B
qwen3.6-35B-A3B
|
…pture Signed-off-by: ynankani <[email protected]>
…26843) * CUDA: MMVQ nwarps=8 for bs=1 for dense models on DGX Spark Signed-off-by: ynankani <[email protected]> * skip moe experts and allow others based on k geometry (allow only small idle tail) Signed-off-by: ynankani <[email protected]> * rename MMVQ DGX Spark params to GB10 and fix MSVC constexpr lambda capture Signed-off-by: ynankani <[email protected]> --------- Signed-off-by: ynankani <[email protected]>
…26843) * CUDA: MMVQ nwarps=8 for bs=1 for dense models on DGX Spark Signed-off-by: ynankani <[email protected]> * skip moe experts and allow others based on k geometry (allow only small idle tail) Signed-off-by: ynankani <[email protected]> * rename MMVQ DGX Spark params to GB10 and fix MSVC constexpr lambda capture Signed-off-by: ynankani <[email protected]> --------- Signed-off-by: ynankani <[email protected]>
Overview
This change is inspired from #19478 .
For bs=1 decode on DGX Spark, the optimal config is nwarps=8 for dense models
blocks_per_iter = vdr * nwarps * warp_size / qi, so the K loop trip count for a rowhalves relative to nwarps=4:
For llama 3.1 8b instruct:
Additional information
Performance
Requirements