Skip to content

Commit ee697e4

Browse files
update readme, small changes
1 parent 0550ebf commit ee697e4

9 files changed

Lines changed: 1025 additions & 550 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ You can run codeevolve via the terminal as follows:
8686
```bash
8787
codeevolve --inpt_dir=INPT_DIR --cfg_path=CFG_PATH --out_dir=RESULTS_DIR --load_ckpt=LOAD_CKPT --terminal_logging
8888
```
89-
See `src/codeevolve/cli.py` for further details. Our [experiments repository](https://github.com/inter-co/science-codeevolve-experiments) multiple usage examples.
89+
The `scripts/run.sh` provides a bash script for running CodeEvolve using taskset in order to limit the CPU usage. See `src/codeevolve/cli.py` for further details. Our [experiments repository](https://github.com/inter-co/science-codeevolve-experiments) multiple usage examples.
9090

9191
### Customizing for Your Problem
9292

@@ -97,7 +97,7 @@ CodeEvolve is designed for algorithmic problems with quantifiable metrics. To ap
9797
3. Configure evolutionary parameters (population size, mutation rates, etc.)
9898
4. Choose your LLM ensemble composition
9999

100-
Comprehensive tutorials and example notebooks are coming soon.
100+
See `problems/problem_template` for a general template for running CodeEvolve on a python problem. Comprehensive tutorials and example notebooks are coming soon.
101101

102102
## Use Cases
103103

problems/problem_template/configs/config_insp.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

problems/problem_template/configs/config_mp.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

problems/problem_template/configs/config_mp_insp.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

problems/problem_template/configs/config_no_evolve.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

problems/problem_template/configs/config_no_mp_or_insp.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
SYS_MSG: |
2+
# PROMPT-BLOCK-START
3+
TODO
4+
# PROMPT-BLOCK-END
5+
6+
CODEBASE_PATH: 'src/'
7+
INIT_FILE_DATA: {filename: 'init_program.py', language: 'python'}
8+
EVAL_FILE_NAME: 'evaluate.py'
9+
EVAL_TIMEOUT: 60
10+
11+
MAX_MEM_BYTES: 1000000000
12+
MEM_CHECK_INTERVAL_S: 0.1
13+
14+
EVOLVE_CONFIG: {fitness_key: 'benchmark_ratio',
15+
num_epochs: 100,ckpt: 10,max_size: null,init_pop: 10,
16+
exploration_rate: 0.2,
17+
selection_policy: 'roulette', selection_kwargs: {roulette_by_rank: True},
18+
early_stopping_rounds: null,
19+
num_islands: 5, migration_topology: 'ring', migration_interval: 30, migration_rate: 0.1,
20+
meta_prompting: True, use_embedding: False, use_map_elites: True,
21+
num_inspirations: 3,
22+
max_chat_depth: null,
23+
mp_start_marker: "# PROMPT-BLOCK-START", mp_end_marker: "# PROMPT-BLOCK-END",
24+
evolve_start_marker: "# EVOLVE-BLOCK-START", evolve_end_marker: "# EVOLVE-BLOCK-END",
25+
use_scheduler: True, type: 'PlateauScheduler', scheduler_kwargs: {min_rate: 0.2, max_rate: 0.5, plateau_threshold: 5, increase_factor: 1.05, decrease_factor: 0.95}
26+
}
27+
28+
29+
EXPLORATION_ENSEMBLE: [{model_name: 'GOOGLE_GEMINI-2.5-FLASH', temp: 0.9, top_p: 0.95, retries: 3, weight: 1, verify_ssl: False}]
30+
31+
EXPLOITATION_ENSEMBLE: [{model_name: 'GOOGLE_GEMINI-2.5-FLASH', temp: 0.7, top_p: 0.95, retries: 3, weight: 0.60, verify_ssl: False},
32+
{model_name: 'GOOGLE_GEMINI-2.5-PRO', temp: 0.7, top_p: 0.95, retries: 3, weight: 0.40, verify_ssl: False}]
33+
34+
SAMPLER_AUX_LM : {model_name: 'GOOGLE_GEMINI-2.5-FLASH', temp: 0.7, top_p: 0.95, retries: 3, weight: 1, verify_ssl: False}
35+
36+
MAP_ELITES: {elite_map_type: 'grid',
37+
features: [
38+
{name: 'benchmark_ratio', min_val: 0, max_val: 1.2, num_bins: 100},
39+
{name: 'eval_time', min_val: 0, max_val: 180, num_bins: 20},
40+
]
41+
}
42+
43+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
SYS_MSG: |
2+
# PROMPT-BLOCK-START
3+
TODO
4+
# PROMPT-BLOCK-END
5+
6+
CODEBASE_PATH: 'src/'
7+
INIT_FILE_DATA: {filename: 'init_program.py', language: 'python'}
8+
EVAL_FILE_NAME: 'evaluate.py'
9+
EVAL_TIMEOUT: 60
10+
11+
MAX_MEM_BYTES: 1000000000
12+
MEM_CHECK_INTERVAL_S: 0.1
13+
14+
EVOLVE_CONFIG: {fitness_key: 'benchmark_ratio',
15+
num_epochs: 500,ckpt: 10,max_size: null,init_pop: 15,
16+
exploration_rate: 0.2,
17+
selection_policy: 'roulette', selection_kwargs: {roulette_by_rank: True},
18+
early_stopping_rounds: null,
19+
num_islands: 10, migration_topology: 'ring', migration_interval: 30, migration_rate: 0.1,
20+
meta_prompting: True, use_embedding: False, use_map_elites: True,
21+
num_inspirations: 3,
22+
max_chat_depth: 5,
23+
mp_start_marker: "# PROMPT-BLOCK-START", mp_end_marker: "# PROMPT-BLOCK-END",
24+
evolve_start_marker: "# EVOLVE-BLOCK-START", evolve_end_marker: "# EVOLVE-BLOCK-END",
25+
use_scheduler: True, type: 'PlateauScheduler', scheduler_kwargs: {min_rate: 0.2, max_rate: 0.5, plateau_threshold: 5, increase_factor: 1.05, decrease_factor: 0.95}
26+
}
27+
28+
EXPLORATION_ENSEMBLE: [{model_name: 'AWS_QWEN-QWEN3-CODER-30B-INSTRUCT', temp: 0.7, top_p: 0.8, retries: 3, weight: 1, verify_ssl: False}]
29+
30+
EXPLOITATION_ENSEMBLE: [{model_name: 'AWS_QWEN-QWEN3-CODER-30B-INSTRUCT', temp: 0.7, top_p: 0.8, retries: 3, weight: 1, verify_ssl: False}]
31+
32+
SAMPLER_AUX_LM : {model_name: 'AWS_QWEN-QWEN3-CODER-30B-INSTRUCT', temp: 0.7, top_p: 0.8, retries: 3, weight: 1, verify_ssl: False}
33+
34+
EMBEDDING: {model_name: 'AZURE_TEXT-EMBEDDING-3-SMALL', retries: 3, verify_ssl: False, dimensions: 128}
35+
36+
MAP_ELITES: {elite_map_type: 'grid',
37+
features: [
38+
{name: 'benchmark_ratio', min_val: 0, max_val: 1.2, num_bins: 100},
39+
{name: 'eval_time', min_val: 0, max_val: 90, num_bins: 20},
40+
]
41+
}

0 commit comments

Comments
 (0)