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

Method __init__

models/7B_4bit/modeling_telechat.py:745–749  ·  view source on GitHub ↗
(self, config: TelechatConfig)

Source from the content-addressed store, hash-verified

743 _keys_to_ignore_on_load_missing = [r"lm_head.weight"]
744
745 def __init__(self, config: TelechatConfig):
746 super().__init__(config)
747 self.transformer = TelechatModel(config)
748 self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
749 self.post_init()
750
751 def get_output_embeddings(self):
752 return self.lm_head

Callers

nothing calls this directly

Calls 2

TelechatModelClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected