Spaces:
Running
Running
BenchmarkBot
commited on
Commit
β’
e471c70
1
Parent(s):
192ade7
maitenance
Browse files
app.py
CHANGED
@@ -230,10 +230,10 @@ def filter_query(
|
|
230 |
return filtered_table, filtered_plot
|
231 |
|
232 |
|
233 |
-
# Dataframes
|
234 |
-
A100_df = get_benchmark_df(benchmark="1xA100-80GB")
|
235 |
-
A100_table = get_benchmark_table(A100_df)
|
236 |
-
A100_plot = get_benchmark_plot(A100_df)
|
237 |
|
238 |
# Demo interface
|
239 |
demo = gr.Blocks(css=custom_css)
|
@@ -244,126 +244,132 @@ with demo:
|
|
244 |
# introduction text
|
245 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="descriptive-text")
|
246 |
|
247 |
-
#
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
"π Scroll to the right π for more columns.", elem_id="descriptive-text"
|
252 |
-
)
|
253 |
-
# Original leaderboard table
|
254 |
-
A100_leaderboard = gr.components.Dataframe(
|
255 |
-
value=A100_table,
|
256 |
-
datatype=ALL_COLUMNS_DATATYPES,
|
257 |
-
headers=list(ALL_COLUMNS_MAPPING.values()),
|
258 |
-
elem_id="1xA100-table",
|
259 |
-
)
|
260 |
-
|
261 |
-
with gr.TabItem("π₯οΈ A100-80GB Plot π", id=1):
|
262 |
-
gr.HTML(
|
263 |
-
"π Hover over the points π for additional information.",
|
264 |
-
elem_id="descriptive-text",
|
265 |
-
)
|
266 |
-
# Original leaderboard plot
|
267 |
-
A100_plotly = gr.components.Plot(
|
268 |
-
value=A100_plot,
|
269 |
-
elem_id="1xA100-plot",
|
270 |
-
show_label=False,
|
271 |
-
)
|
272 |
-
|
273 |
-
with gr.TabItem("Control Panel ποΈ", id=2):
|
274 |
-
gr.HTML(
|
275 |
-
"Use this control panel to filter the leaderboard's table and plot.",
|
276 |
-
elem_id="descriptive-text",
|
277 |
-
)
|
278 |
-
# control panel interface
|
279 |
-
with gr.Row():
|
280 |
-
with gr.Column(scale=1):
|
281 |
-
search_bar = gr.Textbox(
|
282 |
-
label="Model π€",
|
283 |
-
info="π Search for a model name",
|
284 |
-
elem_id="search-bar",
|
285 |
-
)
|
286 |
-
with gr.Column(scale=1):
|
287 |
-
with gr.Box():
|
288 |
-
score_slider = gr.Slider(
|
289 |
-
label="Open LLM Score π",
|
290 |
-
info="ποΈ Slide to minimum Open LLM score",
|
291 |
-
value=0,
|
292 |
-
elem_id="threshold-slider",
|
293 |
-
)
|
294 |
-
# with gr.Column(scale=1):
|
295 |
-
# with gr.Box():
|
296 |
-
# memory_slider = gr.Slider(
|
297 |
-
# label="Peak Memory (MB) π",
|
298 |
-
# info="ποΈ Slide to maximum Peak Memory",
|
299 |
-
# minimum=0,
|
300 |
-
# maximum=80 * 1024,
|
301 |
-
# value=80 * 1024,
|
302 |
-
# elem_id="memory-slider",
|
303 |
-
# )
|
304 |
-
|
305 |
-
with gr.Row():
|
306 |
-
with gr.Column(scale=1):
|
307 |
-
backend_checkboxes = gr.CheckboxGroup(
|
308 |
-
label="Backends π",
|
309 |
-
choices=["pytorch", "onnxruntime"],
|
310 |
-
value=["pytorch", "onnxruntime"],
|
311 |
-
info="βοΈ Select the backends",
|
312 |
-
elem_id="backend-checkboxes",
|
313 |
-
)
|
314 |
-
with gr.Column(scale=1):
|
315 |
-
datatype_checkboxes = gr.CheckboxGroup(
|
316 |
-
label="Dtypes π₯",
|
317 |
-
choices=["float32", "float16"],
|
318 |
-
value=["float32", "float16"],
|
319 |
-
info="βοΈ Select the load dtypes",
|
320 |
-
elem_id="dtype-checkboxes",
|
321 |
-
)
|
322 |
-
with gr.Column(scale=2):
|
323 |
-
optimizations_checkboxes = gr.CheckboxGroup(
|
324 |
-
label="Optimizations π οΈ",
|
325 |
-
choices=["None", "BetterTransformer", "LLM.int8", "LLM.fp4"],
|
326 |
-
value=["None", "BetterTransformer", "LLM.int8", "LLM.fp4"],
|
327 |
-
info="βοΈ Select the optimizations",
|
328 |
-
elem_id="optimizations-checkboxes",
|
329 |
-
)
|
330 |
-
|
331 |
-
with gr.Row():
|
332 |
-
filter_button = gr.Button(
|
333 |
-
value="Filter π",
|
334 |
-
elem_id="filter-button",
|
335 |
-
)
|
336 |
-
|
337 |
-
with gr.TabItem("About π", id=3):
|
338 |
-
gr.HTML(ABOUT_TEXT, elem_classes="descriptive-text")
|
339 |
-
gr.Markdown(EXAMPLE_CONFIG_TEXT, elem_classes="descriptive-text")
|
340 |
-
|
341 |
-
demo.load(
|
342 |
-
change_tab,
|
343 |
-
A100_tabs,
|
344 |
-
_js=custom_js,
|
345 |
)
|
346 |
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
-
with gr.Row():
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
|
368 |
|
369 |
# Restart space every hour
|
|
|
230 |
return filtered_table, filtered_plot
|
231 |
|
232 |
|
233 |
+
# # Dataframes
|
234 |
+
# A100_df = get_benchmark_df(benchmark="1xA100-80GB")
|
235 |
+
# A100_table = get_benchmark_table(A100_df)
|
236 |
+
# A100_plot = get_benchmark_plot(A100_df)
|
237 |
|
238 |
# Demo interface
|
239 |
demo = gr.Blocks(css=custom_css)
|
|
|
244 |
# introduction text
|
245 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="descriptive-text")
|
246 |
|
247 |
+
# maitnenance text
|
248 |
+
gr.HTML(
|
249 |
+
"π§ This leaderboard is currently under maintenance. π§",
|
250 |
+
elem_classes="descriptive-text",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
)
|
252 |
|
253 |
+
# # leaderboard tabs
|
254 |
+
# with gr.Tabs(elem_classes="A100-tabs") as A100_tabs:
|
255 |
+
# with gr.TabItem("π₯οΈ A100-80GB Benchmark π", id=0):
|
256 |
+
# gr.HTML(
|
257 |
+
# "π Scroll to the right π for more columns.", elem_id="descriptive-text"
|
258 |
+
# )
|
259 |
+
# # Original leaderboard table
|
260 |
+
# A100_leaderboard = gr.components.Dataframe(
|
261 |
+
# value=A100_table,
|
262 |
+
# datatype=ALL_COLUMNS_DATATYPES,
|
263 |
+
# headers=list(ALL_COLUMNS_MAPPING.values()),
|
264 |
+
# elem_id="1xA100-table",
|
265 |
+
# )
|
266 |
+
|
267 |
+
# with gr.TabItem("π₯οΈ A100-80GB Plot π", id=1):
|
268 |
+
# gr.HTML(
|
269 |
+
# "π Hover over the points π for additional information.",
|
270 |
+
# elem_id="descriptive-text",
|
271 |
+
# )
|
272 |
+
# # Original leaderboard plot
|
273 |
+
# A100_plotly = gr.components.Plot(
|
274 |
+
# value=A100_plot,
|
275 |
+
# elem_id="1xA100-plot",
|
276 |
+
# show_label=False,
|
277 |
+
# )
|
278 |
+
|
279 |
+
# with gr.TabItem("Control Panel ποΈ", id=2):
|
280 |
+
# gr.HTML(
|
281 |
+
# "Use this control panel to filter the leaderboard's table and plot.",
|
282 |
+
# elem_id="descriptive-text",
|
283 |
+
# )
|
284 |
+
# # control panel interface
|
285 |
+
# with gr.Row():
|
286 |
+
# with gr.Column(scale=1):
|
287 |
+
# search_bar = gr.Textbox(
|
288 |
+
# label="Model π€",
|
289 |
+
# info="π Search for a model name",
|
290 |
+
# elem_id="search-bar",
|
291 |
+
# )
|
292 |
+
# with gr.Column(scale=1):
|
293 |
+
# with gr.Box():
|
294 |
+
# score_slider = gr.Slider(
|
295 |
+
# label="Open LLM Score π",
|
296 |
+
# info="ποΈ Slide to minimum Open LLM score",
|
297 |
+
# value=0,
|
298 |
+
# elem_id="threshold-slider",
|
299 |
+
# )
|
300 |
+
# # with gr.Column(scale=1):
|
301 |
+
# # with gr.Box():
|
302 |
+
# # memory_slider = gr.Slider(
|
303 |
+
# # label="Peak Memory (MB) π",
|
304 |
+
# # info="ποΈ Slide to maximum Peak Memory",
|
305 |
+
# # minimum=0,
|
306 |
+
# # maximum=80 * 1024,
|
307 |
+
# # value=80 * 1024,
|
308 |
+
# # elem_id="memory-slider",
|
309 |
+
# # )
|
310 |
+
|
311 |
+
# with gr.Row():
|
312 |
+
# with gr.Column(scale=1):
|
313 |
+
# backend_checkboxes = gr.CheckboxGroup(
|
314 |
+
# label="Backends π",
|
315 |
+
# choices=["pytorch", "onnxruntime"],
|
316 |
+
# value=["pytorch", "onnxruntime"],
|
317 |
+
# info="βοΈ Select the backends",
|
318 |
+
# elem_id="backend-checkboxes",
|
319 |
+
# )
|
320 |
+
# with gr.Column(scale=1):
|
321 |
+
# datatype_checkboxes = gr.CheckboxGroup(
|
322 |
+
# label="Dtypes π₯",
|
323 |
+
# choices=["float32", "float16"],
|
324 |
+
# value=["float32", "float16"],
|
325 |
+
# info="βοΈ Select the load dtypes",
|
326 |
+
# elem_id="dtype-checkboxes",
|
327 |
+
# )
|
328 |
+
# with gr.Column(scale=2):
|
329 |
+
# optimizations_checkboxes = gr.CheckboxGroup(
|
330 |
+
# label="Optimizations π οΈ",
|
331 |
+
# choices=["None", "BetterTransformer", "LLM.int8", "LLM.fp4"],
|
332 |
+
# value=["None", "BetterTransformer", "LLM.int8", "LLM.fp4"],
|
333 |
+
# info="βοΈ Select the optimizations",
|
334 |
+
# elem_id="optimizations-checkboxes",
|
335 |
+
# )
|
336 |
+
|
337 |
+
# with gr.Row():
|
338 |
+
# filter_button = gr.Button(
|
339 |
+
# value="Filter π",
|
340 |
+
# elem_id="filter-button",
|
341 |
+
# )
|
342 |
+
|
343 |
+
# with gr.TabItem("About π", id=3):
|
344 |
+
# gr.HTML(ABOUT_TEXT, elem_classes="descriptive-text")
|
345 |
+
# gr.Markdown(EXAMPLE_CONFIG_TEXT, elem_classes="descriptive-text")
|
346 |
+
|
347 |
+
# demo.load(
|
348 |
+
# change_tab,
|
349 |
+
# A100_tabs,
|
350 |
+
# _js=custom_js,
|
351 |
+
# )
|
352 |
+
|
353 |
+
# filter_button.click(
|
354 |
+
# filter_query,
|
355 |
+
# [
|
356 |
+
# search_bar,
|
357 |
+
# backend_checkboxes,
|
358 |
+
# datatype_checkboxes,
|
359 |
+
# optimizations_checkboxes,
|
360 |
+
# score_slider,
|
361 |
+
# # memory_slider,
|
362 |
+
# ],
|
363 |
+
# [A100_leaderboard, A100_plotly],
|
364 |
+
# )
|
365 |
|
366 |
+
# with gr.Row():
|
367 |
+
# with gr.Accordion("π Citation", open=False):
|
368 |
+
# citation_button = gr.Textbox(
|
369 |
+
# value=CITATION_BUTTON_TEXT,
|
370 |
+
# label=CITATION_BUTTON_LABEL,
|
371 |
+
# elem_id="citation-button",
|
372 |
+
# ).style(show_copy_button=True)
|
373 |
|
374 |
|
375 |
# Restart space every hour
|