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

Method set_input_embeddings

models/7B/modeling_telechat.py:633–634  ·  view source on GitHub ↗
(self, new_embeddings: torch.Tensor)

Source from the content-addressed store, hash-verified

631 return combined_attention_mask
632
633 def set_input_embeddings(self, new_embeddings: torch.Tensor):
634 self.word_embeddings = new_embeddings
635
636 def forward(
637 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected