-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
44 lines (37 loc) · 803 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from solve import Solver
from sacred import Experiment
ex = Experiment("LLM")
@ex.config
def config():
model_name = 'gpt-3.5-turbo'
config = 'zero-shot'
ctx = False
@ex.automain
def run(
model_name,
seed,
shot_type,
prompt_r,
sys,
ctx,
max_tokens,
self_consistency,
self_reflection
):
if ctx:
data_path = "data/w_ctx.json"
else:
data_path = "data/wo_ctx.json"
solver = Solver(
data_path=data_path,
model_name=model_name,
seed=seed,
shot_type=shot_type,
prompt_r=prompt_r,
sys=sys,
ctx=ctx,
max_tokens=max_tokens,
self_consistency=self_consistency,
self_reflection=self_reflection,
)
solver.run()