-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
157 lines (101 loc) · 5.97 KB
/
Makefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
RUN = poetry run
test: doctest pytest
pytest:
poetry run pytest tests
DOCTEST_DIR = c3p
doctest:
find $(DOCTEST_DIR) -not -path "c3p/programs/*.py" -type f \( -name "*.rst" -o -name "*.md" -o -name "*.py" \) -print0 | xargs -0 $(RUN) python -m doctest --option ELLIPSIS --option NORMALIZE_WHITESPACE
%-doctest: %
$(RUN) python -m doctest --option ELLIPSIS --option NORMALIZE_WHITESPACE $<
# Experiments
DATASET = results/2025/benchmark/dataset.json
VERBOSE = 1
EX_CORE = claude-3-sonnet-undef o1-undef claude-3-sonnet-force gpt-4o-undef gpt-4o-hi gemini-2.0-flash-exp-undef o3-mini-undef o3-mini-hi DeepSeek-R1-undef ensemble-9
LEARN = $(RUN) c3p-learn --verbose $(VERBOSE)
2025-llama-405b:
$(LEARN) -m lbl/llama-3-405b --dataset $(DATASET) -w results/2025 -x -
2025-llama:
$(LEARN) -m lbl/llama --dataset $(DATASET) -w results/2025 -x -
2025-claude-sonnet:
$(RUN) c3p-learn --verbose $(VERBOSE) -m claude-3-sonnet --dataset $(DATASET) -w results/2025 -x -
2025-claude-sonnet-use-the-force:
$(LEARN) -e force -m claude-3-sonnet --use-the-force --dataset $(DATASET) -w results/2025 -x -
2025-gpt-4o:
$(LEARN) -m gpt-4o --dataset $(DATASET) -w results/2025 -x -
2025-o3-mini:
$(LEARN) -m o3-mini --dataset $(DATASET) -w results/2025 -x -
2025-gemini2-flash:
$(LEARN) -m gemini-2.0-flash-exp --dataset $(DATASET) -w results/2025 -x -
2025-deepseek-coder:
$(LEARN) -m deepseek-coder --randomize-order --dataset $(DATASET) -w results/2025 -x -
2025-deepseek-coder-use-the-force:
$(LEARN) -e force -m deepseek-coder --use-the-force --dataset $(DATASET) -w results/2025 -x -
2025-cborg-deepthought:
$(LEARN) -m cborg-deepthought --dataset $(DATASET) -w results/2025 -x -
2025-o1:
$(LEARN) -m o1 --dataset $(DATASET) -w results/2025 -x -
2025-gpt-4o-hi:
$(LEARN) -e hi -m gpt-4o -f 0.9 -a 6 --dataset $(DATASET) -w results/2025 -x -
2025-o3-mini-hi:
$(LEARN) -e hi -m o3-mini -f 0.9 -a 6 --dataset $(DATASET) -w results/2025 -x -
2025-deepseek-hi:
$(LEARN) -e hi -m deepseek-coder -f 0.9 -a 6 --dataset $(DATASET) -w results/2025 -x -X "carbamate ester" -
2025-deepseek-reasoner:
$(LEARN) -m deepseek-reasoner --dataset $(DATASET) -w results/2025 -x -X "carbamate ester" -X "peptide antibiotic" -X "triglyceride" -
2025-together-r1:
$(LEARN) -m deepseek-ai/DeepSeek-R1 --dataset $(DATASET) -w results/2025 -x -
2025-deepseek-reasoner-use-the-force:
$(LEARN) -e force -m deepseek-reasoner --use-the-force --dataset $(DATASET) -w results/2025 -x -X "carbamate ester" -
2025-gpt-4o-nodefs:
$(RUN) c3p-learn -e nodefs -m gpt-4o --exclude-definitions --dataset $(DATASET) -w results/2025 -x -
2025-r1-distill:
$(LEARN) -m groq/deepseek-r1-distill-llama-70b --dataset $(DATASET) -w results/2025 -x -
# Create ensemble model
create-ensemble:
$(RUN) c3p-combine --verbose 2 results/2025/* -o results/2025/ensemble-9 -m 9
create-ensemble-6:
$(RUN) c3p-combine --verbose 2 results/2025/* -o results/2025/ensemble-6 -m 6
create-ensemble-7:
$(RUN) c3p-combine --verbose 2 results/2025/* -o results/2025/ensemble-7 -m 7
create-ensemble-3:
$(RUN) c3p-combine --verbose 2 results/2025/* -o results/2025/ensemble-3 -m 3
create-ensemble-4:
$(RUN) c3p-combine --verbose 2 results/2025/* -o results/2025/ensemble-4 -m 4
eval:
$(RUN) c3p-validate --verbose 1 -w results/2025/ensembl-5/cache -d $(DATASET)
all-validate: $(patsubst %, validate-%, $(EX_CORE))
validate-%:
$(RUN) c3p-validate --verbose 1 -w results/2025/$*/cache -d $(DATASET)
summarize-%:
$(RUN) c3p-summarize --verbose 1 -w results/2025/$*/eval -o results/2025/$*/summary
EX_ORIGINAL = claude-3-sonnet-undef gpt-4o-undef o1-undef gpt-4o-nodefs gpt-4o-hi ensembl-5 deepseek-coder-undef
EX_COMPLETED = $(EX_ORIGINAL)
PARTIAL = gpt-4o-hi deepseek-coder-undef deepseek-reasoner-undef deepseek-reasoner-force deepseek-chat-hi ensembl-7
compare:
$(RUN) c3p-compare -o results/2025/comparison $(patsubst %,results/2025/%, $(EX_CORE)) results/2025/smartifier
compare-all:
$(RUN) c3p-compare -x -o results/2025/comparison $(patsubst %,results/2025/%, $(EX_COMPLETED) $(PARTIAL) chebifier)
compare-chebifier:
$(RUN) c3p-compare -x -o results/2025/comparison-chebifier $(patsubst %,results/2025/%, ensemble-9 chebifier)
compare-all-chebifier:
$(RUN) c3p-compare -x -o results/2025/comparison-all-chebifier $(patsubst %,results/2025/%, $(EX_CORE) chebifier)
compare-llama:
$(RUN) c3p-compare -x -o results/2025/comparison-partial results/2025/claude-3-sonnet-undef results/2025/gpt-4o-undef results/2025/o1-undef results/2025/gpt-4o-nodefs results/2025/gpt-4o-hi results/2025/ensembl-5 results/2025/deepseek-coder-undef results/2025/llama-undef
compare-test:
$(RUN) c3p-compare -x -o results/2025/comparison-test results/2025/deepseek-reasoner-undef results/2025/deepseek-reasoner-force
compare-main:
$(RUN) c3p-compare -x -o results/2025/comparison-main results/2025/ensemble-9 results/2025/chebifier results/2025/smartifier
compare-smartifier:
$(RUN) c3p-compare -x -o results/2025/comparison-smartifier results/2025/ensemble-9 results/2025/smartifier
compare-reasoners:
$(RUN) c3p-compare -x -o results/2025/comparison-reasoners results/2025/o1-undef results/2025/o3-mini-undef results/2025/claude-3-sonnet-undef results/2025/deepseek-reasoner-undef
compare-reasoners2:
$(RUN) c3p-compare -x -o results/2025/comparison-reasoners2 results/2025/o1-undef results/2025/o3-mini-undef results/2025/DeepSeek-R1-undef
compare-reasoners3:
$(RUN) c3p-compare -x -o results/2025/comparison-reasoners3 results/2025/o1-undef results/2025/o3-mini-undef results/2025/DeepSeek-R1-undef results/2025/deepseek-reasoner-undef
compare-force:
$(RUN) c3p-compare -x -o results/2025/comparison-force results/2025/claude-3-sonnet-undef results/2025/claude-3-sonnet-force
compare-reasoner-force:
$(RUN) c3p-compare -x -o results/2025/comparison-reasoner-force results/2025/deepseek-reasoner-undef results/2025/deepseek-reasoner-force
compare-deepseek-hi:
$(RUN) c3p-compare -x -o results/2025/comparison-reasoner-hi results/2025/deepseek-coder-undef results/2025/deepseek-coder-hi