Daniel Kantor commited on
Commit
ee5d5a0
·
1 Parent(s): 971d7da

re-add citations page

Browse files

This reverts commit 51549c385a766fc1aaa7c5bd895dc1f5ab2fa455.

frontend/src/App.js CHANGED
@@ -11,6 +11,7 @@ import { Box, CssBaseline } from "@mui/material";
11
  import Navigation from "./components/Navigation/Navigation";
12
  import LeaderboardPage from "./pages/LeaderboardPage/LeaderboardPage";
13
  import AddModelPage from "./pages/AddModelPage/AddModelPage";
 
14
  import VoteModelPage from "./pages/VoteModelPage/VoteModelPage";
15
  import Footer from "./components/Footer/Footer";
16
  import getTheme from "./config/theme";
@@ -107,6 +108,7 @@ function App() {
107
  <Routes>
108
  <Route path="/" element={<LeaderboardPage />} />
109
  <Route path="/add" element={<AddModelPage />} />
 
110
  <Route path="/vote" element={<VoteModelPage />} />
111
  </Routes>
112
  </Box>
 
11
  import Navigation from "./components/Navigation/Navigation";
12
  import LeaderboardPage from "./pages/LeaderboardPage/LeaderboardPage";
13
  import AddModelPage from "./pages/AddModelPage/AddModelPage";
14
+ import QuotePage from "./pages/QuotePage/QuotePage";
15
  import VoteModelPage from "./pages/VoteModelPage/VoteModelPage";
16
  import Footer from "./components/Footer/Footer";
17
  import getTheme from "./config/theme";
 
108
  <Routes>
109
  <Route path="/" element={<LeaderboardPage />} />
110
  <Route path="/add" element={<AddModelPage />} />
111
+ <Route path="/quote" element={<QuotePage />} />
112
  <Route path="/vote" element={<VoteModelPage />} />
113
  </Routes>
114
  </Box>
frontend/src/components/Navigation/Navigation.js CHANGED
@@ -258,6 +258,15 @@ const Navigation = ({ onToggleTheme, mode }) => {
258
  >
259
  Submit model
260
  </MenuItem>
 
 
 
 
 
 
 
 
 
261
  {/*<MenuItem
262
  onClick={(e) => {
263
  handleNavigation("/vote")(e);
@@ -395,6 +404,12 @@ const Navigation = ({ onToggleTheme, mode }) => {
395
  },
396
  }}
397
  >About Stacklok</MuiLink>
 
 
 
 
 
 
398
  </Box>
399
 
400
  <Separator />
 
258
  >
259
  Submit model
260
  </MenuItem>
261
+ <MenuItem
262
+ onClick={(e) => {
263
+ handleNavigation("/quote")(e);
264
+ handleMenuClose();
265
+ }}
266
+ selected={location.pathname === "/quote"}
267
+ >
268
+ Citations
269
+ </MenuItem>
270
  {/*<MenuItem
271
  onClick={(e) => {
272
  handleNavigation("/vote")(e);
 
404
  },
405
  }}
406
  >About Stacklok</MuiLink>
407
+ <Box
408
+ onClick={handleNavigation("/quote")}
409
+ sx={linkStyle(location.pathname === "/quote")}
410
+ >
411
+ Citations
412
+ </Box>
413
  </Box>
414
 
415
  <Separator />
frontend/src/pages/QuotePage/QuotePage.js ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from "react";
2
+ import {
3
+ Box,
4
+ Typography,
5
+ Paper,
6
+ IconButton,
7
+ Tooltip,
8
+ Alert,
9
+ Link,
10
+ } from "@mui/material";
11
+ import ContentCopyIcon from "@mui/icons-material/ContentCopy";
12
+ import PageHeader from "../../components/shared/PageHeader";
13
+
14
+ const citations = [
15
+ {
16
+ title: "Open LLM Leaderboard v2",
17
+ authors:
18
+ "Clémentine Fourrier, Nathan Habib, Alina Lozovskaya, Konrad Szafer, Thomas Wolf",
19
+ citation: `@misc{open-llm-leaderboard-v2,
20
+ author = {Clémentine Fourrier and Nathan Habib and Alina Lozovskaya and Konrad Szafer and Thomas Wolf},
21
+ title = {Open LLM Leaderboard v2},
22
+ year = {2024},
23
+ publisher = {Hugging Face},
24
+ howpublished = "\\url{https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard}",
25
+ }`,
26
+ type: "main",
27
+ },
28
+ {
29
+ title: "Evaluation Framework",
30
+ authors: "Leo Gao et al.",
31
+ citation: `@software{eval-harness,
32
+ author = {Gao, Leo and Tow, Jonathan and Biderman, Stella and Black, Sid and DiPofi, Anthony and Foster, Charles and Golding, Laurence and Hsu, Jeffrey and McDonell, Kyle and Muennighoff, Niklas and Phang, Jason and Reynolds, Laria and Tang, Eric and Thite, Anish and Wang, Ben and Wang, Kevin and Zou, Andy},
33
+ title = {A framework for few-shot language model evaluation},
34
+ month = sep,
35
+ year = 2021,
36
+ publisher = {Zenodo},
37
+ version = {v0.0.1},
38
+ doi = {10.5281/zenodo.5371628},
39
+ url = {https://doi.org/10.5281/zenodo.5371628},
40
+ }`,
41
+ url: "https://doi.org/10.5281/zenodo.5371628",
42
+ },
43
+ ];
44
+
45
+ const priorWork = [
46
+ {
47
+ title: "Open LLM Leaderboard v1",
48
+ authors:
49
+ "Edward Beeching, Clémentine Fourrier, Nathan Habib, Sheon Han, Nathan Lambert, Nazneen Rajani, Omar Sanseviero, Lewis Tunstall, Thomas Wolf",
50
+ citation: `@misc{open-llm-leaderboard-v1,
51
+ author = {Edward Beeching and Clémentine Fourrier and Nathan Habib and Sheon Han and Nathan Lambert and Nazneen Rajani and Omar Sanseviero and Lewis Tunstall and Thomas Wolf},
52
+ title = {Open LLM Leaderboard (2023-2024)},
53
+ year = {2023},
54
+ publisher = {Hugging Face},
55
+ howpublished = "\\url{https://huggingface.co/spaces/open-llm-leaderboard-old/open_llm_leaderboard}"
56
+ }`,
57
+ type: "main",
58
+ },
59
+ ];
60
+
61
+ const benchmarks = [
62
+ {
63
+ title: "IFEval: Instruction-Following Evaluation",
64
+ authors: "Zhou et al.",
65
+ citation: `@misc{zhou2023instructionfollowingevaluationlargelanguage,
66
+ title={Instruction-Following Evaluation for Large Language Models},
67
+ author={Jeffrey Zhou and Tianjian Lu and Swaroop Mishra and Siddhartha Brahma and Sujoy Basu and Yi Luan and Denny Zhou and Le Hou},
68
+ year={2023},
69
+ eprint={2311.07911},
70
+ archivePrefix={arXiv},
71
+ primaryClass={cs.CL},
72
+ url={https://arxiv.org/abs/2311.07911},
73
+ }`,
74
+ url: "https://arxiv.org/abs/2311.07911",
75
+ },
76
+ {
77
+ title: "BBH: Big-Bench Hard",
78
+ authors: "Suzgun et al.",
79
+ citation: `@misc{suzgun2022challengingbigbenchtaskschainofthought,
80
+ title={Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them},
81
+ author={Mirac Suzgun and Nathan Scales and Nathanael Schärli and Sebastian Gehrmann and Yi Tay and Hyung Won Chung and Aakanksha Chowdhery and Quoc V. Le and Ed H. Chi and Denny Zhou and Jason Wei},
82
+ year={2022},
83
+ eprint={2210.09261},
84
+ archivePrefix={arXiv},
85
+ primaryClass={cs.CL},
86
+ url={https://arxiv.org/abs/2210.09261},
87
+ }`,
88
+ url: "https://arxiv.org/abs/2210.09261",
89
+ },
90
+ {
91
+ title: "MATH: Mathematics Aptitude Test of Heuristics - Level 5",
92
+ authors: "Hendrycks et al.",
93
+ citation: `@misc{hendrycks2021measuringmathematicalproblemsolving,
94
+ title={Measuring Mathematical Problem Solving With the MATH Dataset},
95
+ author={Dan Hendrycks and Collin Burns and Saurav Kadavath and Akul Arora and Steven Basart and Eric Tang and Dawn Song and Jacob Steinhardt},
96
+ year={2021},
97
+ eprint={2103.03874},
98
+ archivePrefix={arXiv},
99
+ primaryClass={cs.LG},
100
+ url={https://arxiv.org/abs/2103.03874},
101
+ }`,
102
+ url: "https://arxiv.org/abs/2103.03874",
103
+ },
104
+ {
105
+ title: "GPQA: Graduate-Level Google-Proof Q&A",
106
+ authors: "Rein et al.",
107
+ citation: `@misc{rein2023gpqagraduatelevelgoogleproofqa,
108
+ title={GPQA: A Graduate-Level Google-Proof Q&A Benchmark},
109
+ author={David Rein and Betty Li Hou and Asa Cooper Stickland and Jackson Petty and Richard Yuanzhe Pang and Julien Dirani and Julian Michael and Samuel R. Bowman},
110
+ year={2023},
111
+ eprint={2311.12022},
112
+ archivePrefix={arXiv},
113
+ primaryClass={cs.AI},
114
+ url={https://arxiv.org/abs/2311.12022},
115
+ }`,
116
+ url: "https://arxiv.org/abs/2311.12022",
117
+ },
118
+ {
119
+ title: "MuSR: Multistep Soft Reasoning",
120
+ authors: "Sprague et al.",
121
+ citation: `@misc{sprague2024musrtestinglimitschainofthought,
122
+ title={MuSR: Testing the Limits of Chain-of-thought with Multistep Soft Reasoning},
123
+ author={Zayne Sprague and Xi Ye and Kaj Bostrom and Swarat Chaudhuri and Greg Durrett},
124
+ year={2024},
125
+ eprint={2310.16049},
126
+ archivePrefix={arXiv},
127
+ primaryClass={cs.CL},
128
+ url={https://arxiv.org/abs/2310.16049},
129
+ }`,
130
+ url: "https://arxiv.org/abs/2310.16049",
131
+ },
132
+ {
133
+ title: "MMLU-Pro: Massive Multitask Language Understanding Professional",
134
+ authors: "Wang et al.",
135
+ citation: `@misc{wang2024mmluprorobustchallengingmultitask,
136
+ title={MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark},
137
+ author={Yubo Wang and Xueguang Ma and Ge Zhang and Yuansheng Ni and Abhranil Chandra and Shiguang Guo and Weiming Ren and Aaran Arulraj and Xuan He and Ziyan Jiang and Tianle Li and Max Ku and Kai Wang and Alex Zhuang and Rongqi Fan and Xiang Yue and Wenhu Chen},
138
+ year={2024},
139
+ eprint={2406.01574},
140
+ archivePrefix={arXiv},
141
+ primaryClass={cs.CL},
142
+ url={https://arxiv.org/abs/2406.01574},
143
+ }`,
144
+ url: "https://arxiv.org/abs/2406.01574",
145
+ },
146
+ ];
147
+
148
+ const CitationBlock = ({ citation, title, authors, url, type }) => {
149
+ const handleCopy = () => {
150
+ navigator.clipboard.writeText(citation);
151
+ };
152
+
153
+ return (
154
+ <Paper
155
+ elevation={0}
156
+ sx={{
157
+ p: 3,
158
+ border: "1px solid",
159
+ borderColor: "grey.200",
160
+ backgroundColor: "transparent",
161
+ borderRadius: 2,
162
+ position: "relative",
163
+ }}
164
+ >
165
+ <Box sx={{ mb: 2 }}>
166
+ <Typography variant="h6" sx={{ mb: 0.5 }}>
167
+ {title}
168
+ </Typography>
169
+ <Typography variant="body2" color="text.secondary">
170
+ {authors}
171
+ </Typography>
172
+ {url && (
173
+ <Link
174
+ href={url}
175
+ target="_blank"
176
+ rel="noopener noreferrer"
177
+ sx={{ fontSize: "0.875rem", display: "block", mt: 0.5 }}
178
+ >
179
+ View paper →
180
+ </Link>
181
+ )}
182
+ </Box>
183
+ <Box
184
+ sx={{
185
+ backgroundColor: "grey.900",
186
+ borderRadius: 1,
187
+ p: 2,
188
+ position: "relative",
189
+ }}
190
+ >
191
+ <Tooltip title="Copy citation" placement="top">
192
+ <IconButton
193
+ onClick={handleCopy}
194
+ size="small"
195
+ sx={{
196
+ position: "absolute",
197
+ top: 8,
198
+ right: 8,
199
+ color: "grey.500",
200
+ "&:hover": {
201
+ color: "grey.300",
202
+ },
203
+ }}
204
+ >
205
+ <ContentCopyIcon fontSize="small" />
206
+ </IconButton>
207
+ </Tooltip>
208
+ <Box
209
+ component="pre"
210
+ sx={{
211
+ margin: 0,
212
+ color: "#fff",
213
+ fontSize: "0.875rem",
214
+ fontFamily: "monospace",
215
+ whiteSpace: "pre",
216
+ textAlign: "left",
217
+ overflow: "auto",
218
+ }}
219
+ >
220
+ <code>{citation}</code>
221
+ </Box>
222
+ </Box>
223
+ </Paper>
224
+ );
225
+ };
226
+
227
+ function QuotePage() {
228
+ return (
229
+ <Box sx={{ width: "100%", maxWidth: 1200, margin: "0 auto", py: 4, px: 0 }}>
230
+ <PageHeader
231
+ title="Citation Information"
232
+ subtitle="How to cite the Open LLM Leaderboard in your work"
233
+ />
234
+
235
+ <Alert severity="info" sx={{ mb: 4 }}>
236
+ <Typography variant="body2">
237
+ The citations below include both the leaderboard itself and the
238
+ individual benchmarks used in our evaluation suite.
239
+ </Typography>
240
+ </Alert>
241
+
242
+ <Box sx={{ mb: 6 }}>
243
+ <Typography variant="h5" sx={{ mb: 3 }}>
244
+ Leaderboard
245
+ </Typography>
246
+ <Box sx={{ display: "flex", flexDirection: "column", gap: 3 }}>
247
+ {citations.map((citation, index) => (
248
+ <CitationBlock key={index} {...citation} />
249
+ ))}
250
+ </Box>
251
+ </Box>
252
+
253
+ <Box sx={{ mb: 6 }}>
254
+ <Typography variant="h5" sx={{ mb: 3 }}>
255
+ Benchmarks
256
+ </Typography>
257
+ <Box sx={{ display: "flex", flexDirection: "column", gap: 3 }}>
258
+ {benchmarks.map((benchmark, index) => (
259
+ <CitationBlock key={index} {...benchmark} />
260
+ ))}
261
+ </Box>
262
+ </Box>
263
+
264
+ <Box>
265
+ <Typography variant="h5" sx={{ mb: 3 }}>
266
+ Prior Work
267
+ </Typography>
268
+ <Box sx={{ display: "flex", flexDirection: "column", gap: 3 }}>
269
+ {priorWork.map((citation, index) => (
270
+ <CitationBlock key={index} {...citation} />
271
+ ))}
272
+ </Box>
273
+ </Box>
274
+ </Box>
275
+ );
276
+ }
277
+
278
+ export default QuotePage;