"sgl-kernel/python/vscode:/vscode.git/clone" did not exist on "94fb4e9e54efd9b6f28ff347d880c417b694b7c1"
Unverified Commit 9610fcd4 authored by Lianmin Zheng's avatar Lianmin Zheng Committed by GitHub
Browse files

Fix the batch_is_full check for jump-forward decoding (#1654)

parent 31fad29a
......@@ -633,6 +633,8 @@ class Scheduler:
if not self.disable_regex_jump_forward:
jump_forward_reqs = batch.check_for_jump_forward(self.pad_input_ids_func)
self.waiting_queue.extend(jump_forward_reqs)
if jump_forward_reqs:
self.batch_is_full = False
if batch.is_empty():
return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment