vllm.v1.kv_offload.tiering.factory
¶
Classes:
-
SecondaryTierFactory–Registry for SecondaryTierManager implementations, resolved by type.
SecondaryTierFactory
¶
Registry for SecondaryTierManager implementations, resolved by type.
Mirrors OffloadingSpecFactory (vllm/v1/kv_offload/factory.py): built-in tiers are pre-registered below. External tiers can either register_tier() a friendly short name up front, or skip registration entirely and pass a module_path at lookup time (out-of-tree, no vLLM fork/patch required) -- see get_tier_class.
Methods:
-
get_tier_class–Get a secondary tier class by type.
get_tier_class(tier_config)
classmethod
¶
Get a secondary tier class by type.
Parameters:
-
(tier_config¶dict) –Tier configuration dict. Must contain 'type' (the tier name or out-of-tree class name). If 'type' is not a registered tier and 'module_path' is given, the class is imported from there -- an out-of-tree tier needs no register_tier() call, just this module path in the config.
Returns:
-
type[SecondaryTierManager]–The secondary tier manager class.
Raises:
-
ValueError–If 'type' is missing, or is neither registered nor resolvable via module_path.
_import_class(name)
¶
Import a class by name.
If name contains a dot it is treated as a fully qualified path
(e.g. 'my_package.MyDetector'). Otherwise it is looked up in
the default backpressure module
(vllm.v1.kv_offload.tiering.backpressure), so short names like
'DropStorePolicy' or 'EMABackpressureDetector' work out of
the box.