Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
speculative_sample.py
File · 0.45
inference_hf.py
File · 0.45
setup
Function · 0.45
eval
Method · 0.45
pred_llama2.py
File · 0.45
openai_api_server.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected