MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / decode

Method decode

accessory/model/tokenizer.py:114–115  ·  view source on GitHub ↗
(self, t: List[int])

Source from the content-addressed store, hash-verified

112 self.need_space_before_segment = True
113
114 def decode(self, t: List[int]) -> str:
115 return self.tokenizer.decode(t)
116
117 def save(self, save_dir: str):
118 if self.tokenizer_type == "transformers":

Callers 7

mainFunction · 0.80
model_mainFunction · 0.80
generateMethod · 0.80
stream_generateMethod · 0.80
init_distributed_modeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected