vllm.v1.kv_offload.tiering.factory ¶
Factory for creating secondary tier implementations.
create_secondary_tier ¶
create_secondary_tier(
tier_config: dict,
primary_kv_view: memoryview,
vllm_config: VllmConfig,
) -> SecondaryTierManager
Create a secondary tier from configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tier_config | dict | Dictionary with tier configuration containing: - type (required): Type of secondary tier (e.g., "example") - Additional tier-specific parameters are passed directly to the tier constructor | required |
primary_kv_view | memoryview | Memoryview of the primary tier's CPU KV cache. | required |
vllm_config | VllmConfig | Global vLLM configuration. | required |
Returns:
| Type | Description |
|---|---|
SecondaryTierManager | SecondaryTierManager instance |
Raises:
| Type | Description |
|---|---|
ValueError | If tier type is unknown or configuration is invalid |