Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Dec 31, 2024
1 parent 333fe8c commit 5a61f98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/sglang/srt/model_executor/forward_batch_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a61f98

Please sign in to comment.