Skip to content

Commit 74539a0

Browse files
disable the adaptive optimization until we have the effort param
1 parent 0d4b854 commit 74539a0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

codeflash/code_utils/config_consts.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
# Adaptive optimization
3939
# TODO (ali): make this configurable with effort arg once the PR is merged
4040
ADAPTIVE_OPTIMIZATION_THRESHOLD = 2 # Max adaptive optimizations per single candidate tree (for example : optimize -> refine -> adaptive -> another adaptive).
41-
MAX_ADAPTIVE_OPTIMIZATIONS_PER_TRACE = 4 # maximum number of adaptive optimizations we will do for each function (this can be 2 adaptive optimizations for 2 candidates for example)
41+
# MAX_ADAPTIVE_OPTIMIZATIONS_PER_TRACE = 4 # maximum number of adaptive optimizations we will do for each function (this can be 2 adaptive optimizations for 2 candidates for example)
42+
MAX_ADAPTIVE_OPTIMIZATIONS_PER_TRACE = (
43+
0 # disable adaptive optimizations until we have this value controlled by the effort arg
44+
)
4245

4346
MAX_N_CANDIDATES = 5
4447
MAX_N_CANDIDATES_LP = 6

0 commit comments

Comments
 (0)