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: Amit Garg <[email protected]>
  • Loading branch information
aurickq authored and garg-amit committed Oct 28, 2024
1 parent 0cf387e commit 21d514c
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 21d514c

Please sign in to comment.