From 9a09b48da79d23ce050fa33252480afe3caaf33a Mon Sep 17 00:00:00 2001 From: Liangsheng Yin Date: Mon, 5 Oct 2026 23:09:41 -0700 Subject: [PATCH] [Fix] Add `maybe_hand_to_session` to the one-batch benchmark `TreeCacheNamespace` (#42723) --- python/sglang/benchmark/one_batch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/sglang/benchmark/one_batch.py b/python/sglang/benchmark/one_batch.py index 1a390fce78..00b2dfb583 100644 --- a/python/sglang/benchmark/one_batch.py +++ b/python/sglang/benchmark/one_batch.py @@ -490,6 +490,9 @@ class TreeCacheNamespace(SimpleNamespace): def evict(self, params: EvictParams): pass + def maybe_hand_to_session(self, req): + pass + @torch.no_grad def extend(reqs, model_runner):