[AMD] remove redundancy H2D op in aiter attention backend (#19416)

Co-authored-by: root <root@mia1-p01-g28.mia.tensorwave.lan>
This commit is contained in:
AMD-yanfeiwang
2026-02-27 18:15:55 +08:00
committed by GitHub
parent 07da4bed7b
commit f69ca93d49

View File

@@ -1487,9 +1487,7 @@ class AiterAttnBackend(AttentionBackend):
k = k.to(fp8_dtype)
if v.dtype != fp8_dtype:
v = v.to(fp8_dtype)
one_scale = torch.tensor(
1.0, dtype=torch.float32, device=q.device
)
one_scale = torch.ones((), dtype=torch.float32, device=q.device)
kv_indptr_asm = qo_indptr
kv_indices_asm = self.forward_metadata.fp8_prefill_kv_indices