MCPcopy Create free account
hub / github.com/OpenBMB/AgentCPM-GUI / get_input_embeddings

Function get_input_embeddings

sft/finetune.py:248–249  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

246 )
247 if not hasattr(model, 'get_input_embeddings'):
248 def get_input_embeddings(self):
249 return self.llm.get_input_embeddings()
250 model.get_input_embeddings = MethodType(get_input_embeddings, model)
251 if lora_args.q_lora:
252 model = prepare_model_for_kbit_training(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected