[Refactor][kv_offload]: rename block→chunk (#52615)

Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
This commit is contained in:
Ronen Schaffer
2026-09-09 17:45:49 +03:00
committed by GitHub
parent 9ffb8cea96
commit 138d137b5b
34 changed files with 933 additions and 916 deletions
@@ -704,7 +704,7 @@ def test_prom_metrics_registers_tiering_metrics_from_spec():
)
metric = prom_metrics._offloading_metric_defs[
TieringOffloadingMetrics.BLOCK_QUERIES
TieringOffloadingMetrics.CHUNK_QUERIES
]
assert metric.kwargs["labelnames"] == ["model_name", "engine", "tier"]
@@ -96,7 +96,7 @@ def test_swa_offload_window_covers_unaligned_hit(boundary, eagle, left_state):
groups.append(
KVCacheGroupSpec([f"layer{i}"], kv_spec, is_eagle_group=eagle and i == 1)
)
manager = CPUOffloadingManager(num_blocks=100)
manager = CPUOffloadingManager(num_chunks=100)
spec = SimpleNamespace(
tokens_per_block=(256, 64, 8),
tokens_per_hash=8,
@@ -2888,7 +2888,7 @@ class TestEagle:
req=req,
req_context=ReqContext(req_id="test-req"),
offloading_context=RequestOffloadingContext(
policy=OffloadPolicy.BLOCK_LEVEL
policy=OffloadPolicy.CHUNK_LEVEL
),
num_locally_computed_tokens=num_computed_tokens,
)