Repository navigation
[Perf] DeepSeek-V4.1-Flash TP2 decode: indexer top-k split gate and router GEMM row - #7624
Conversation
…ate and router GEMM row - aiter/ops/topk.py: on gfx950, stable selection over the widest index planes keeps the split decode top-k for twice as many rows before falling back to the one-block radix kernel. Past the old gate that kernel ran each long row on a single CTA; the split kernel stays faster until rows x parts exceeds the CU count, which the existing parts heuristic already bounds. - dsv41_bf16_tuned_gemm.csv: re-tuned gfx950 router GEMM row for the largest decode bucket, which the bigger decode batches pad to. Co-Authored-By: Claude Opus 5.5 <[email protected]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
WAITING ON AUTHORPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
Resolve aiter/configs/model_configs/dsv41_bf16_tuned_gemm.csv after ROCm#7624. The gfx950 128x384x5120 row changed on both sides. Take the row from main. With the fp32 partial reduction of this branch, its tile is exact and deterministic, and it is faster than the row of this branch. Co-authored-by: Claude <[email protected]> Signed-off-by: Andreas Karatzas <[email protected]>
…ate and router GEMM row (#7624) - aiter/ops/topk.py: on gfx950, stable selection over the widest index planes keeps the split decode top-k for twice as many rows before falling back to the one-block radix kernel. Past the old gate that kernel ran each long row on a single CTA; the split kernel stays faster until rows x parts exceeds the CU count, which the existing parts heuristic already bounds. - dsv41_bf16_tuned_gemm.csv: re-tuned gfx950 router GEMM row for the largest decode bucket, which the bigger decode batches pad to. Co-authored-by: Claude Opus 5.5 <[email protected]>
Motivation
At DeepSeek-V4.1-Flash TP2 decode with speculative decoding, each step carries several rows a request, so mid-size decode batches already exceed two gates that were set for smaller row counts:
Technical Details
aiter/ops/topk.py:_FLYDSL_TOPK_DECODE_GATESfor gfx950, stable, widest planes: the split decode top-k now covers twice as many rows. The parts heuristic (topk_per_row_decode_parts) already caps rows x parts at the CU count, so past the new gate the one-block kernel is still chosen.aiter/configs/model_configs/dsv41_bf16_tuned_gemm.csv: re-tuned gfx950 router GEMM row of the largest decode bucket withgemm_a16w16_tune.py, FlyDSL candidates, split-K enabled.Test Plan
top_k_per_row_decode, CUDA graph replay; outputs compared bit for bit.Test Result
🤖 Generated with Claude Code