forked from algorithmicsuperintelligence/openevolve
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.yaml
More file actions
48 lines (43 loc) · 1.48 KB
/
config.yaml
File metadata and controls
48 lines (43 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Configuration for function minimization example
max_iterations: 50
checkpoint_interval: 5
# LLM configuration
llm:
# primary_model: "gemini-2.5-flash-lite"
# primary_model: "llama3.1-8b"
primary_model: "gpt-4.1-nano"
primary_model_weight: 0.8
# secondary_model: "gemini-2.5-flash"
# secondary_model: "llama-4-scout-17b-16e-instruct"
secondary_model_weight: 0.2
secondary_model: "gpt-4.1"
# api_base: "https://generativelanguage.googleapis.com/v1beta/openai/"
# api_base: "https://api.cerebras.ai/v1"
temperature: 0.7
max_tokens: 16000
timeout: 120
# Prompt configuration
prompt:
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."
num_top_programs: 3
num_diverse_programs: 2
evolution_trace:
enabled: true
format: "jsonl"
include_code: false
include_prompts: true
# Database configuration
database:
population_size: 50
archive_size: 20
num_islands: 1
elite_selection_ratio: 0.2
exploitation_ratio: 0.7
# Evaluator configuration
evaluator:
timeout: 60
cascade_thresholds: [1.3]
parallel_evaluations: 1
# Evolution settings
diff_based_evolution: true
max_code_length: 20000