Skip to content

Commit 6237ce4

Browse files
committed
Update test results with cepo
1 parent 63b25fb commit 6237ce4

File tree

3 files changed

+44
-629
lines changed

3 files changed

+44
-629
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"gradio",
3737
# Constrain spacy version to avoid blis build issues on ARM64
3838
"spacy<3.8.0",
39+
"cerebras_cloud_sdk",
3940
],
4041
entry_points={
4142
'console_scripts': [

test.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@
77
import logging
88
from openai import OpenAI
99

10-
from litellm_wrapper import LiteLLMWrapper
10+
from optillm.litellm_wrapper import LiteLLMWrapper
1111
from optillm.mcts import chat_with_mcts
1212
from optillm.bon import best_of_n_sampling
1313
from optillm.moa import mixture_of_agents
1414
from optillm.rto import round_trip_optimization
1515
from optillm.self_consistency import advanced_self_consistency_approach
1616
from optillm.pvg import inference_time_pv_game
17-
from optillm.z3_solver import Z3SolverSystem
17+
from optillm.z3_solver import Z3SymPySolverSystem
1818
from optillm.rstar import RStar
1919
from optillm.cot_reflection import cot_reflection
2020
from optillm.plansearch import plansearch
2121
from optillm.leap import leap
2222
from optillm.reread import re2_approach
23+
from optillm.cepo.cepo import cepo, CepoConfig, init_cepo_config
2324

2425
# Setup logging
2526
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
@@ -44,12 +45,13 @@ def __init__(self):
4445
'rto': round_trip_optimization,
4546
'self_consistency': advanced_self_consistency_approach,
4647
'pvg': inference_time_pv_game,
47-
'z3': lambda s, q, c, m: Z3SolverSystem(s, c, m).process_query(q),
48+
'z3': lambda s, q, c, m: Z3SymPySolverSystem(s, c, m).process_query(q),
4849
'rstar': lambda s, q, c, m: RStar(s, c, m).solve(q),
4950
'cot_reflection': cot_reflection,
5051
'plansearch': plansearch,
5152
'leap': leap,
5253
're2': re2_approach,
54+
'cepo': lambda s, q, c, m: cepo(s,q,c,m,init_cepo_config({'cepo_config_file': './optillm/cepo/configs/cepo_config.yaml'})),
5355
}
5456

5557
def load_test_cases(file_path: str) -> List[Dict]:

0 commit comments

Comments
 (0)