We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 726c7ee commit 74fa84eCopy full SHA for 74fa84e
tensorrt_llm/llmapi/tokenizer.py
@@ -94,13 +94,8 @@ def convert_ids_to_tokens(
94
self,
95
ids: Union[int, List[int]],
96
skip_special_tokens: bool = False) -> Union[str, List[str]]:
97
- # DeepSeek vocabulary has token ids not mapped to any tokens, these will get converted to None
98
- # by the tokenizer. We need to filter them out.
99
- tokens = self.tokenizer.convert_ids_to_tokens(
+ return self.tokenizer.convert_ids_to_tokens(
100
ids, skip_special_tokens=skip_special_tokens)
101
- if isinstance(ids, int):
102
- return tokens # Single token, return as-is (could be None)
103
- return [token for token in tokens if token is not None]
104
105
def convert_tokens_to_string(
106
0 commit comments