MCPcopy
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

mergeFunction · 0.45
__init__Method · 0.45
create_predictorFunction · 0.45
prediction_stepMethod · 0.45
ptq_loopMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
prediction_stepMethod · 0.45
test_sequence_modelMethod · 0.45
test_pipeline_modelMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_sequence_modelMethod · 0.36
test_pipeline_modelMethod · 0.36
test_sequence_modelMethod · 0.36
test_forwardMethod · 0.36
setUpClassMethod · 0.36
test_save_loadMethod · 0.36
test_determinismMethod · 0.36