Skip to content

Commit 43e806c

Browse files
committed
fixes
1 parent 9cf5ab0 commit 43e806c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

examples/algotune/run_benchmark.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,12 @@ def run_openevolve_task(
132132
evaluator = task_dir / "evaluator.py"
133133
config = Path(custom_config) if custom_config else (task_dir / "config.yaml")
134134

135+
# Get the project root (parent of examples/algotune)
136+
project_root = Path(__file__).parent.parent.parent
137+
openevolve_script = project_root / "openevolve-run.py"
138+
135139
cmd = [
136-
sys.executable, "openevolve-run.py",
140+
sys.executable, str(openevolve_script),
137141
str(initial_program),
138142
str(evaluator),
139143
"--config", str(config),
@@ -147,7 +151,7 @@ def run_openevolve_task(
147151
# Run OpenEvolve
148152
result = subprocess.run(
149153
cmd,
150-
cwd=Path.cwd(), # Run from project root
154+
cwd=task_dir, # Run from task directory
151155
capture_output=True,
152156
text=True,
153157
timeout=timeout

examples/algotune/task_adapter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,9 +1031,9 @@ def replace_latex_command(match):
10311031
# Prompt Configuration - Optimal settings
10321032
prompt:
10331033
system_message: "{system_prompt}You are an expert programmer specializing in {category} algorithms. Your task is to improve the {task_name} algorithm implementation with baseline comparison.\n\nThe problem description is:\n{clean_description}\n\nFocus on improving the solve method to correctly handle the input format and produce valid solutions efficiently. Your solution will be compared against the reference AlgoTune baseline implementation to measure speedup and correctness."
1034-
num_top_programs: 3 # Best balance
1035-
num_diverse_programs: 2 # Best balance
1036-
include_artifacts: true # +20.7% improvement
1034+
num_top_programs: 3 # Best balance
1035+
num_diverse_programs: 2 # Best balance
1036+
include_artifacts: true # +20.7% improvement
10371037
10381038
# Database Configuration
10391039
database:

0 commit comments

Comments
 (0)