Skip to content

Commit

Permalink
[Bugfix] fix detokenizer shallow copy (vllm-project#5919)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurickq authored Oct 22, 2024
1 parent 17c79f3 commit 23b899a
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 23b899a

Please sign in to comment.