Spaces:
Running
Running
BenchmarkBot
commited on
Commit
Β·
35b1013
1
Parent(s):
377bf0e
seperating tabs
Browse files
app.py
CHANGED
@@ -94,13 +94,14 @@ with demo:
|
|
94 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
95 |
|
96 |
with gr.Row():
|
97 |
-
with gr.
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
104 |
|
105 |
backend_checkboxes = gr.CheckboxGroup(
|
106 |
choices=["pytorch", "onnxruntime"],
|
@@ -164,10 +165,12 @@ with demo:
|
|
164 |
visible=False,
|
165 |
)
|
166 |
|
|
|
167 |
MULTI_A100_TEXT = """<h3>Multi-GPU (4xA100):</h3>
|
168 |
<ul>
|
169 |
<li>Singleton Batch (1)</li>
|
170 |
<li>Thousand Tokens (1000)</li>
|
|
|
171 |
</ul>"""
|
172 |
gr.HTML(MULTI_A100_TEXT)
|
173 |
multi_A100_df = get_benchmark_df(benchmark="4xA100-80GB")
|
@@ -186,30 +189,30 @@ with demo:
|
|
186 |
visible=False,
|
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 |
with gr.Row():
|
215 |
with gr.Accordion("π Citation", open=False):
|
|
|
94 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
95 |
|
96 |
with gr.Row():
|
97 |
+
with gr.Column(scale=1):
|
98 |
+
with gr.Box(elem_id="search-bar-table-box"):
|
99 |
+
search_bar = gr.Textbox(
|
100 |
+
label="Search π",
|
101 |
+
info="Search for a model",
|
102 |
+
placeholder="Write and press ENTER...",
|
103 |
+
elem_id="search-bar",
|
104 |
+
)
|
105 |
|
106 |
backend_checkboxes = gr.CheckboxGroup(
|
107 |
choices=["pytorch", "onnxruntime"],
|
|
|
165 |
visible=False,
|
166 |
)
|
167 |
|
168 |
+
with gr.TabItem("π₯οΈ 4xA100-80GB Evaluation ποΈ", elem_id="A100-evaluation", id=1):
|
169 |
MULTI_A100_TEXT = """<h3>Multi-GPU (4xA100):</h3>
|
170 |
<ul>
|
171 |
<li>Singleton Batch (1)</li>
|
172 |
<li>Thousand Tokens (1000)</li>
|
173 |
+
<li>Using <a href="https://huggingface.co/docs/accelerate" target="_blank">Accelerate</a>'s Auto Device Map</li>
|
174 |
</ul>"""
|
175 |
gr.HTML(MULTI_A100_TEXT)
|
176 |
multi_A100_df = get_benchmark_df(benchmark="4xA100-80GB")
|
|
|
189 |
visible=False,
|
190 |
)
|
191 |
|
192 |
+
# Callbacks
|
193 |
+
search_bar.submit(
|
194 |
+
search_tables,
|
195 |
+
[single_A100_for_search, multi_A100_for_search, search_bar],
|
196 |
+
[single_A100_leaderboard, multi_A100_leaderboard],
|
197 |
+
)
|
198 |
+
backend_checkboxes.select(
|
199 |
+
filter_tables,
|
200 |
+
[single_A100_for_search, multi_A100_for_search,
|
201 |
+
backend_checkboxes, datatype_checkboxes, threshold_slider],
|
202 |
+
[single_A100_leaderboard, multi_A100_leaderboard],
|
203 |
+
)
|
204 |
+
datatype_checkboxes.select(
|
205 |
+
filter_tables,
|
206 |
+
[single_A100_for_search, multi_A100_for_search,
|
207 |
+
backend_checkboxes, datatype_checkboxes, threshold_slider],
|
208 |
+
[single_A100_leaderboard, multi_A100_leaderboard],
|
209 |
+
)
|
210 |
+
threshold_slider.release(
|
211 |
+
filter_tables,
|
212 |
+
[single_A100_for_search, multi_A100_for_search,
|
213 |
+
backend_checkboxes, datatype_checkboxes, threshold_slider],
|
214 |
+
[single_A100_leaderboard, multi_A100_leaderboard],
|
215 |
+
)
|
216 |
|
217 |
with gr.Row():
|
218 |
with gr.Accordion("π Citation", open=False):
|