File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def prepare_model(self):
5252 params_file , str
5353 ), "invalid input for --llama_inputs"
5454 else :
55- logging .warning (
55+ logger .warning (
5656 "Skipping Llama test because of lack of input. To run use --llama_inputs <.pt> <.json>"
5757 )
5858 return None , None , None
@@ -61,6 +61,8 @@ def prepare_model(self):
6161 params_file
6262 ), "Invalid file paths"
6363
64+ logger .info ("Running test_llama.py" )
65+
6466 # TODO: Enable key value cache
6567 args = [
6668 "--disable_dynamic_shape" ,
@@ -112,9 +114,11 @@ def test_llama_tosa_MI(self):
112114 )
113115 .export ()
114116 .to_edge_transform_and_lower ()
115- .check_count ({"torch.ops.higher_order.executorch_call_delegate" : 14 })
117+ .check_count ({"torch.ops.higher_order.executorch_call_delegate" : 26 })
116118 .to_executorch ()
117119 .run_method_and_compare_outputs (
118- inputs = llama_inputs , atol = 1.8 , rtol = 0.01 # TODO: decrease tolerance
120+ inputs = llama_inputs ,
121+ atol = 4.3 ,
122+ rtol = 1.1 , # TODO: MLETORCH-825 decrease tolerance
119123 )
120124 )
You can’t perform that action at this time.
0 commit comments