vllm.v1.kv_offload.config
¶
Normalized configuration consumed by native offloading backends.
Classes:
-
OffloadAccessMode–Direction(s) in which an offloading connector may transfer data.
OffloadAccessMode
¶
Bases: Enum
Direction(s) in which an offloading connector may transfer data.
Configured through the optional access_mode key of a connector's
config: read serves loads but never accepts stores, write accepts
stores but never serves loads, and readwrite (the default) does both.
Methods:
-
from_config–Parse a configured
access_modevalue, defaulting toreadwrite.
Attributes:
-
can_read(bool) –Whether the connector may serve loads (read from the tier).
-
can_write(bool) –Whether the connector may accept stores (write to the tier).
Source code in vllm/v1/kv_offload/config.py
can_read
property
¶
Whether the connector may serve loads (read from the tier).
can_write
property
¶
Whether the connector may accept stores (write to the tier).
from_config(value)
classmethod
¶
Parse a configured access_mode value, defaulting to readwrite.