MCPcopy Create free account
hub / github.com/Tele-AI/Telechat / __copy__

Method __copy__

models/7B/generation_utils.py:53–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 return self.input_history.__str__()
52
53 def __copy__(self):
54 new_instance = type(self)(self.tokenizer, [])
55 new_instance.input_history = copy.copy(self.input_history)
56 return new_instance
57
58 def __deepcopy__(self, memodict={}):
59 new_instance = type(self)(self.tokenizer, [])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected