[ROCm] Give turboquant boundary layers a layout-compatible backend (#54988)
Signed-off-by: Stefan Koncarevic <stefan.koncarevic@amd.com> Signed-off-by: Andreas Karatzas <akaratza@amd.com> Co-authored-by: Andreas Karatzas <akaratza@amd.com> Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
co-authored by
Andreas Karatzas
Codex
parent
e6dc16cebd
commit
e78e367c6e
@@ -194,6 +194,9 @@ def get_attn_backend(
|
||||
backend=backend,
|
||||
attn_selector_config=attn_selector_config,
|
||||
num_heads=num_heads,
|
||||
_run_kv_cache_dtype=(
|
||||
cache_config.cache_dtype if cache_config is not None else None
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -202,7 +205,11 @@ def _cached_get_attn_backend(
|
||||
backend,
|
||||
attn_selector_config: AttentionSelectorConfig,
|
||||
num_heads: int | None = None,
|
||||
*,
|
||||
_run_kv_cache_dtype: CacheDType | None = None,
|
||||
) -> type[AttentionBackend]:
|
||||
# Some platform selectors inspect the run-wide cache dtype. Keep it in the
|
||||
# cache key even though they read the value from the current config.
|
||||
from vllm.platforms import current_platform
|
||||
|
||||
attention_cls = current_platform.get_attn_backend_cls(
|
||||
|
||||
Reference in New Issue
Block a user