Skip to content

vllm.distributed.kv_transfer.kv_connector.factory

Classes:

KVConnectorFactory

Methods:

get_connector_class_by_name(connector_name) classmethod

Get a registered connector class by name.

Raises ValueError if the connector is not registered.

Parameters:

  • connector_name

    (str) –

    Name of the registered connector.

Returns:

  • type[KVConnectorBaseType] –

    The connector class.

kv_cache_access(kv_transfer_config) classmethod

How the configured connector reaches the device KV cache, from its kv_cache_access classmethod.

register_connector(name, module_path, class_name) classmethod

Register a connector with a lazy-loading module and class name.

supports_hma_config(kv_transfer_config) classmethod

Return whether this KV transfer config supports HMA.

MultiConnector is a special case: the wrapper class implements SupportsHMA, but effective support depends on every configured child.