Skip to content

Commit 08bc9b2

Browse files
authored
Merge pull request algorithmicsuperintelligence#228 from codelion/fix--func-min-example
Fix func min example
2 parents b0a595e + 02912a9 commit 08bc9b2

File tree

6 files changed

+289
-128
lines changed

6 files changed

+289
-128
lines changed
Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
# Configuration for function minimization example
2-
max_iterations: 100
3-
checkpoint_interval: 10
4-
log_level: "INFO"
2+
max_iterations: 50
3+
checkpoint_interval: 5
54

65
# LLM configuration
76
llm:
8-
# primary_model: "gemini-2.0-flash-lite"
9-
primary_model: "llama3.1-8b"
7+
primary_model: "gemini-2.5-flash-lite"
8+
# primary_model: "llama3.1-8b"
109
primary_model_weight: 0.8
11-
# secondary_model: "gemini-2.0-flash"
12-
secondary_model: "llama-4-scout-17b-16e-instruct"
10+
secondary_model: "gemini-2.5-flash"
11+
# secondary_model: "llama-4-scout-17b-16e-instruct"
1312
secondary_model_weight: 0.2
14-
# api_base: "https://generativelanguage.googleapis.com/v1beta/openai/"
15-
api_base: "https://api.cerebras.ai/v1"
13+
api_base: "https://generativelanguage.googleapis.com/v1beta/openai/"
14+
# api_base: "https://api.cerebras.ai/v1"
1615
temperature: 0.7
17-
top_p: 0.95
18-
max_tokens: 4096
16+
max_tokens: 16000
17+
timeout: 120
1918

2019
# Prompt configuration
2120
prompt:
2221
system_message: "You are an expert programmer specializing in optimization algorithms. Your task is to improve a function minimization algorithm to find the global minimum of a complex function with many local minima. The function is f(x, y) = sin(x) * cos(y) + sin(x*y) + (x^2 + y^2)/20. Focus on improving the search_algorithm function to reliably find the global minimum, escaping local minima that might trap simple algorithms."
23-
num_top_programs: 3
24-
use_template_stochasticity: true
2522

2623
# Database configuration
2724
database:
@@ -34,11 +31,9 @@ database:
3431
# Evaluator configuration
3532
evaluator:
3633
timeout: 60
37-
cascade_evaluation: true
38-
cascade_thresholds: [0.5, 0.75]
39-
parallel_evaluations: 4
40-
use_llm_feedback: false
34+
cascade_thresholds: [1.4]
35+
parallel_evaluations: 3
4136

4237
# Evolution settings
4338
diff_based_evolution: true
44-
allow_full_rewrites: false
39+
max_code_length: 20000

0 commit comments

Comments
 (0)