MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / decode

Method decode

tests/unittest/llmapi/test_llm.py:317–318  ·  view source on GitHub ↗
(self, token_ids: List[int], **kwargs)

Source from the content-addressed store, hash-verified

315 return self.tokenizer.encode(text, **kwargs)
316
317 def decode(self, token_ids: List[int], **kwargs) -> str:
318 return self.tokenizer.decode(token_ids, **kwargs)
319
320 def batch_encode_plus(self, texts: List[str], **kwargs) -> dict:
321 return self.tokenizer.batch_encode_plus(texts, **kwargs)

Callers 15

generate_filesFunction · 0.45
setup_venvFunction · 0.45
verify_qa_test_listsFunction · 0.45
replace_contentFunction · 0.45
test_unittests_v2Function · 0.45
run_commandFunction · 0.45
check_outputFunction · 0.45
_run_internalMethod · 0.45
run_cmdMethod · 0.45
check_outputFunction · 0.45
run_cmdMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected