[KV Offloading] Per-request tier filtering with TierFilter/TierMatcher (#48123)

Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
This commit is contained in:
Ronen Schaffer
2026-07-27 13:29:57 +03:00
committed by GitHub
parent 30fbd05537
commit 77cba0259f
16 changed files with 301 additions and 52 deletions
+2 -2
View File
@@ -6,10 +6,10 @@ from dataclasses import dataclass
import numpy as np
import pytest
from vllm.distributed.kv_events import MEDIUM_CPU
from vllm.v1.kv_offload.base import (
LoadStoreSpec,
LookupResult,
Medium,
OffloadingEvent,
OffloadKey,
PrepareStoreOutput,
@@ -115,7 +115,7 @@ def verify_events(
stores: list[set[OffloadKey]] = []
evictions: list[set[OffloadKey]] = []
for event in events:
assert event.medium == MEDIUM_CPU
assert event.medium == Medium.CPU
if event.removed:
evictions.append(set(event.keys))
else: