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

Method __repr__

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

Source from the content-addressed store, hash-verified

729 score: float
730
731 def __repr__(self):
732 return f"<Handle {repr(get_tokenizer().detokenize(self.tokens))}, score={self.score}>"
733
734 def is_finished(self):
735 return len(self.tokens) and self.tokens[-1] == get_tokenizer().eod

Callers

nothing calls this directly

Calls 2

get_tokenizerFunction · 0.90
detokenizeMethod · 0.45

Tested by

no test coverage detected