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: NickLucche <[email protected]>
  • Loading branch information
aurickq authored and NickLucche committed Oct 31, 2024
1 parent 9fe1684 commit 3c66d4a
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 3c66d4a

Please sign in to comment.