MCPcopy Create free account
hub / github.com/FreedomIntelligence/CMB / get_input_embeddings

Method get_input_embeddings

workers/chatglm3_modeling.py:768–769  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

766 self.dropout = torch.nn.Dropout(0.1)
767
768 def get_input_embeddings(self):
769 return self.embedding.word_embeddings
770
771 def get_prompt(self, batch_size, device, dtype=torch.half):
772 prefix_tokens = self.prefix_tokens.unsqueeze(0).expand(batch_size, -1).to(device)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected