vllm.v1.hisparse.layout
¶
Functions:
-
create_hisparse_layout–Size the host pool for groups laid out by
get_hisparse_kv_cache_groups. -
get_hisparse_kv_cache_groups–The groups HiSparse allocates: the host source group, then the GPU
create_hisparse_layout(vllm_config, groups, host_budget)
¶
Size the host pool for groups laid out by get_hisparse_kv_cache_groups.
Source code in vllm/v1/hisparse/layout.py
get_hisparse_kv_cache_groups(vllm_config, kv_cache_spec)
¶
The groups HiSparse allocates: the host source group, then the GPU
groups sharing one device pool. Derived resident/hot specs in
kv_cache_spec (see resolve_hisparse_specs) are laid out again
from the attention specs they belong to.