vllm.v1.simple_kv_offload.host_buffer
¶
One host mapping backing a rank's CPU KV caches.
Functions:
-
alloc_host_buffer–Map and populate an int8 CPU tensor of whole backing pages.
-
parse_hugepage_size–Parse
cpu_hugepage_block_size;Noneor"none"disables it.
alloc_host_buffer(nbytes, hugepage_size=None)
¶
Map and populate an int8 CPU tensor of whole backing pages.
HugeTLB pages never fall back to ordinary pages.
Source code in vllm/v1/simple_kv_offload/host_buffer.py
parse_hugepage_size(value)
¶
Parse cpu_hugepage_block_size; None or "none" disables it.