Skip to content

Commit 0fc81e6

Browse files
authored
feat: add qwen3 lora adapter support in candle-binding (#549)
1 parent aab22ff commit 0fc81e6

29 files changed

+9210
-348
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Rust
3737
uses: dtolnay/rust-toolchain@stable
3838
with:
39-
toolchain: 1.85
39+
toolchain: 1.90
4040
components: rustfmt, clippy
4141

4242
- name: Install system dependencies

bench/data/test_data.json

Lines changed: 352 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,352 @@
1+
[
2+
{
3+
"text": "What is Ohm's Law in electrical engineering?",
4+
"true_label": "engineering",
5+
"true_label_id": 5
6+
},
7+
{
8+
"text": "In object-oriented programming, what does polymorphism mean?",
9+
"true_label": "computer science",
10+
"true_label_id": 3
11+
},
12+
{
13+
"text": "What is the modulus of elasticity (Young's modulus) used to measure?",
14+
"true_label": "engineering",
15+
"true_label_id": 5
16+
},
17+
{
18+
"text": "Which blood type is known as the universal donor?",
19+
"true_label": "health",
20+
"true_label_id": 6
21+
},
22+
{
23+
"text": "Which mineral is essential for bone health?",
24+
"true_label": "health",
25+
"true_label_id": 6
26+
},
27+
{
28+
"text": "Who wrote 'The Republic'?",
29+
"true_label": "philosophy",
30+
"true_label_id": 11
31+
},
32+
{
33+
"text": "In control systems, what does PID controller stand for?",
34+
"true_label": "engineering",
35+
"true_label_id": 5
36+
},
37+
{
38+
"text": "What is the bystander effect in social psychology?",
39+
"true_label": "psychology",
40+
"true_label_id": 13
41+
},
42+
{
43+
"text": "In a right triangle, what is the Pythagorean theorem?",
44+
"true_label": "math",
45+
"true_label_id": 9
46+
},
47+
{
48+
"text": "What does CPI stand for in economic indicators?",
49+
"true_label": "economics",
50+
"true_label_id": 4
51+
},
52+
{
53+
"text": "What does GDP measure in an economy?",
54+
"true_label": "economics",
55+
"true_label_id": 4
56+
},
57+
{
58+
"text": "In marketing, what are the four Ps of the marketing mix?",
59+
"true_label": "business",
60+
"true_label_id": 1
61+
},
62+
{
63+
"text": "What are the three laws of thermodynamics?",
64+
"true_label": "physics",
65+
"true_label_id": 12
66+
},
67+
{
68+
"text": "What are renewable energy sources?",
69+
"true_label": "other",
70+
"true_label_id": 10
71+
},
72+
{
73+
"text": "What was the primary cause of the American Civil War?",
74+
"true_label": "history",
75+
"true_label_id": 7
76+
},
77+
{
78+
"text": "What data structure uses LIFO (Last In First Out) principle?",
79+
"true_label": "computer science",
80+
"true_label_id": 3
81+
},
82+
{
83+
"text": "In networking, what layer of the OSI model handles routing?",
84+
"true_label": "computer science",
85+
"true_label_id": 3
86+
},
87+
{
88+
"text": "What is the slope-intercept form of a linear equation?",
89+
"true_label": "math",
90+
"true_label_id": 9
91+
},
92+
{
93+
"text": "What unit is used to measure force?",
94+
"true_label": "physics",
95+
"true_label_id": 12
96+
},
97+
{
98+
"text": "Who wrote the Declaration of Independence?",
99+
"true_label": "history",
100+
"true_label_id": 7
101+
},
102+
{
103+
"text": "What is the speed of light in vacuum?",
104+
"true_label": "physics",
105+
"true_label_id": 12
106+
},
107+
{
108+
"text": "What is the difference between fiscal and monetary policy?",
109+
"true_label": "economics",
110+
"true_label_id": 4
111+
},
112+
{
113+
"text": "What is the primary function of ribosomes in cells?",
114+
"true_label": "biology",
115+
"true_label_id": 0
116+
},
117+
{
118+
"text": "What is Newton's second law of motion?",
119+
"true_label": "physics",
120+
"true_label_id": 12
121+
},
122+
{
123+
"text": "What does 'pro bono' mean in legal practice?",
124+
"true_label": "law",
125+
"true_label_id": 8
126+
},
127+
{
128+
"text": "Which organelle is responsible for producing ATP in eukaryotic cells?",
129+
"true_label": "biology",
130+
"true_label_id": 0
131+
},
132+
{
133+
"text": "What is the pH of a neutral solution at 25\u00b0C?",
134+
"true_label": "chemistry",
135+
"true_label_id": 2
136+
},
137+
{
138+
"text": "What is the purpose of a compiler in programming?",
139+
"true_label": "computer science",
140+
"true_label_id": 3
141+
},
142+
{
143+
"text": "What was the name of the ship that brought the Pilgrims to America?",
144+
"true_label": "history",
145+
"true_label_id": 7
146+
},
147+
{
148+
"text": "What is the primary function of the cardiovascular system?",
149+
"true_label": "health",
150+
"true_label_id": 6
151+
},
152+
{
153+
"text": "What is the process called when a solid changes directly to a gas?",
154+
"true_label": "chemistry",
155+
"true_label_id": 2
156+
},
157+
{
158+
"text": "In economics, what is meant by 'elastic demand'?",
159+
"true_label": "economics",
160+
"true_label_id": 4
161+
},
162+
{
163+
"text": "In which year did World War II end?",
164+
"true_label": "history",
165+
"true_label_id": 7
166+
},
167+
{
168+
"text": "What is the difference between B2B and B2C business models?",
169+
"true_label": "business",
170+
"true_label_id": 1
171+
},
172+
{
173+
"text": "What does 'tabula rasa' mean in philosophy?",
174+
"true_label": "philosophy",
175+
"true_label_id": 11
176+
},
177+
{
178+
"text": "What is the derivative of x\u00b2 with respect to x?",
179+
"true_label": "math",
180+
"true_label_id": 9
181+
},
182+
{
183+
"text": "What is the primary goal of supply chain management?",
184+
"true_label": "business",
185+
"true_label_id": 1
186+
},
187+
{
188+
"text": "What is classical conditioning in psychology?",
189+
"true_label": "psychology",
190+
"true_label_id": 13
191+
},
192+
{
193+
"text": "What does E=mc\u00b2 represent?",
194+
"true_label": "physics",
195+
"true_label_id": 12
196+
},
197+
{
198+
"text": "What is the difference between civil and criminal law?",
199+
"true_label": "law",
200+
"true_label_id": 8
201+
},
202+
{
203+
"text": "What does the integral of a function represent?",
204+
"true_label": "math",
205+
"true_label_id": 9
206+
},
207+
{
208+
"text": "According to the law of demand, what happens to quantity demanded when price increases?",
209+
"true_label": "economics",
210+
"true_label_id": 4
211+
},
212+
{
213+
"text": "What is the value of \u03c0 (pi) to two decimal places?",
214+
"true_label": "math",
215+
"true_label_id": 9
216+
},
217+
{
218+
"text": "What is the value of e (Euler's number) to two decimal places?",
219+
"true_label": "math",
220+
"true_label_id": 9
221+
},
222+
{
223+
"text": "What is the role of DNA polymerase during DNA replication?",
224+
"true_label": "biology",
225+
"true_label_id": 0
226+
},
227+
{
228+
"text": "In genetics, what does the term 'phenotype' refer to?",
229+
"true_label": "biology",
230+
"true_label_id": 0
231+
},
232+
{
233+
"text": "What is the difference between TCP and UDP protocols?",
234+
"true_label": "computer science",
235+
"true_label_id": 3
236+
},
237+
{
238+
"text": "What is the purpose of the Miranda rights?",
239+
"true_label": "law",
240+
"true_label_id": 8
241+
},
242+
{
243+
"text": "Which cellular process involves the division of cytoplasm?",
244+
"true_label": "biology",
245+
"true_label_id": 0
246+
},
247+
{
248+
"text": "What does IQ stand for in psychology?",
249+
"true_label": "psychology",
250+
"true_label_id": 13
251+
},
252+
{
253+
"text": "Which financial statement shows a company's revenues and expenses?",
254+
"true_label": "business",
255+
"true_label_id": 1
256+
},
257+
{
258+
"text": "What is the acceleration due to gravity on Earth?",
259+
"true_label": "physics",
260+
"true_label_id": 12
261+
},
262+
{
263+
"text": "What is Avogadro's number used to represent?",
264+
"true_label": "chemistry",
265+
"true_label_id": 2
266+
},
267+
{
268+
"text": "What does 'habeas corpus' mean in legal terms?",
269+
"true_label": "law",
270+
"true_label_id": 8
271+
},
272+
{
273+
"text": "In mechanical engineering, what is the formula for torque?",
274+
"true_label": "engineering",
275+
"true_label_id": 5
276+
},
277+
{
278+
"text": "In a DNA molecule, which of the following base pairs is correct?",
279+
"true_label": "biology",
280+
"true_label_id": 0
281+
},
282+
{
283+
"text": "What is required for a contract to be legally binding?",
284+
"true_label": "law",
285+
"true_label_id": 8
286+
},
287+
{
288+
"text": "What is Maslow's hierarchy of needs?",
289+
"true_label": "psychology",
290+
"true_label_id": 13
291+
},
292+
{
293+
"text": "What is the worst-case time complexity of quicksort?",
294+
"true_label": "computer science",
295+
"true_label_id": 3
296+
},
297+
{
298+
"text": "What is the ship of Theseus paradox about?",
299+
"true_label": "philosophy",
300+
"true_label_id": 11
301+
},
302+
{
303+
"text": "What is the formula for kinetic energy?",
304+
"true_label": "physics",
305+
"true_label_id": 12
306+
},
307+
{
308+
"text": "What is the sum of angles in a triangle?",
309+
"true_label": "math",
310+
"true_label_id": 9
311+
},
312+
{
313+
"text": "Who proposed the philosophical concept of 'cogito ergo sum'?",
314+
"true_label": "philosophy",
315+
"true_label_id": 11
316+
},
317+
{
318+
"text": "What is the normal resting heart rate for adults?",
319+
"true_label": "health",
320+
"true_label_id": 6
321+
},
322+
{
323+
"text": "What does the term 'opportunity cost' refer to in economics?",
324+
"true_label": "economics",
325+
"true_label_id": 4
326+
},
327+
{
328+
"text": "Which element has the atomic number 6?",
329+
"true_label": "chemistry",
330+
"true_label_id": 2
331+
},
332+
{
333+
"text": "What does SWOT analysis stand for in strategic planning?",
334+
"true_label": "business",
335+
"true_label_id": 1
336+
},
337+
{
338+
"text": "What is sustainable development?",
339+
"true_label": "other",
340+
"true_label_id": 10
341+
},
342+
{
343+
"text": "What does CAD stand for in engineering design?",
344+
"true_label": "engineering",
345+
"true_label_id": 5
346+
},
347+
{
348+
"text": "Which type of molecule catalyzes biochemical reactions in living organisms?",
349+
"true_label": "biology",
350+
"true_label_id": 0
351+
}
352+
]

0 commit comments

Comments
 (0)