MCPcopy Create free account
hub / github.com/THUDM/LongWriter / set_input_embeddings

Method set_input_embeddings

train/patch/modeling_llama.py:942–943  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

940 return self.embed_tokens
941
942 def set_input_embeddings(self, value):
943 self.embed_tokens = value
944
945 @add_start_docstrings_to_model_forward(LLAMA_INPUTS_DOCSTRING)
946 def forward(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected