Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions vllm_gaudi/v1/attention/backends/hpu_attn.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ def get_metadata_cls() -> type["AttentionMetadata"]:

@staticmethod
def get_supported_kernel_block_sizes() -> list[Union[int, MultipleOf]]:
# 128 is the standard HPU kernel block size; 528 is required for
# Granite 4.0-H (granitemoehybrid) without prefix caching (16-token
# FA alignment), 768 with prefix caching (chunk-aligned).
return [128, 528, 768]
# 16 is supported for testing/smaller models; 128 is the standard HPU
# kernel block size; 528 is required for Granite 4.0-H
# (granitemoehybrid) without prefix caching (16-token FA alignment),
# 768 with prefix caching (chunk-aligned).
return [16, 128, 528, 768]

@classmethod
def get_preferred_block_size(cls, default_block_size: int) -> int:
Expand Down
Loading