Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions openevolve/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ async def main_async() -> int:
best_program = await openevolve.run(
iterations=args.iterations,
target_score=args.target_score,
checkpoint_path=args.checkpoint,
)

# Get the checkpoint path
Expand Down
10 changes: 7 additions & 3 deletions openevolve/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ class LLMConfig(LLMModelConfig):
retry_delay: int = 5

# n-model configuration for evolution LLM ensemble
models: List[LLMModelConfig] = field(default_factory=lambda: [LLMModelConfig()])
models: List[LLMModelConfig] = field(default_factory=lambda: [
LLMModelConfig(name="gpt-4o-mini", weight=0.8),
LLMModelConfig(name="gpt-4o", weight=0.2)
])

# n-model configuration for evaluator LLM ensemble
evaluator_models: List[LLMModelConfig] = field(default_factory=lambda: [])
Expand Down Expand Up @@ -195,7 +198,7 @@ class EvaluatorConfig:
cascade_thresholds: List[float] = field(default_factory=lambda: [0.5, 0.75, 0.9])

# Parallel evaluation
parallel_evaluations: int = 4
parallel_evaluations: int = 1
distributed: bool = False

# LLM-based feedback
Expand All @@ -217,6 +220,7 @@ class Config:
log_level: str = "INFO"
log_dir: Optional[str] = None
random_seed: Optional[int] = 42
language: str = None

# Component configurations
llm: LLMConfig = field(default_factory=LLMConfig)
Expand Down Expand Up @@ -361,4 +365,4 @@ def load_config(config_path: Optional[Union[str, Path]] = None) -> Config:
# Make the system message available to the individual models, in case it is not provided from the prompt sampler
config.llm.update_model_params({"system_message": config.prompt.system_message})

return config
return config
Loading