[Perf] Skip trivial DSV4 nonpaged indexer logits - #33857
Conversation
0a87ef3 to
5f71d1f
Compare
|
/tag-and-rerun-ci |
|
/rerun-test test/registered/models_e2e/test_deepseek_v4_flash_fp4_b200.py test/registered/models_e2e/test_deepseek_v4_flash_fp4_megamoe_b200.py test/registered/models_e2e/test_deepseek_v4_flash_fp4_h200.py |
|
Results for ⛔ ⛔ |
|
/rerun-test test/registered/models_e2e/test_deepseek_v4_flash_fp4_b200.py test/registered/models_e2e/test_deepseek_v4_flash_fp4_megamoe_b200.py test/registered/models_e2e/test_deepseek_v4_flash_fp4_h200.py |
|
Results for ⛔ ⛔ |
SGL Top-K v1/v2 synthesizes sequential indices without reading scores when a row has no more candidates than index_topk. The eager nonpaged prefill path nevertheless asked DeepGEMM to compute logits for every such row. Represent trivial rows as empty [ks, ks) ranges while preserving the semantic lengths used for KV gathering and Top-K. Keep full ranges for Torch and non-SGL fallbacks. Validated with the nonpaged indexer unit suite, SGL Top-K v1/v2 mixed and all-empty GPU correctness checks, and an 8K GB300 microbenchmark.
5f71d1f to
0a6ac06
Compare
|
/rerun-test test/registered/models_e2e/test_deepseek_v4_flash_fp4_b200.py test/registered/models_e2e/test_deepseek_v4_flash_fp4_megamoe_b200.py test/registered/models_e2e/test_deepseek_v4_flash_fp4_h200.py |
|
Results for 🚀 🚀 |
Co-authored-by: weireweire <20922698+weireweire@users.noreply.github.com>
Co-authored-by: weireweire <20922698+weireweire@users.noreply.github.com>
Motivation
SGL Top-K v1/v2 directly emits sequential indices when a row has no more candidates than
index_topk, so those logits are never read. The DSV4 eager nonpaged path still computed them with DeepGEMM.Modifications
[ks, ks)ranges.<=/> index_topkboundary assertion to the existing plan test.This targets the current eager
NonPagedIndexerPlan; unlike #25400, it does not compact rows or add a host-side decision.Validation
Performance
GB300, 8K prefill,
index_topk=1024, 80 samples:0.14361 -> 0.13467 ms(-6.23%)CI States
Latest PR Test (Base): ❌ Run #31718371894
Latest PR Test (Extra): ❌ Run #31718371557