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

Method get_code

codegeex/megatron/code_generation_utils.py:628–629  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

626 return f"<Beam {repr(get_tokenizer().detokenize(self.tokens))}, score={self.score}>"
627
628 def get_code(self):
629 return get_tokenizer().detokenize(self.tokens)
630
631
632def expand_beams(beams: List[Beam], num_beams: int, model) -> List[Beam]:

Callers

nothing calls this directly

Calls 2

get_tokenizerFunction · 0.90
detokenizeMethod · 0.45

Tested by

no test coverage detected