[KV Offload] Pass OffloadingSpec instead of VllmConfig to secondary tiers (#43076)

Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
This commit is contained in:
Ronen Schaffer
2026-05-20 03:32:08 +00:00
committed by GitHub
parent cd0ff26e7a
commit 4f940896a3
5 changed files with 15 additions and 15 deletions
@@ -23,7 +23,7 @@ from vllm.v1.kv_offload.tiering.base import (
logger = logging.getLogger(__name__)
if TYPE_CHECKING:
from vllm.config import VllmConfig
from vllm.v1.kv_offload.base import OffloadingSpec
class ExampleSecondaryTierManager(SecondaryTierManager):
@@ -37,7 +37,7 @@ class ExampleSecondaryTierManager(SecondaryTierManager):
def __init__(
self,
vllm_config: "VllmConfig",
offloading_spec: "OffloadingSpec",
primary_kv_view: memoryview,
tier_type: str,
custom_param: int = 0,
@@ -49,7 +49,7 @@ class ExampleSecondaryTierManager(SecondaryTierManager):
custom_param: Dummy parameter demonstrating custom args.
"""
super().__init__(
vllm_config=vllm_config,
offloading_spec=offloading_spec,
primary_kv_view=primary_kv_view,
tier_type=tier_type,
)