MCPcopy Index your code
hub / github.com/zai-org/CodeGeeX / decode_code

Method decode_code

codegeex/tokenizer/tokenizer.py:58–63  ·  view source on GitHub ↗
(self, input_ids)

Source from the content-addressed store, hash-verified

56 return input_ids
57
58 def decode_code(self, input_ids):
59 if self.mode == 'codegeex-13b':
60 text = self.tokenizer.decode(input_ids, skip_special_tokens=False, verbose=False)
61 output_code = decode_whitespaces(text, self.start_extra_id, self.max_len)
62
63 return output_code

Callers 3

mainFunction · 0.95
mainFunction · 0.95
generateFunction · 0.45

Calls 2

decode_whitespacesFunction · 0.70
decodeMethod · 0.45

Tested by 2

mainFunction · 0.76
mainFunction · 0.76