Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgshaw2-neuralmagic committed Jan 3, 2025
1 parent c3c4f9c commit fec3d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/transformers_utils/detokenizer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def detokenize_non_incrementally(
# treats it as decoding batch N seq_len 1, such
# that they all happen independently.
flat_token_ids = token_ids.reshape(-1, 1)
# TODO(rob): deal with MistralTokenizer not doing
# batch_decode?
# TODO(andy): deal with MistralTokenizer not having
# batch_decode. Follow up if hard?
return tokenizer.batch_decode(flat_token_ids)

Check failure on line 89 in vllm/transformers_utils/detokenizer_utils.py

View workflow job for this annotation

GitHub Actions / mypy (3.9)

Item "MistralTokenizer" of "Union[Any, Any, MistralTokenizer]" has no attribute "batch_decode" [union-attr]

Check failure on line 89 in vllm/transformers_utils/detokenizer_utils.py

View workflow job for this annotation

GitHub Actions / mypy (3.10)

Item "MistralTokenizer" of "Any | Any | MistralTokenizer" has no attribute "batch_decode" [union-attr]

Check failure on line 89 in vllm/transformers_utils/detokenizer_utils.py

View workflow job for this annotation

GitHub Actions / mypy (3.11)

Item "MistralTokenizer" of "Any | Any | MistralTokenizer" has no attribute "batch_decode" [union-attr]

Check failure on line 89 in vllm/transformers_utils/detokenizer_utils.py

View workflow job for this annotation

GitHub Actions / mypy (3.12)

Item "MistralTokenizer" of "Any | Any | MistralTokenizer" has no attribute "batch_decode" [union-attr]


Expand Down

0 comments on commit fec3d15

Please sign in to comment.