Revert "Fix TokenizerManager crash on top_logprobs with tensor values" (#27187)
This commit is contained in:
@@ -2188,7 +2188,7 @@ class TokenizerManager(TokenizerControlMixin, TokenizerManagerScoreMixin):
|
||||
# We should batch all top-k tokens in all positions.
|
||||
ret = []
|
||||
for i in range(len(token_logprobs_val)):
|
||||
if token_logprobs_val[i] is not None:
|
||||
if token_logprobs_val[i]:
|
||||
ret.append(
|
||||
self.detokenize_logprob_tokens(
|
||||
token_logprobs_val[i], token_logprobs_idx[i], decode_to_text
|
||||
|
||||
Reference in New Issue
Block a user