vllm.model_executor.layers.attention.kv_transfer_utils
¶
Functions:
-
maybe_transfer_kv_layer–Decorator that handles KV layer transfer prior and after execution of
maybe_transfer_kv_layer(func)
¶
Decorator that handles KV layer transfer prior and after execution of an attention layer, if enabled. Otherwise, the wrapper is a no-op.
On entry: waits for the KV layer from the connector. On exit: saves the KV layer to the connector.