Skip to content

Commit

Permalink
disable mypy type check
Browse files Browse the repository at this point in the history
mypy is not smart enough to validate kwargs

Signed-off-by: Linkun Chen <[email protected]>
  • Loading branch information
Linkun Chen committed Nov 18, 2024
1 parent c963a25 commit 470fbd3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vllm/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ def from_seq_group(
finished = seq_group.is_finished()

if seq_group.request_id in seq_id_to_seq_group:
group: SequenceGroupBase = seq_id_to_seq_group[seq_group.request_id]
group: SequenceGroupBase = seq_id_to_seq_group[
seq_group.request_id]
if finished:
group.finish_seq(seq_group)
assembled_seq_group = group.maybe_assemble_group(seq_group)
Expand Down Expand Up @@ -201,8 +202,8 @@ def from_seq_group(
# num_cached_tokens should be the same for all the sequences
num_cached_tokens = None
for i, seq in enumerate(top_n_seqs):
output_text = seq.get_output_text_to_return(text_buffer_length,
delta)
output_text = seq.get_output_text_to_return(
text_buffer_length, delta)

output_token_ids = seq.get_output_token_ids_to_return(delta)
num_output_tokens = 1 if isinstance(output_token_ids,
Expand Down

0 comments on commit 470fbd3

Please sign in to comment.