[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:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user