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: ...@@ -633,6 +633,8 @@ class Scheduler:
if not self.disable_regex_jump_forward: if not self.disable_regex_jump_forward:
jump_forward_reqs = batch.check_for_jump_forward(self.pad_input_ids_func) jump_forward_reqs = batch.check_for_jump_forward(self.pad_input_ids_func)
self.waiting_queue.extend(jump_forward_reqs) self.waiting_queue.extend(jump_forward_reqs)
if jump_forward_reqs:
self.batch_is_full = False
if batch.is_empty(): if batch.is_empty():
return None 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