[ROCm][Perf] Skip cleaning sparse prefill MQA logits (#51314)

Signed-off-by: Sriram Kumar <sriramkumar.kishorekumar@amd.com>
Co-authored-by: Douglas Lehr <91553416+dllehr-amd@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Sriram Kumar
2026-10-13 00:21:52 -05:00
committed by GitHub
co-authored by Douglas Lehr mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent f7ba007b5e
commit 2ce8012fa0
2 changed files with 57 additions and 1 deletions
@@ -933,7 +933,9 @@ def rocm_fp8_mqa_logits(
if aiter_mqa_logits_module is not None:
fp8_mqa_logits = aiter_mqa_logits_module.fp8_mqa_logits
return fp8_mqa_logits(q, k_fp8, scale, weights, cu_seqlen_ks, cu_seqlen_ke)
return fp8_mqa_logits(
q, k_fp8, scale, weights, cu_seqlen_ks, cu_seqlen_ke, clean_logits=False
)
else:
return fp8_mqa_logits_torch(q, kv, weights, cu_seqlen_ks, cu_seqlen_ke)