[Platform][Kernel] platform-specific kernel loading (#25823)

Signed-off-by: Hank <hcc.mayday@gmail.com>
This commit is contained in:
Hank_
2025-10-05 13:25:15 +02:00
committed by GitHub
parent 3303cfb4ac
commit 17edd8a807
4 changed files with 27 additions and 11 deletions
+4
View File
@@ -34,6 +34,10 @@ class XPUPlatform(Platform):
dist_backend: str = "ccl" # ccl | xccl
device_control_env_var: str = "ZE_AFFINITY_MASK"
@classmethod
def import_core_kernels(cls) -> None:
pass
@classmethod
def get_attn_backend_cls(cls, selected_backend: "_Backend", head_size: int,
dtype: torch.dtype, kv_cache_dtype: Optional[str],