-
Notifications
You must be signed in to change notification settings - Fork 979
Expand file tree
/
Copy pathdefault_config.yaml
More file actions
110 lines (89 loc) · 5.31 KB
/
default_config.yaml
File metadata and controls
110 lines (89 loc) · 5.31 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# OpenEvolve Default Configuration
# This file contains all available configuration options with sensible defaults
# You can use this as a template for your own configuration
# General settings
max_iterations: 1000 # Maximum number of evolution iterations
checkpoint_interval: 50 # Save checkpoints every N iterations
log_level: "INFO" # Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
log_dir: null # Custom directory for logs (default: output_dir/logs)
random_seed: null # Random seed for reproducibility (null = random)
# Evolution settings
diff_based_evolution: true # Use diff-based evolution (true) or full rewrites (false)
allow_full_rewrites: false # Allow occasional full rewrites even in diff-based mode
max_code_length: 10000 # Maximum allowed code length in characters
# LLM configuration
llm:
# Primary model (used most frequently)
primary_model: "gemini-2.0-flash-lite"
primary_model_weight: 0.8 # Sampling weight for primary model
# Secondary model (used for occasional high-quality generations)
secondary_model: "gemini-2.0-flash"
secondary_model_weight: 0.2 # Sampling weight for secondary model
# API configuration
api_base: "https://generativelanguage.googleapis.com/v1beta/openai/" # Base URL for API (change for non-OpenAI models)
api_key: null # API key (defaults to OPENAI_API_KEY env variable)
# Generation parameters
temperature: 0.7 # Temperature for generation (higher = more creative)
top_p: 0.95 # Top-p sampling parameter
max_tokens: 4096 # Maximum tokens to generate
# Request parameters
timeout: 60 # Timeout for API requests in seconds
retries: 3 # Number of retries for failed requests
retry_delay: 5 # Delay between retries in seconds
# Prompt configuration
prompt:
template_dir: null # Custom directory for prompt templates
system_message: "You are an expert coder helping to improve programs through evolution."
# Number of examples to include in the prompt
num_top_programs: 3 # Number of top-performing programs to include
num_diverse_programs: 2 # Number of diverse programs to include
# Template stochasticity
use_template_stochasticity: true # Use random variations in templates for diversity
template_variations: # Different phrasings for parts of the template
improvement_suggestion:
- "Here's how we could improve this code:"
- "I suggest the following improvements:"
- "We can enhance this code by:"
# Note: meta-prompting features are not yet implemented
# Database configuration
database:
# General settings
db_path: null # Path to persist database (null = in-memory only)
in_memory: true # Keep database in memory for faster access
# Evolutionary parameters
population_size: 1000 # Maximum number of programs to keep in memory
archive_size: 100 # Size of elite archive
num_islands: 5 # Number of islands for island model (separate populations)
# Island-based evolution parameters
# Islands provide diversity by maintaining separate populations that evolve independently.
# Migration periodically shares the best solutions between adjacent islands.
migration_interval: 50 # Migrate between islands every N generations
migration_rate: 0.1 # Fraction of top programs to migrate (0.1 = 10%)
# Selection parameters
elite_selection_ratio: 0.1 # Ratio of elite programs to select
exploration_ratio: 0.2 # Ratio of exploration vs exploitation
exploitation_ratio: 0.7 # Ratio of exploitation vs random selection
# Note: diversity_metric is fixed to "edit_distance" (feature_based not implemented)
# Feature map dimensions for MAP-Elites
feature_dimensions: # Dimensions for MAP-Elites feature map
- "score" # Performance score
- "complexity" # Code complexity (length)
feature_bins: 10 # Number of bins per dimension
# Evaluator configuration
evaluator:
# General settings
timeout: 300 # Maximum evaluation time in seconds
max_retries: 3 # Maximum number of retries for evaluation
# Note: resource limits (memory_limit_mb, cpu_limit) are not yet implemented
# Evaluation strategies
cascade_evaluation: true # Use cascade evaluation to filter bad solutions early
cascade_thresholds: # Thresholds for advancing to next evaluation stage
- 0.5 # First stage threshold
- 0.75 # Second stage threshold
- 0.9 # Third stage threshold
# Parallel evaluation
parallel_evaluations: 4 # Number of parallel evaluations
# Note: distributed evaluation is not yet implemented
# LLM-based feedback (experimental)
use_llm_feedback: false # Use LLM to evaluate code quality
llm_feedback_weight: 0.1 # Weight for LLM feedback in final score