[HPC Attention Backend] hpc attention backend support bf16 kv cache with fp8 weight (#50980)

Signed-off-by: chengvjiang <chengvjiang@tencent.com>
Co-authored-by: chengvjiang <chengvjiang@tencent.com>
Co-authored-by: VAthree <56064364+VAthree@users.noreply.github.com>
This commit is contained in:
Cheng Jiang
2026-08-06 15:40:14 +08:00
committed by GitHub
co-authored by chengvjiang VAthree
parent 7e724dca89
commit 470297c143
3 changed files with 75 additions and 36 deletions
@@ -62,11 +62,7 @@ class HPCExperts(mk.FusedMoEExpertsModular):
@staticmethod
def _supports_current_device() -> bool:
p = current_platform
return (
p.is_cuda()
and (p.is_device_capability(90) or p.is_device_capability_family(100))
and has_hpc()
)
return p.is_cuda() and p.is_device_capability(90) and has_hpc()
@staticmethod
def _supports_no_act_and_mul() -> bool: