nvidia-livecodebench 25.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. core_evals/livecodebench/__init__.py +1 -0
  2. core_evals/livecodebench/framework.yml +233 -0
  3. core_evals/livecodebench/framework_entrypoint.py +28 -0
  4. core_evals/livecodebench/output.py +51 -0
  5. livecodebench/__init__.py +0 -0
  6. livecodebench/benchmarks/__init__.py +31 -0
  7. livecodebench/benchmarks/code_execution.py +85 -0
  8. livecodebench/benchmarks/code_generation.py +160 -0
  9. livecodebench/benchmarks/test_output_prediction.py +90 -0
  10. livecodebench/benchmarks/utils.py +50 -0
  11. livecodebench/evaluation/__init__.py +24 -0
  12. livecodebench/evaluation/compute_code_execution_metrics.py +73 -0
  13. livecodebench/evaluation/compute_code_generation_metrics.py +278 -0
  14. livecodebench/evaluation/compute_scores.py +172 -0
  15. livecodebench/evaluation/compute_test_output_prediction_metrics.py +125 -0
  16. livecodebench/evaluation/metric.py +28 -0
  17. livecodebench/evaluation/old_results_check.py +91 -0
  18. livecodebench/evaluation/pass_k_utils.py +84 -0
  19. livecodebench/evaluation/testing_util.py +574 -0
  20. livecodebench/evaluation/utils_execute.py +285 -0
  21. livecodebench/lm_styles.py +581 -0
  22. livecodebench/prompts/__init__.py +22 -0
  23. livecodebench/prompts/code_execution.py +201 -0
  24. livecodebench/prompts/code_generation.py +372 -0
  25. livecodebench/prompts/few_shot_examples/generation/func.json +12 -0
  26. livecodebench/prompts/few_shot_examples/generation/stdin.json +10 -0
  27. livecodebench/prompts/self_repair.py +370 -0
  28. livecodebench/prompts/test_output_prediction.py +327 -0
  29. livecodebench/runner/__init__.py +0 -0
  30. livecodebench/runner/base_runner.py +188 -0
  31. livecodebench/runner/claude3_runner.py +70 -0
  32. livecodebench/runner/claude_runner.py +69 -0
  33. livecodebench/runner/cohere_runner.py +71 -0
  34. livecodebench/runner/custom_evaluator.py +132 -0
  35. livecodebench/runner/deepseek_runner.py +87 -0
  36. livecodebench/runner/gemini_runner.py +111 -0
  37. livecodebench/runner/generic_oai_server_runner.py +104 -0
  38. livecodebench/runner/main.py +255 -0
  39. livecodebench/runner/mistral_runner.py +71 -0
  40. livecodebench/runner/oai_runner.py +93 -0
  41. livecodebench/runner/parser.py +174 -0
  42. livecodebench/runner/runner_utils.py +62 -0
  43. livecodebench/runner/scenario_router.py +239 -0
  44. livecodebench/runner/vllm_runner.py +82 -0
  45. livecodebench/utils/__init__.py +0 -0
  46. livecodebench/utils/extraction_utils.py +82 -0
  47. livecodebench/utils/multiprocess.py +250 -0
  48. livecodebench/utils/path_utils.py +58 -0
  49. livecodebench/utils/scenarios.py +26 -0
  50. livecodebench/utils/seed_generator.py +44 -0
  51. nvidia_livecodebench-25.8.dist-info/METADATA +518 -0
  52. nvidia_livecodebench-25.8.dist-info/RECORD +55 -0
  53. nvidia_livecodebench-25.8.dist-info/WHEEL +4 -0
  54. nvidia_livecodebench-25.8.dist-info/entry_points.txt +4 -0
  55. nvidia_livecodebench-25.8.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,581 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ # Original Copyright 2025 LiveCodeBench
17
+ # For the original license and copyright information, see the LICENSE file in this repository.
18
+
19
+ from dataclasses import dataclass
20
+ from datetime import datetime
21
+ from enum import Enum
22
+
23
+
24
+ class LMStyle(Enum):
25
+ OpenAIChat = "OpenAIChat"
26
+ GenericOAIServer = "GenericOAIServer"
27
+ OpenAIReasonPreview = "OpenAIReasonPreview"
28
+ OpenAIReason = "OpenAIReason"
29
+
30
+ Claude = "Claude" # Claude 1 and Claude 2
31
+ Claude3 = "Claude3"
32
+ Gemini = "Gemini"
33
+ GeminiThinking = "GeminiThinking"
34
+
35
+ MistralWeb = "MistralWeb"
36
+ CohereCommand = "CohereCommand"
37
+ DataBricks = "DataBricks"
38
+ DeepSeekAPI = "DeepSeekAPI"
39
+
40
+ GenericBase = "GenericBase"
41
+
42
+ DeepSeekCodeInstruct = "DeepSeekCodeInstruct"
43
+ CodeLLaMaInstruct = "CodeLLaMaInstruct"
44
+ StarCoderInstruct = "StarCoderInstruct"
45
+ CodeQwenInstruct = "CodeQwenInstruct"
46
+ QwQ = "QwQ"
47
+
48
+ LLaMa3 = "LLaMa3"
49
+
50
+
51
+ @dataclass
52
+ class LanguageModel:
53
+ model_name: str
54
+ model_repr: str
55
+ model_style: LMStyle
56
+ release_date: datetime | None # XXX Should we use timezone.utc?
57
+ link: str | None = None
58
+
59
+ def __hash__(self) -> int:
60
+ return hash(self.model_name)
61
+
62
+ def to_dict(self) -> dict:
63
+ return {
64
+ "model_name": self.model_name,
65
+ "model_repr": self.model_repr,
66
+ "model_style": self.model_style.value,
67
+ "release_date": int(self.release_date.timestamp() * 1000),
68
+ "link": self.link,
69
+ }
70
+
71
+
72
+ LanguageModelList: list[LanguageModel] = [
73
+ ## LLama3 Base (8B and 70B)
74
+ LanguageModel(
75
+ "meta-llama/Meta-Llama-3-70B",
76
+ "LLama3-70b-Base",
77
+ LMStyle.GenericBase,
78
+ datetime(2023, 1, 1),
79
+ link="https://huggingface.co/meta-llama/Meta-Llama-3-70B",
80
+ ),
81
+ LanguageModel(
82
+ "meta-llama/Meta-Llama-3-8B",
83
+ "LLama3-8b-Base",
84
+ LMStyle.GenericBase,
85
+ datetime(2023, 1, 1),
86
+ link="https://huggingface.co/meta-llama/Meta-Llama-3-8B",
87
+ ),
88
+ ## LLama3 Instruct (8B and 70B)
89
+ LanguageModel(
90
+ "meta-llama/Meta-Llama-3-8B-Instruct",
91
+ "LLama3-8b-Ins",
92
+ LMStyle.LLaMa3,
93
+ datetime(2023, 1, 1),
94
+ link="https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct",
95
+ ),
96
+ LanguageModel(
97
+ "meta-llama/Meta-Llama-3-70B-Instruct",
98
+ "LLama3-70b-Ins",
99
+ LMStyle.LLaMa3,
100
+ datetime(2023, 1, 1),
101
+ link="https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct",
102
+ ),
103
+ ## LLama3.1 Base (8B, 70B, 405B)
104
+ LanguageModel(
105
+ "meta-llama/Meta-Llama-3.1-8B",
106
+ "LLama3.1-8b-Base",
107
+ LMStyle.GenericBase,
108
+ datetime(2023, 1, 1),
109
+ link="https://huggingface.co/meta-llama/Meta-Llama-3.1-8B",
110
+ ),
111
+ LanguageModel(
112
+ "meta-llama/Meta-Llama-3.1-70B",
113
+ "LLama3.1-70b-Base",
114
+ LMStyle.GenericBase,
115
+ datetime(2023, 1, 1),
116
+ link="https://huggingface.co/meta-llama/Meta-Llama-3.1-70B",
117
+ ),
118
+ LanguageModel(
119
+ "meta-llama/Meta-Llama-3.1-405B-FP8",
120
+ "LLama3.1-405b-Base-FP8",
121
+ LMStyle.GenericBase,
122
+ datetime(2023, 1, 1),
123
+ link="https://huggingface.co/meta-llama/Meta-Llama-3.1-405B-FP8",
124
+ ),
125
+ ## LLama3.1 Instruct (8B, 70B, 405B)
126
+ LanguageModel(
127
+ "meta-llama/Meta-Llama-3.1-8B-Instruct",
128
+ "LLama3.1-8b-Ins",
129
+ LMStyle.LLaMa3,
130
+ datetime(2023, 1, 1),
131
+ link="https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct",
132
+ ),
133
+ LanguageModel(
134
+ "meta-llama/Meta-Llama-3.1-70B-Instruct",
135
+ "LLama3.1-70b-Ins",
136
+ LMStyle.LLaMa3,
137
+ datetime(2023, 1, 1),
138
+ link="https://huggingface.co/meta-llama/Meta-Llama-3.1-70B-Instruct",
139
+ ),
140
+ LanguageModel(
141
+ "meta-llama/Meta-Llama-3.1-405B-Instruct-FP8",
142
+ "LLama3.1-405b-Ins-FP8",
143
+ LMStyle.LLaMa3,
144
+ datetime(2023, 1, 1),
145
+ link="https://huggingface.co/meta-llama/Meta-Llama-3.1-405B-Instruct-FP8",
146
+ ),
147
+ ## LLama3.3 Instruct (8B, 70B)
148
+ LanguageModel(
149
+ "meta-llama/Llama-3.3-70B-Instruct",
150
+ "LLama3.3-70b-Ins",
151
+ LMStyle.LLaMa3,
152
+ datetime(2023, 1, 1),
153
+ link="https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct",
154
+ ),
155
+ LanguageModel(
156
+ "meta-llama/Llama-3.3-8B-Instruct",
157
+ "LLama3.3-8b-Ins",
158
+ LMStyle.LLaMa3,
159
+ datetime(2023, 1, 1),
160
+ link="https://huggingface.co/meta-llama/Llama-3.3-8B-Instruct",
161
+ ),
162
+ ## Deepseek-Coder Base (33B, 6.7B, 1.3B)
163
+ LanguageModel(
164
+ "deepseek-ai/deepseek-coder-33b-base",
165
+ "DSCoder-33b-Base",
166
+ LMStyle.GenericBase,
167
+ datetime(2023, 1, 1),
168
+ link="https://huggingface.co/deepseek-ai/deepseek-coder-33b-base",
169
+ ),
170
+ LanguageModel(
171
+ "deepseek-ai/deepseek-coder-6.7b-base",
172
+ "DSCoder-6.7b-Base",
173
+ LMStyle.GenericBase,
174
+ datetime(2023, 1, 1),
175
+ link="https://huggingface.co/deepseek-ai/deepseek-coder-6.7b-base",
176
+ ),
177
+ LanguageModel(
178
+ "deepseek-ai/deepseek-coder-1.3b-base",
179
+ "DSCoder-1.3b-Base",
180
+ LMStyle.GenericBase,
181
+ datetime(2023, 1, 1),
182
+ link="https://huggingface.co/deepseek-ai/deepseek-coder-1.3b-base",
183
+ ),
184
+ ## Deepseek-Coder Instruct (33B, 6.7B, 1.3B)
185
+ LanguageModel(
186
+ "deepseek-ai/deepseek-coder-33b-instruct",
187
+ "DSCoder-33b-Ins",
188
+ LMStyle.DeepSeekCodeInstruct,
189
+ datetime(2023, 9, 1),
190
+ link="https://huggingface.co/deepseek-ai/deepseek-coder-33b-instruct",
191
+ ),
192
+ LanguageModel(
193
+ "deepseek-ai/deepseek-coder-6.7b-instruct",
194
+ "DSCoder-6.7b-Ins",
195
+ LMStyle.DeepSeekCodeInstruct,
196
+ datetime(2023, 9, 1),
197
+ link="https://huggingface.co/deepseek-ai/deepseek-coder-6.7b-instruct",
198
+ ),
199
+ LanguageModel(
200
+ "deepseek-ai/deepseek-coder-1.3b-instruct",
201
+ "DSCoder-1.3b-Ins",
202
+ LMStyle.DeepSeekCodeInstruct,
203
+ datetime(2023, 8, 1),
204
+ link="https://huggingface.co/deepseek-ai/deepseek-coder-1.3b-instruct",
205
+ ),
206
+ ##
207
+ LanguageModel(
208
+ "01-ai/Yi-Coder-9B-Chat",
209
+ "Yi-Coder-9B-Chat",
210
+ LMStyle.DeepSeekAPI,
211
+ datetime(2023, 8, 1),
212
+ link="https://huggingface.co/01-ai/Yi-Coder-9B-Chat",
213
+ ),
214
+ ## Deepseek-Chat Latest API (currently DeepSeek-V3)
215
+ LanguageModel(
216
+ "deepseek-r1-preview",
217
+ "DeepSeek-R1-Preview",
218
+ LMStyle.DeepSeekAPI,
219
+ datetime(2024, 6, 30),
220
+ link="https://api-docs.deepseek.com/news/news1120",
221
+ ),
222
+ LanguageModel(
223
+ "deepseek-r1-lite-preview",
224
+ "DeepSeek-R1-Lite-Preview",
225
+ LMStyle.DeepSeekAPI,
226
+ datetime(2024, 6, 30),
227
+ link="https://api-docs.deepseek.com/news/news1120",
228
+ ),
229
+ LanguageModel(
230
+ "deepseek-chat",
231
+ "DeepSeek-V3",
232
+ LMStyle.DeepSeekAPI,
233
+ datetime(2024, 6, 30),
234
+ link="https://huggingface.co/deepseek-ai/DeepSeek-V3",
235
+ ),
236
+ ## Deepseek-Coder Latest API (currently DeepSeekCoder-V2.5)
237
+ LanguageModel(
238
+ "deepseek-coder",
239
+ "DeepSeekCoder-V2.5",
240
+ LMStyle.DeepSeekAPI,
241
+ datetime(2023, 8, 1),
242
+ link="https://huggingface.co/deepseek-ai/DeepSeek-V2",
243
+ ),
244
+ ## OpenAI GPT-3.5-Turbo
245
+ LanguageModel(
246
+ "gpt-3.5-turbo-0301",
247
+ "GPT-3.5-Turbo-0301",
248
+ LMStyle.OpenAIChat,
249
+ datetime(2021, 10, 1),
250
+ link="https://openai.com/blog/new-models-and-developer-products-announced-at-devday",
251
+ ),
252
+ LanguageModel(
253
+ "gpt-3.5-turbo-0125",
254
+ "GPT-3.5-Turbo-0125",
255
+ LMStyle.OpenAIChat,
256
+ datetime(2021, 10, 1),
257
+ link="https://openai.com/blog/new-embedding-models-and-api-updates#:~:text=Other%20new%20models%20and%20lower%20pricing",
258
+ ),
259
+ ## OpenAI GPT-4, GPT-4-Turbo
260
+ LanguageModel(
261
+ "gpt-4-0613",
262
+ "GPT-4-0613",
263
+ LMStyle.OpenAIChat,
264
+ datetime(2021, 10, 1),
265
+ link="https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4",
266
+ ),
267
+ LanguageModel(
268
+ "gpt-4-1106-preview",
269
+ "GPT-4-Turbo-1106",
270
+ LMStyle.OpenAIChat,
271
+ datetime(2023, 4, 30),
272
+ link="https://openai.com/blog/new-models-and-developer-products-announced-at-devday",
273
+ ),
274
+ LanguageModel(
275
+ "gpt-4-turbo-2024-04-09",
276
+ "GPT-4-Turbo-2024-04-09",
277
+ LMStyle.OpenAIChat,
278
+ datetime(2023, 4, 30),
279
+ link="https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4",
280
+ ),
281
+ ## OpenAI GPT-4O (and Mini)
282
+ LanguageModel(
283
+ "gpt-4o-2024-05-13",
284
+ "GPT-4O-2024-05-13",
285
+ LMStyle.OpenAIChat,
286
+ datetime(2023, 4, 30),
287
+ link="https://openai.com/index/spring-update",
288
+ ),
289
+ LanguageModel(
290
+ "gpt-4o-2024-08-06",
291
+ "GPT-4O-2024-08-06",
292
+ LMStyle.OpenAIChat,
293
+ datetime(2023, 4, 30),
294
+ link="https://openai.com/index/spring-update",
295
+ ),
296
+ LanguageModel(
297
+ "gpt-4o-mini-2024-07-18",
298
+ "GPT-4O-mini-2024-07-18",
299
+ LMStyle.OpenAIChat,
300
+ datetime(2023, 4, 30),
301
+ link="https://openai.com/index/spring-update",
302
+ ),
303
+ ## O1-Mini and O1-Preview
304
+ LanguageModel(
305
+ "o1-preview-2024-09-12",
306
+ "O1-Preview-2024-09-12 (N=1)",
307
+ LMStyle.OpenAIReasonPreview,
308
+ datetime(2023, 4, 30),
309
+ link="https://platform.openai.com/docs/guides/reasoning",
310
+ ),
311
+ LanguageModel(
312
+ "o1-mini-2024-09-12",
313
+ "O1-Mini-2024-09-12 (N=1)",
314
+ LMStyle.OpenAIReasonPreview,
315
+ datetime(2023, 4, 30),
316
+ link="https://platform.openai.com/docs/guides/reasoning",
317
+ ),
318
+ ## O1 (reasoning models)
319
+ LanguageModel(
320
+ "o1-2024-12-17__low",
321
+ "O1-2024-12-17 (N=1) (Low)",
322
+ LMStyle.OpenAIReason,
323
+ datetime(2023, 4, 30),
324
+ link="https://platform.openai.com/docs/api-reference/chat/create#chat-create-reasoning_effort",
325
+ ),
326
+ LanguageModel(
327
+ "o1-2024-12-17__medium",
328
+ "O1-2024-12-17 (N=1) (Med)",
329
+ LMStyle.OpenAIReason,
330
+ datetime(2023, 4, 30),
331
+ link="htthttps://platform.openai.com/docs/api-reference/chat/create#chat-create-reasoning_effort",
332
+ ),
333
+ LanguageModel(
334
+ "o1-2024-12-17__high",
335
+ "O1-2024-12-17 (N=1) (High)",
336
+ LMStyle.OpenAIReason,
337
+ datetime(2023, 4, 30),
338
+ link="https://platform.openai.com/docs/api-reference/chat/create#chat-create-reasoning_effort",
339
+ ),
340
+ ## Claude and Claude 2
341
+ LanguageModel(
342
+ "claude-instant-1",
343
+ "Claude-Instant-1",
344
+ LMStyle.Claude,
345
+ datetime(2022, 12, 31),
346
+ link="https://www.anthropic.com/index/introducing-claude",
347
+ ),
348
+ LanguageModel(
349
+ "claude-2",
350
+ "Claude-2",
351
+ LMStyle.Claude,
352
+ datetime(2022, 12, 31),
353
+ link="https://www.anthropic.com/index/claude-2",
354
+ ),
355
+ ## Claude 3 and Claude 3.5
356
+ LanguageModel(
357
+ "claude-3-opus-20240229",
358
+ "Claude-3-Opus",
359
+ LMStyle.Claude3,
360
+ datetime(2023, 9, 1),
361
+ link="https://www.anthropic.com/index/claude-3",
362
+ ),
363
+ LanguageModel(
364
+ "claude-3-sonnet-20240229",
365
+ "Claude-3-Sonnet",
366
+ LMStyle.Claude3,
367
+ datetime(2023, 9, 1),
368
+ link="https://www.anthropic.com/index/claude-3",
369
+ ),
370
+ LanguageModel(
371
+ "claude-3-5-sonnet-20240620",
372
+ "Claude-3.5-Sonnet-20240620",
373
+ LMStyle.Claude3,
374
+ datetime(2024, 3, 31),
375
+ link="https://www.anthropic.com/news/claude-3-5-sonnet",
376
+ ),
377
+ LanguageModel(
378
+ "claude-3-5-sonnet-20241022",
379
+ "Claude-3.5-Sonnet-20241022",
380
+ LMStyle.Claude3,
381
+ datetime(2024, 3, 31),
382
+ link="https://www.anthropic.com/news/claude-3-5-sonnet",
383
+ ),
384
+ LanguageModel(
385
+ "claude-3-haiku-20240307",
386
+ "Claude-3-Haiku",
387
+ LMStyle.Claude3,
388
+ datetime(2023, 4, 30),
389
+ link="https://www.anthropic.com/index/claude-3",
390
+ ),
391
+ ## Gemini
392
+ LanguageModel(
393
+ "gemini-1.5-pro-002",
394
+ "Gemini-Pro-1.5-002",
395
+ LMStyle.Gemini,
396
+ datetime(2023, 4, 30),
397
+ link="https://blog.google/technology/ai/gemini-api-developers-cloud",
398
+ ),
399
+ LanguageModel(
400
+ "gemini-1.5-flash-002",
401
+ "Gemini-Flash-1.5-002",
402
+ LMStyle.Gemini,
403
+ datetime(2023, 4, 30),
404
+ link="https://blog.google/technology/ai/gemini-api-developers-cloud",
405
+ ),
406
+ LanguageModel(
407
+ "gemini-exp-1206",
408
+ "Gemini-Exp-1206",
409
+ LMStyle.Gemini,
410
+ datetime(2023, 4, 30),
411
+ link="https://ai.google.dev/gemini-api/docs/models/experimental-models",
412
+ ),
413
+ LanguageModel(
414
+ "gemini-2.0-flash-thinking-exp-1219",
415
+ "Gemini-Flash-2.0-Thinking-12-19 (N=1)",
416
+ LMStyle.GeminiThinking,
417
+ datetime(2023, 4, 30),
418
+ link="https://ai.google.dev/gemini-api/docs/models/experimental-models",
419
+ ),
420
+ LanguageModel(
421
+ "gemini-2.0-flash-thinking-exp-01-21",
422
+ "Gemini-Flash-2.0-Thinking-01-21 (N=1)",
423
+ LMStyle.GeminiThinking,
424
+ datetime(2023, 4, 30),
425
+ link="https://ai.google.dev/gemini-api/docs/models/experimental-models",
426
+ ),
427
+ LanguageModel(
428
+ "gemini-2.0-flash-exp",
429
+ "Gemini-Flash-2.0-Exp",
430
+ LMStyle.Gemini,
431
+ datetime(2023, 4, 30),
432
+ link="https://ai.google.dev/gemini-api/docs/models/experimental-models",
433
+ ),
434
+ ## Generic Base Models
435
+ LanguageModel(
436
+ "bigcode/starcoder2-3b",
437
+ "StarCoder2-3b",
438
+ LMStyle.GenericBase,
439
+ datetime(2023, 1, 1),
440
+ link="https://huggingface.co/bigcode/starcoder2-7b-magicoder-instruct/tree/main",
441
+ ),
442
+ LanguageModel(
443
+ "bigcode/starcoder2-7b",
444
+ "StarCoder2-7b",
445
+ LMStyle.GenericBase,
446
+ datetime(2023, 1, 1),
447
+ link="https://huggingface.co/bigcode/starcoder2-7b-magicoder-instruct/tree/main",
448
+ ),
449
+ LanguageModel(
450
+ "bigcode/starcoder2-15b",
451
+ "StarCoder2-15b",
452
+ LMStyle.GenericBase,
453
+ datetime(2023, 1, 1),
454
+ link="https://huggingface.co/bigcode/starcoder2-7b-magicoder-instruct/tree/main",
455
+ ),
456
+ LanguageModel(
457
+ "google/codegemma-7b",
458
+ "CodeGemma-7b-Base",
459
+ LMStyle.GenericBase,
460
+ datetime(2023, 1, 1),
461
+ link="https://huggingface.co/google/codegemma-7b",
462
+ ),
463
+ LanguageModel(
464
+ "google/codegemma-2b",
465
+ "CodeGemma-2b-Base",
466
+ LMStyle.GenericBase,
467
+ datetime(2023, 1, 1),
468
+ link="https://huggingface.co/google/codegemma-2b",
469
+ ),
470
+ LanguageModel(
471
+ "google/gemma-7b",
472
+ "Gemma-7b-Base",
473
+ LMStyle.GenericBase,
474
+ datetime(2023, 1, 1),
475
+ link="https://huggingface.co/google/gemma-7b",
476
+ ),
477
+ LanguageModel(
478
+ "google/gemma-2b",
479
+ "Gemma-2b-Base",
480
+ LMStyle.GenericBase,
481
+ datetime(2023, 1, 1),
482
+ link="https://huggingface.co/google/gemma-2b",
483
+ ),
484
+ ## Mistral Web
485
+ LanguageModel(
486
+ "mistral-large-latest",
487
+ "Mistral-Large",
488
+ LMStyle.MistralWeb,
489
+ datetime(2023, 1, 1),
490
+ link="https://mistral.ai/news/mistral-large/",
491
+ ),
492
+ ## Mistral OSS
493
+ LanguageModel(
494
+ "open-mixtral-8x22b",
495
+ "Mixtral-8x22B-Ins",
496
+ LMStyle.MistralWeb,
497
+ datetime(2023, 1, 1),
498
+ link="https://mistral.ai/news/mixtral-8x22b/",
499
+ ),
500
+ LanguageModel(
501
+ "open-mixtral-8x7b",
502
+ "Mixtral-8x7B-Ins",
503
+ LMStyle.MistralWeb,
504
+ datetime(2023, 1, 1),
505
+ link="https://mistral.ai/news/mixtral-8x7b/",
506
+ ),
507
+ LanguageModel(
508
+ "open-mixtral-8x7b",
509
+ "Mixtral-8x7B-Ins",
510
+ LMStyle.MistralWeb,
511
+ datetime(2023, 1, 1),
512
+ link="https://mistral.ai/news/mixtral-8x7b/",
513
+ ),
514
+ LanguageModel(
515
+ "codestral-latest",
516
+ "Codestral-Latest",
517
+ LMStyle.MistralWeb,
518
+ datetime(2023, 1, 1),
519
+ link="https://mistral.ai/news/codestral/",
520
+ ),
521
+ ## QwQ
522
+ LanguageModel(
523
+ "Qwen/QwQ-32B-Preview",
524
+ "QwQ-32B-Preview (N=1)",
525
+ LMStyle.QwQ,
526
+ datetime(2024, 6, 30),
527
+ link="https://huggingface.co/Qwen/QwQ-32B-Preview",
528
+ ),
529
+ ## Qwen 2
530
+ LanguageModel(
531
+ "Qwen/Qwen2-72B-Instruct",
532
+ "Qwen2-Ins-72B",
533
+ LMStyle.CodeQwenInstruct,
534
+ datetime(2023, 8, 30),
535
+ link="https://huggingface.co/Qwen/Qwen2-72B-Instruct",
536
+ ),
537
+ ## Qwen 2.5
538
+ LanguageModel(
539
+ "Qwen/Qwen2.5-7B-Instruct",
540
+ "Qwen2.5-Ins-7B",
541
+ LMStyle.CodeQwenInstruct,
542
+ datetime(2023, 8, 30),
543
+ link="https://huggingface.co/Qwen/Qwen2.5-7B-Instruct",
544
+ ),
545
+ LanguageModel(
546
+ "Qwen/Qwen2.5-32B-Instruct",
547
+ "Qwen2.5-Ins-32B",
548
+ LMStyle.CodeQwenInstruct,
549
+ datetime(2023, 8, 30),
550
+ link="https://huggingface.co/Qwen/Qwen2.5-32B-Instruct",
551
+ ),
552
+ LanguageModel(
553
+ "Qwen/Qwen2.5-72B-Instruct",
554
+ "Qwen2.5-Ins-72B",
555
+ LMStyle.CodeQwenInstruct,
556
+ datetime(2023, 8, 30),
557
+ link="https://huggingface.co/Qwen/Qwen2.5-72B-Instruct",
558
+ ),
559
+ ## Qwen 2.5-Coder
560
+ LanguageModel(
561
+ "Qwen/Qwen2.5-Coder-7B-Instruct",
562
+ "Qwen2.5-Coder-Ins-7B",
563
+ LMStyle.CodeQwenInstruct,
564
+ datetime(2024, 6, 30),
565
+ link="https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct",
566
+ ),
567
+ LanguageModel(
568
+ "Qwen/Qwen2.5-Coder-32B-Instruct",
569
+ "Qwen2.5-Coder-Ins-32B",
570
+ LMStyle.CodeQwenInstruct,
571
+ datetime(2024, 6, 30),
572
+ link="https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct",
573
+ ),
574
+ ]
575
+
576
+ LanguageModelStore: dict[str, LanguageModel] = {
577
+ lm.model_name: lm for lm in LanguageModelList
578
+ }
579
+
580
+ if __name__ == "__main__":
581
+ print(list(LanguageModelStore.keys()))
@@ -0,0 +1,22 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ # Original Copyright 2025 LiveCodeBench
17
+ # For the original license and copyright information, see the LICENSE file in this repository.
18
+
19
+ from livecodebench.prompts.code_execution import format_prompt_execution, format_prompt_execution_cot
20
+ from livecodebench.prompts.code_generation import format_prompt_generation
21
+ from livecodebench.prompts.test_output_prediction import format_prompt_test_output
22
+ from livecodebench.prompts.self_repair import format_prompt_self_repair