Skip to content

Commit

Permalink
added check for exitance of detokenizer
Browse files Browse the repository at this point in the history
Signed-off-by: root <[email protected]>
  • Loading branch information
maleksan85 authored and root committed Jan 21, 2025
1 parent 1e60f87 commit 1cf141d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/engine/output_processor/multi_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def process_outputs(self,
def _process_decode_and_stop(self, seq: Sequence,
sampling_params: SamplingParams) -> None:
new_char_count = 0
if sampling_params.detokenize:
if sampling_params.detokenize and self.detokenizer:
new_char_count = self.detokenizer.decode_sequence_inplace(
seq, sampling_params)

Expand Down

0 comments on commit 1cf141d

Please sign in to comment.