Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
niuzheng168 committed Sep 13, 2024
1 parent 44fe04f commit bac660b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/engine/llm_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ def _advance_to_next_step(

assert len(seq_group.seqs) == 1
seq = seq_group.seqs[0]
if len(sample.output_tokens) > 1:
if sample.output_tokens and len(sample.output_tokens) > 1:
seq.append_token_id(sample.output_tokens,
sample.logprobs)
else:
Expand Down

0 comments on commit bac660b

Please sign in to comment.