vllm.platforms.hpu
HpuPlatform
¶
Bases: Platform
Source code in vllm/platforms/hpu.py
device_control_env_var
class-attribute
instance-attribute
¶
device_control_env_var: str = 'HABANA_VISIBLE_MODULES'
check_and_update_config
classmethod
¶
check_and_update_config(vllm_config: VllmConfig) -> None
Source code in vllm/platforms/hpu.py
get_attn_backend_cls
classmethod
¶
get_attn_backend_cls(
selected_backend: _Backend,
head_size: int,
dtype: dtype,
kv_cache_dtype: Optional[str],
block_size: int,
use_v1: bool,
use_mla: bool,
) -> str