codelion commited on
Commit
c1d7cbf
·
verified ·
1 Parent(s): bae9ed4

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -552,18 +552,19 @@ def create_config_file(model: str, work_dir: str):
552
  "api_base": "https://openrouter.ai/api/v1", # Use OpenRouter endpoint
553
  "temperature": 0.7,
554
  },
 
555
  "evolution": {
556
- "max_iterations": 10,
557
  "population_size": 10,
558
  "num_islands": 1,
559
  "elite_ratio": 0.1,
560
  "explore_ratio": 0.3,
561
  "exploit_ratio": 0.6,
562
- "parallel": False, # Disable parallel processing to avoid signal errors
563
  },
564
- "evaluation": {
565
  "timeout": None, # Disable timeout to avoid signal handling issues
566
  "cascade_evaluation": False, # Disable cascade to prevent signal errors
 
 
567
  }
568
  }
569
 
@@ -650,6 +651,8 @@ def optimize_prompt(initial_prompt: str, dataset_name: str, dataset_split: str,
650
 
651
  try:
652
  # Run evolution
 
 
653
  result = run_evolution(
654
  initial_program=initial_prompt_path,
655
  evaluator=evaluator_path,
 
552
  "api_base": "https://openrouter.ai/api/v1", # Use OpenRouter endpoint
553
  "temperature": 0.7,
554
  },
555
+ "max_iterations": 10,
556
  "evolution": {
 
557
  "population_size": 10,
558
  "num_islands": 1,
559
  "elite_ratio": 0.1,
560
  "explore_ratio": 0.3,
561
  "exploit_ratio": 0.6,
 
562
  },
563
+ "evaluator": {
564
  "timeout": None, # Disable timeout to avoid signal handling issues
565
  "cascade_evaluation": False, # Disable cascade to prevent signal errors
566
+ "parallel_evaluations": 1, # Single worker
567
+ "distributed": False, # No distributed processing
568
  }
569
  }
570
 
 
651
 
652
  try:
653
  # Run evolution
654
+ # Note: OpenEvolve may show "Initialized process parallel controller" warnings
655
+ # but they are harmless in this single-worker configuration
656
  result = run_evolution(
657
  initial_program=initial_prompt_path,
658
  evaluator=evaluator_path,