vllm.distributed.kv_transfer.kv_connector.factory
KVConnectorFactory ¶
Source code in vllm/distributed/kv_transfer/kv_connector/factory.py
_registry class-attribute
instance-attribute
¶
_registry: dict[
str, Callable[[], type[KVConnectorBase]]
] = {}
create_connector classmethod
¶
create_connector(
config: VllmConfig, role: KVConnectorRole
) -> KVConnectorBase
Source code in vllm/distributed/kv_transfer/kv_connector/factory.py
get_connector_class classmethod
¶
get_connector_class(
kv_transfer_config: KVTransferConfig,
) -> type[KVConnectorBaseType]
Get the connector class by name.
Source code in vllm/distributed/kv_transfer/kv_connector/factory.py
register_connector classmethod
¶
Register a connector with a lazy-loading module and class name.