@@ -610,7 +610,9 @@ def optimize_function(self) -> Result[BestOptimization, str]:
610610 ):
611611 console .rule ()
612612 new_code_context = code_context
613- if self .is_numerical_code : # if the code is numerical in nature (uses numpy/tensorflow/math/pytorch/jax)
613+ if (
614+ self .is_numerical_code and not self .args .no_jit_opts
615+ ): # if the code is numerical in nature (uses numpy/tensorflow/math/pytorch/jax)
614616 jit_compiled_opt_candidate = self .aiservice_client .get_jit_rewritten_code (
615617 code_context .read_writable_code .markdown , self .function_trace_id
616618 )
@@ -639,7 +641,7 @@ def optimize_function(self) -> Result[BestOptimization, str]:
639641 read_writable_code = code_context .read_writable_code ,
640642 read_only_context_code = code_context .read_only_context_code ,
641643 run_experiment = should_run_experiment ,
642- is_numerical_code = self .is_numerical_code ,
644+ is_numerical_code = self .is_numerical_code and not self . args . no_jit_opts ,
643645 )
644646
645647 concurrent .futures .wait ([future_tests , future_optimizations ])
@@ -1158,7 +1160,7 @@ def determine_best_candidate(
11581160 )
11591161 if self .experiment_id
11601162 else None ,
1161- is_numerical_code = self .is_numerical_code ,
1163+ is_numerical_code = self .is_numerical_code and not self . args . no_jit_opts ,
11621164 )
11631165
11641166 processor = CandidateProcessor (
0 commit comments