Skip to content

Commit

Permalink
[Bugfix] fix detokenizer shallow copy (vllm-project#5919)
Browse files Browse the repository at this point in the history
Signed-off-by: Erkin Sagiroglu <[email protected]>
  • Loading branch information
aurickq authored and Erkin Sagiroglu committed Oct 26, 2024
1 parent 6b9d4ac commit e853685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/transformers_utils/detokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def decode_prompt_logprobs_inplace(self, seq_group: SequenceGroup,
prefix_offset = next_iter_prefix_offset
read_offset = next_iter_read_offset
if prev_tokens is None:
prev_tokens = next_iter_tokens
prev_tokens = next_iter_tokens.copy()
else:
prev_tokens.extend(next_iter_tokens)

Expand Down

0 comments on commit e853685

Please sign in to comment.