[Simulator][Compatibility] Adapt to latest KV cache pool interfaces (#40418)
This commit is contained in:
@@ -13,9 +13,9 @@ from test_simulation_sglang_serving import (
|
||||
def test_in_process_runner_reports_each_cache_tier(tmp_path):
|
||||
runner = make_sglang_runner(tmp_path)
|
||||
benchmark_config = BenchmarkConfig(request_rate=10, ignore_request_timestamp=False)
|
||||
cached_ds = make_fixed_dataset(1000, 8)
|
||||
evict_l1_ds = make_fixed_dataset(2000, 10)
|
||||
evict_l2_ds = make_fixed_dataset(3000, 20)
|
||||
cached_ds = make_fixed_dataset(1000, 3)
|
||||
evict_l1_ds = make_fixed_dataset(2000, 5)
|
||||
evict_l2_ds = make_fixed_dataset(3000, 10)
|
||||
|
||||
try:
|
||||
metrics = runner.benchmark(benchmark_config, dataset=cached_ds)
|
||||
|
||||
@@ -78,7 +78,7 @@ def make_sglang_runner(tmp_path: Path):
|
||||
hicache_ratio=2,
|
||||
hicache_storage_backend="file",
|
||||
hicache_storage_prefetch_policy="wait_complete",
|
||||
max_total_tokens=10 * 1024,
|
||||
max_total_tokens=4 * 1024,
|
||||
page_size=256,
|
||||
skip_tokenizer_init=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user