[Kernel] Gemma-4 FA4 FP8 Kernel (#48666)
Signed-off-by: Qixiang Lin <qixiangl@nvidia.com> Signed-off-by: Jhao-Ting Chen <jhaotingc@nvidia.com> Co-authored-by: Qixiang Lin <qixiangl@nvidia.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Yongye Zhu <zyy1102000@gmail.com>
This commit is contained in:
co-authored by
Qixiang Lin
Claude Opus 4.8
Yongye Zhu
parent
38f097fab8
commit
827a2af806
@@ -69,6 +69,13 @@ class AttentionBackend(ABC):
|
||||
def get_supported_kernel_block_sizes() -> list[int | MultipleOf]:
|
||||
return [MultipleOf(1)]
|
||||
|
||||
@classmethod
|
||||
def get_supported_kernel_block_sizes_for_config(
|
||||
cls, vllm_config: "VllmConfig"
|
||||
) -> list[int | MultipleOf]:
|
||||
"""Return kernel block sizes for a concrete engine configuration."""
|
||||
return cls.get_supported_kernel_block_sizes()
|
||||
|
||||
@staticmethod
|
||||
@abstractmethod
|
||||
def get_name() -> str:
|
||||
@@ -201,6 +208,13 @@ class AttentionBackend(ABC):
|
||||
|
||||
return min(s.base if isinstance(s, MultipleOf) else s for s in supported_sizes)
|
||||
|
||||
@classmethod
|
||||
def get_preferred_block_size_for_config(
|
||||
cls, default_block_size: int, vllm_config: "VllmConfig"
|
||||
) -> int:
|
||||
"""Return the preferred block size for a concrete engine config."""
|
||||
return cls.get_preferred_block_size(default_block_size)
|
||||
|
||||
@classmethod
|
||||
def indexes_kv_by_block_stride(cls) -> bool:
|
||||
"""Whether the backend reads KV pages by the runtime block stride.
|
||||
|
||||
Reference in New Issue
Block a user