-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash in prepare_prompt #2500
Conversation
max() is being called with empty list of arguments. Somehow there are no sequnces
Trying to fix #2476 |
I think the cause must be deeper on why would the input list be empty. |
There is assert Here is the code in schedule. for seq_group in scheduler_outputs.scheduled_seq_groups:
seq_data: Dict[int, SequenceData] = {}
block_tables: Dict[int, List[int]] = {}
for seq in seq_group.get_seqs(status=SequenceStatus.RUNNING):
seq_id = seq.seq_id
seq_data[seq_id] = seq.data
block_tables[seq_id] = self.block_manager.get_block_table(seq)
seq_group_metadata = SequenceGroupMetadata(
request_id=seq_group.request_id,
is_prompt=scheduler_outputs.prompt_run,
seq_data=seq_data,
sampling_params=seq_group.sampling_params,
block_tables=block_tables,
prefix=seq_group.prefix,
)
seq_group_metadata_list.append(seq_group_metadata) |
Not sure whether this is the bug #2463 fixed |
Seems likely. Let me try to test if this fixes it |
@NikolaBorisov does #2463 fixes it? |
I'm closing this assuming it is fixed. Please feel free to reopen. |
max() is being called with empty list of arguments. Somehow there are no sequnces