From 5a61f9806cca7131f8074f31ef3a23d1244de8d2 Mon Sep 17 00:00:00 2001 From: Lianmin Zheng Date: Tue, 31 Dec 2024 02:00:10 -0800 Subject: [PATCH] update --- python/sglang/srt/model_executor/forward_batch_info.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/sglang/srt/model_executor/forward_batch_info.py b/python/sglang/srt/model_executor/forward_batch_info.py index 8528b707be1..2b5ee0919ab 100644 --- a/python/sglang/srt/model_executor/forward_batch_info.py +++ b/python/sglang/srt/model_executor/forward_batch_info.py @@ -96,7 +96,11 @@ def is_draft_extend(self): return self == ForwardMode.DRAFT_EXTEND def is_cuda_graph(self): - return self == ForwardMode.DECODE or self == ForwardMode.TARGET_VERIFY + return ( + self == ForwardMode.DECODE + or self == ForwardMode.TARGET_VERIFY + or self == ForwardMode.IDLE + ) def is_dummy_first(self): return self == ForwardMode.DUMMY_FIRST