[KV Offloading] Back-pressure detection and remediation (#50045)

Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: bnellnm <49004751+bnellnm@users.noreply.github.com>
Co-authored-by: Itay Etelis <92247226+Etelis@users.noreply.github.com>
This commit is contained in:
bnellnm
2026-09-18 14:47:48 -04:00
committed by GitHub
co-authored by Itay Etelis
parent 71fc70d3ae
commit 23e26e0588
13 changed files with 1464 additions and 5 deletions
@@ -31,6 +31,7 @@ logger = logging.getLogger(__name__)
if TYPE_CHECKING:
from vllm.v1.kv_offload.base import OffloadingSpec
from vllm.v1.kv_offload.tiering.backpressure import BackpressureDetector
class ExampleSecondaryTierManager(SecondaryTierManager):
@@ -49,6 +50,7 @@ class ExampleSecondaryTierManager(SecondaryTierManager):
primary_kv_view: memoryview,
tier_type: str,
custom_param: int = 0,
backpressure_detector: "BackpressureDetector | None" = None,
):
"""Initialize the example secondary tier.
@@ -57,12 +59,14 @@ class ExampleSecondaryTierManager(SecondaryTierManager):
primary_kv_view: Memoryview over the primary tier's KV buffer.
tier_type: Name identifying this tier type.
custom_param: Dummy parameter demonstrating custom args.
backpressure_detector: Optional backpressure detector.
"""
super().__init__(
offloading_spec=offloading_spec,
primary_kv_view=primary_kv_view,
tier_type=tier_type,
backpressure_detector=backpressure_detector,
)
logger.info(