Decodes a single token ID into its string representation.
(self, token_id: int)
| 390 | return req_ids |
| 391 | |
| 392 | def _decode_token(self, token_id: int) -> str: |
| 393 | """Decodes a single token ID into its string representation.""" |
| 394 | return self.llm_engine.data_processor.process_logprob_response([token_id], clean_up_tokenization_spaces=False) |
| 395 | |
| 396 | def _build_sample_logprobs(self, logprobs_lists: LogprobsLists, topk_logprobs: int) -> list[dict[int, Logprob]]: |
| 397 | """ |