-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathleaderboard.html
More file actions
621 lines (576 loc) · 19.3 KB
/
leaderboard.html
File metadata and controls
621 lines (576 loc) · 19.3 KB
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
<!doctype html>
<html>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;400&display=swap" rel="stylesheet" />
<head>
<meta charset="UTF-8" />
<title>EvalPlus Leaderboard</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.3/dist/echarts.min.js"></script>
<link rel="icon" href="https://images.emojiterra.com/google/noto-emoji/unicode-15/color/1024px/1f9d1-1f4bb.png" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" />
<link href="https://cdn.jsdelivr.net/npm/prismjs@v1.x/themes/prism.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/prismjs@v1.x/components/prism-core.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@v1.x/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.1.0/prism-bibtex.min.js"></script>
<style>
body {
font-family: "JetBrains Mono", monospace;
background-color: #ffffff;
color: #000000;
}
#content {
width: 75%;
}
th,
td {
text-align: left;
}
th {
background-color: #f2f2f2;
}
#notes {
font-size: 1em;
}
#notes h3 {
margin-top: 1em;
font-size: 2em;
text-align: center;
}
#notes li {
font-size: 1.2em;
font-weight: 300;
margin: 1em;
}
.form-select {
font-size: 1em;
}
@media screen and (max-width: 1400px) {
body {
font-size: 1.6vw;
}
#content {
width: 100%;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.6em;
}
h3 {
font-size: 1.2em;
}
table {
font-size: small;
}
}
</style>
</head>
<body>
<div id="content" class="container-fluid d-flex flex-column align-items-center gap-3">
<h1 class="text-nowrap mt-5">🏆 EvalPlus Leaderboard 🏆</h1>
<h3 class="fw-light text-nowrap">
<small id="warning">EvalPlus evaluates AI Coders with rigorous tests.<br /></small>
</h3>
<p>📢 News: Beyond correctness, how's their code efficiency? Checkout <a href="./evalperf.html">🚀EvalPerf</a>!</p>
<div class="d-flex flex-row justify-content-center gap-3">
<a href="https://github.com/evalplus/evalplus"><img
src="https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white"
alt="github" class="img-fluid" /></a>
<a href="https://openreview.net/forum?id=1qvx610Cu7"><img
src="https://img.shields.io/badge/Paper-NeurIPS'23-a55fed.svg?style=for-the-badge" alt="paper"
class="img-fluid" /></a>
</div>
<div class="btn-group" role="group" id="Benchmark">
<input type="radio" class="btn-check" name="btnradio" id="HumanEval" checked />
<label class="btn btn-outline-primary" for="HumanEval">HumanEval</label>
<input type="radio" class="btn-check" name="btnradio" id="MBPP" />
<label class="btn btn-outline-primary" for="MBPP">MBPP</label>
<input type="radio" class="btn-check" name="btnradio" id="Average" />
<label class="btn btn-outline-primary" for="Average">Average</label>
</div>
<div id="chart" style="width: 100%; height: 600px"></div>
<div class="container-fluid d-flex flex-row flex-nowrap">
<div class="container-fluid d-flex flex-column align-items-center">
<label for="plused" class="text-success mb-3">⚡EvalPlus Tests⚡</label>
<table id="plused"
class="table table-responsive table-striped table-bordered flex-shrink-1 border border-success border-3">
</table>
</div>
<div class="container-fluid d-flex flex-column align-items-center">
<label for="origin" class="text-danger mb-3">Base Tests</label>
<table id="origin"
class="table table-responsive table-striped table-bordered flex-shrink-1 border border-danger border-3">
</table>
</div>
</div>
<div id="notes">
<h3>📝 Notes</h3>
<div class="inline-block mt-3">
<ol>
<li>
Evaluated using
<a href="https://github.com/evalplus/humanevalplus_release">HumanEval+</a>
version 0.1.10;
<a href="https://github.com/evalplus/mbppplus_release">MBPP+</a>
version 0.2.0.
</li>
<li>
Models are ranked according to pass@1 using greedy decoding. Setup
details can be found
<a href="https://github.com/evalplus/evalplus/blob/master/codegen/model.py">here</a>.
</li>
<li>
✨ marks models evaluated using a chat setting, while others
perform direct code completion.
</li>
<li>
Both MBPP and MBPP+ referred in our leaderboard use a subset (399
tasks) of hand-verified problems from MBPP-sanitized (427 tasks),
to make sure the programming task is well-formed (e.g., test_list
is not wrong).
</li>
<li>
Model providers have the responsibility to avoid data
contamination. Models trained on close data can be affected by
contamination.
</li>
<li>
💚 means open weights and open data. 💙 means open weights and
open SFT data, but the base model is not data-open. What does this
imply? 💚💙 models open-source the data such that one can
concretely reason about contamination.
</li>
<li>
"Size" here is the amount of activated model weight during
inference.
</li>
</ol>
</div>
</div>
<div id="notes">
<h3>🤗 More Leaderboards</h3>
In addition to EvalPlus leaderboards, it is recommended to
comprehensively understand LLM coding ability through a diverse set of
benchmarks and leaderboards, such as:
<div class="inline-block mt-3">
<ol>
<li>
<a href="https://bigcode-bench.github.io/">BigCodeBench</a>
</li>
<li>
<a href="https://huggingface.co/spaces/bigcode/bigcode-models-leaderboard">Big Code Models Leaderboard</a>
</li>
<li>
<a href="https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard">Chatbot Arena Leaderboard</a>
</li>
<li>
<a href="https://github.com/amazon-science/cceval">CrossCodeEval</a>
</li>
<li>
<a href="https://fudanselab-classeval.github.io/">ClassEval</a>
</li>
<li>
<a href="https://crux-eval.github.io/leaderboard.html">CRUXEval</a>
</li>
<li>
<a href="https://codetlingua.github.io/leaderboard.html">Code Lingua</a>
</li>
<li><a href="https://evo-eval.github.io/">Evo-Eval</a></li>
<li><a href="https://huggingface.co/spaces/EffiBench/effibench-leaderboard">EffiBench</a></li>
<li>
<a href="https://github.com/01-ai/HumanEval.jl">HumanEval.jl - Julia version HumanEval with EvalPlus test
cases</a>
</li>
<li>
<a href="https://livecodebench.github.io/leaderboard.html">LiveCodeBench</a>
</li>
<li>
<a href="https://sparksofagi.github.io/MHPP/">MHPP</a>
</li>
<li>
<a href="https://github.com/THUDM/NaturalCodeBench">NaturalCodeBench</a>
</li>
<li><a href="https://github.com/Leolty/repobench">RepoBench</a></li>
<li><a href="https://www.swebench.com/">SWE-bench</a></li>
<li>
<a href="https://leaderboard.tabbyml.com/">TabbyML Leaderboard</a>
</li>
<li>
<a href="https://llm4softwaretesting.github.io/">TestEval</a>
</li>
</ol>
</div>
</div>
</div>
<script>
const originTable = document.getElementById("origin");
const plusedTable = document.getElementById("plused");
const benchmarkRadio = document.getElementById("Benchmark");
const chartDom = document.getElementById("chart");
var chart = echarts.init(chartDom);
const dataUrl = "results.json";
var xhr = new XMLHttpRequest();
xhr.open("GET", "results.json", false); // false makes the request synchronous
xhr.send();
const calcAverage = (a, b) => {
if (a == null || b == null) {
return null;
} else {
return parseFloat(((parseFloat(a) + parseFloat(b)) / 2).toFixed(1));
}
};
var data;
/*
After calculating the average, the data should be like this:
data[Model]["pass@1"] = {
"humaneval": ...,
"mbpp": ...,
"humaneval+": ...,
"mbpp+": ...,
"average": ...,
"average+": ...,
}
*/
if (xhr.status === 200) {
data = JSON.parse(xhr.responseText);
Object.keys(data).forEach((key) => {
data[key]["pass@1"]["average"] = calcAverage(
data[key]["pass@1"]["humaneval"],
data[key]["pass@1"]["mbpp"],
);
data[key]["pass@1"]["average+"] = calcAverage(
data[key]["pass@1"]["humaneval+"],
data[key]["pass@1"]["mbpp+"],
);
});
data = Object.keys(data).map((key) => {
return {
Model: key,
...data[key],
};
});
} else {
// pop up error window
alert("Failed to load data from results.json");
}
const globalData = data;
const clearTable = () => {
originTable.innerHTML = "";
plusedTable.innerHTML = "";
};
const clearChart = () => {
chartOption.xAxis.data = [];
chartOption.series[0].data = [];
chartOption.series[1].data = [];
chartOption.series[0].markLine.data = [];
chartOption.series[1].markLine.data = [];
};
var chartOption = {
legend: {
data: ["pass@1*"],
},
grid: {
left: "1%",
right: "4%",
bottom: "3%",
containLabel: true,
},
xAxis: {
name: "Act. Size",
type: "category",
boundaryGap: false,
data: [],
axisLabel: {
formatter: function (value) {
return value + "B";
},
},
},
yAxis: {
name: "PASS@1 (greedy decoding)",
type: "value",
show: true,
nameTextStyle: {
align: "left",
},
splitLine: {
show: true,
lineStyle: {
type: "dashed",
},
},
},
legend: {
data: ["base", "instructed"],
itemStyle: {
opacity: 1.0,
},
},
tooltip: {
trigger: "item",
axisPointer: {
type: "cross",
},
},
series: [
{
name: "base",
type: "scatter",
data: [],
itemStyle: {
color: "#91cc75",
opacity: 0.2,
},
emphasis: {
focus: "series",
},
lineStyle: {
width: 2,
},
markLine: {
symbol: "none",
emphasis: {
label: {
position: "middle",
formatter: function (params) {
return params.data.name;
},
},
},
data: [],
},
},
{
name: "instructed",
type: "scatter",
data: [],
itemStyle: {
color: "#5470c6",
opacity: 0.2,
},
emphasis: {
focus: "series",
},
lineStyle: {
width: 2,
},
markLine: {
symbol: "none",
emphasis: {
label: {
position: "middle",
formatter: function (params) {
return params.data.name;
},
},
},
data: [],
},
},
],
};
const theaders = ["Model", "pass@1"];
// score: 'average', 'humaneval', 'mbpp', 'humaneval+', 'mbpp+'
const displayTable = (table, score) => {
// filter out Null
data = globalData
.filter((row) => {
return row["pass@1"][score] != null;
})
.sort((a, b) => {
return b["pass@1"][score] - a["pass@1"][score];
});
var thead = document.createElement("thead");
var headerRow = document.createElement("tr");
// add rank
var th = document.createElement("th");
th.textContent = "#";
headerRow.appendChild(th);
// headers
theaders.forEach(function (header) {
var th = document.createElement("th");
th.textContent = header;
headerRow.appendChild(th);
});
thead.appendChild(headerRow);
table.appendChild(thead);
var tbody = document.createElement("tbody");
// add rank
var rank = 1;
data.forEach((row) => {
var dataRow = document.createElement("tr");
var rankCell = document.createElement("td");
rankCell.textContent = rank;
dataRow.appendChild(rankCell);
var modelCell = document.createElement("td");
if (rank == 1) {
modelCell.textContent = "🥇 ";
} else if (rank == 2) {
modelCell.textContent = "🥈 ";
} else if (rank == 3) {
modelCell.textContent = "🥉 ";
} else {
modelCell.textContent = "";
}
rank++;
var modelLink = document.createElement("a");
modelLink.href = row["link"];
modelLink.textContent = row["Model"];
modelLink.classList.add("link-underline-primary");
modelLink.classList.add("text-nowrap");
modelCell.appendChild(modelLink);
modelCell.classList.add("d-flex");
modelCell.classList.add("flex-nowrap");
var prompted = row["prompted"];
var opendata = row["open-data"];
if (prompted) {
// add a symbol to indicate the model is prompted
var promptedSymbol = document.createElement("span");
promptedSymbol.textContent = "✨";
modelCell.appendChild(promptedSymbol);
}
if (opendata.toUpperCase() == "FULL") {
// add a symbol to indicate the model is fully open-sourced
var promptedSymbol = document.createElement("span");
promptedSymbol.textContent = "💚";
modelCell.appendChild(promptedSymbol);
} else if (opendata.toUpperCase() == "PARTIAL") {
// add a symbol to indicate the model is partially open-sourced
// i.e., a subset of the model implementation is close-sourced
var promptedSymbol = document.createElement("span");
promptedSymbol.textContent = "💙";
modelCell.appendChild(promptedSymbol);
}
dataRow.appendChild(modelCell);
var passCell = document.createElement("td");
if (table == originTable) {
passCell.classList.add("text-danger");
} else if (table == plusedTable) {
passCell.textContent = "⚡";
passCell.classList.add("text-success");
}
passCell.textContent += row["pass@1"][score];
dataRow.appendChild(passCell);
tbody.appendChild(dataRow);
});
table.appendChild(tbody);
};
const displayChart = (score) => {
const maxMarkLineModels = 8;
// sort first
const data = globalData
.filter((model) => {
return model["pass@1"][score] != null;
})
.sort((a, b) => {
return b["pass@1"][score] - a["pass@1"][score];
});
const sizeList = [
...new Set(
data
.filter((model) => model["size"] != null)
.map((model) => Math.round(model["size"])),
),
].sort((a, b) => {
return a - b;
});
chartOption.xAxis.data = sizeList;
chartOption.yAxis.max =
1 + Math.max(...data.map((model) => model["pass@1"][score]));
const nonPromptedModels = data.filter(
(model) => model["prompted"] == false && model["size"] != null,
);
const promptedModels = data.filter(
(model) => model["prompted"] == true && model["size"] != null,
);
const nonSizeModels = data.filter(
model => model.size === null
).slice(0, maxMarkLineModels);
nonSizeModels.forEach((model) => {
chartOption.series[1].markLine.data.push({
name: model["Model"],
yAxis: model["pass@1"][score],
});
});
[nonPromptedModels, promptedModels].forEach((series, idx) => {
series.forEach((model) => {
chartOption.series[idx].data.push({
name: model["Model"],
value: [`${Math.round(model["size"])}`, model["pass@1"][score]],
});
});
});
const offsets = [[50, 0]]
.concat(Array.from({ length: sizeList.length - 2 }, () => [0, 0]))
.concat([[-50, 0]]);
sizeList.forEach((size, idx) => {
const bestNonPromptedModel = nonPromptedModels
.filter((model) => Math.round(model["size"]) == size)
.sort((a, b) => {
return b["pass@1"][score] - a["pass@1"][score];
})[0];
const bestPromptedModel = promptedModels
.filter((model) => Math.round(model["size"]) == size)
.sort((a, b) => {
return b["pass@1"][score] - a["pass@1"][score];
})[0];
const hightLightBest = (series, model) => {
const point = chartOption.series[series].data.find(
(point) => point.name == model["Model"],
);
point.itemStyle = {
opacity: 1.0,
};
point.label = {
show: true,
position: "top",
offset: offsets[idx],
formatter: function (params) {
return params.data.name;
},
color: "inherit",
};
};
if (bestNonPromptedModel) {
hightLightBest(0, bestNonPromptedModel);
}
if (bestPromptedModel) {
hightLightBest(1, bestPromptedModel);
}
});
chart.setOption(chartOption);
};
const avergeRadio = document.getElementById("Average");
const humanEvalRadio = document.getElementById("HumanEval");
const mbppRadio = document.getElementById("MBPP");
humanEvalRadio.addEventListener("click", function () {
clearTable();
displayTable(originTable, "humaneval");
displayTable(plusedTable, "humaneval+");
clearChart();
displayChart("humaneval+");
});
mbppRadio.addEventListener("click", function () {
clearTable();
displayTable(originTable, "mbpp");
displayTable(plusedTable, "mbpp+");
clearChart();
displayChart("mbpp+");
});
avergeRadio.addEventListener("click", function () {
clearTable();
displayTable(originTable, "average");
displayTable(plusedTable, "average+");
clearChart();
displayChart("average");
});
humanEvalRadio.click();
window.addEventListener("resize", () => {
this.chart.resize();
});
</script>
</body>
</html>