MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / detokenize

Method detokenize

codegeex/megatron/tokenizer/tokenizer.py:238–242  ·  view source on GitHub ↗
(self, token_ids)

Source from the content-addressed store, hash-verified

236 return input_ids
237
238 def detokenize(self, token_ids):
239 text = self.tokenizer.decode(token_ids, skip_special_tokens=False)
240 if self.ws_start:
241 text = decode_whitespaces(text, self.ws_start, self.ws_len)
242 return text
243
244 @property
245 def eod(self):

Callers

nothing calls this directly

Calls 2

decode_whitespacesFunction · 0.70
decodeMethod · 0.45

Tested by

no test coverage detected