[Fix] Fix bugs in scheduler (#1727)
This commit is contained in:
parent
3d4ceb292c
commit
19849db573
@ -196,7 +196,8 @@ class Scheduler:
|
|||||||
scheduler_outputs = SchedulerOutputs(
|
scheduler_outputs = SchedulerOutputs(
|
||||||
scheduled_seq_groups=scheduled,
|
scheduled_seq_groups=scheduled,
|
||||||
prompt_run=True,
|
prompt_run=True,
|
||||||
num_batched_tokens=len(seq_lens) * max(seq_lens),
|
num_batched_tokens=len(seq_lens) *
|
||||||
|
max(seq_lens) if seq_lens else 0,
|
||||||
blocks_to_swap_in=blocks_to_swap_in,
|
blocks_to_swap_in=blocks_to_swap_in,
|
||||||
blocks_to_swap_out=blocks_to_swap_out,
|
blocks_to_swap_out=blocks_to_swap_out,
|
||||||
blocks_to_copy=blocks_to_copy,
|
blocks_to_copy=blocks_to_copy,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user