MCPcopy
hub / github.com/ymcui/Chinese-LLaMA-Alpaca-2 / eval

Method eval

scripts/training/peft/tuners/lora.py:355–358  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

353 self.merged = False
354
355 def eval(self):
356 nn.Linear.eval(self)
357 self.lora_A.eval()
358 self.lora_B.eval()
359
360 def forward(self, x: torch.Tensor):
361 # previous_dtype = x.dtype

Callers 6

inference_hf.pyFile · 0.45
setupFunction · 0.45
evalMethod · 0.45
pred_llama2.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected