Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/PaddlePaddle/PaddleNLP
/ eval
Method
eval
paddlenlp/peft/lora/lora_model.py:791–796 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
789
layer.train()
790
791
def
eval(self):
792
self.training = False
793
self.model.training = False
794
for
layer in self.model.sublayers():
795
layer.training = False
796
layer.eval()
797
798
def
save_to_aistudio(
799
self,
Callers
15
test_lora_model_constructor
Method · 0.95
test_lora_model_save_load
Method · 0.95
merge
Function · 0.45
__init__
Method · 0.45
create_predictor
Function · 0.45
prediction_step
Method · 0.45
ptq_loop
Method · 0.45
main
Function · 0.45
main
Function · 0.45
prediction_step
Method · 0.45
test_sequence_model
Method · 0.45
test_pipeline_model
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_lora_model_constructor
Method · 0.76
test_lora_model_save_load
Method · 0.76
test_sequence_model
Method · 0.36
test_pipeline_model
Method · 0.36
test_sequence_model
Method · 0.36
test_forward
Method · 0.36
setUpClass
Method · 0.36
test_save_load
Method · 0.36
test_determinism
Method · 0.36
test_attention_outputs
Method · 0.36
check_hidden_states_output
Method · 0.36
test_resize_position_vector_embeddings
Method · 0.36