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

Method __setstate__

models/12B/tokenization_telechat.py:66–69  ·  view source on GitHub ↗
(self, d)

Source from the content-addressed store, hash-verified

64 return state
65
66 def __setstate__(self, d):
67 self.__dict__ = d
68 self.sp_model = spm.SentencePieceProcessor(**self.sp_model_kwargs)
69 self.sp_model.Load(self.vocab_file)
70
71 @property
72 def vocab_size(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected