Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -243,93 +243,6 @@ with demo:
|
|
243 |
with gr.TabItem("π About", elem_id="llm-benchmark-tab-table", id=2):
|
244 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
245 |
|
246 |
-
with gr.TabItem("π Submit here! ", elem_id="llm-benchmark-tab-table", id=3):
|
247 |
-
with gr.Column():
|
248 |
-
with gr.Row():
|
249 |
-
gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")
|
250 |
-
|
251 |
-
with gr.Column():
|
252 |
-
with gr.Accordion(
|
253 |
-
f"β
Finished Evaluations ({len(finished_eval_queue_df)})",
|
254 |
-
open=False,
|
255 |
-
):
|
256 |
-
with gr.Row():
|
257 |
-
finished_eval_table = gr.components.Dataframe(
|
258 |
-
value=finished_eval_queue_df,
|
259 |
-
headers=EVAL_COLS,
|
260 |
-
datatype=EVAL_TYPES,
|
261 |
-
row_count=5,
|
262 |
-
)
|
263 |
-
with gr.Accordion(
|
264 |
-
f"π Running Evaluation Queue ({len(running_eval_queue_df)})",
|
265 |
-
open=False,
|
266 |
-
):
|
267 |
-
with gr.Row():
|
268 |
-
running_eval_table = gr.components.Dataframe(
|
269 |
-
value=running_eval_queue_df,
|
270 |
-
headers=EVAL_COLS,
|
271 |
-
datatype=EVAL_TYPES,
|
272 |
-
row_count=5,
|
273 |
-
)
|
274 |
-
|
275 |
-
with gr.Accordion(
|
276 |
-
f"β³ Pending Evaluation Queue ({len(pending_eval_queue_df)})",
|
277 |
-
open=False,
|
278 |
-
):
|
279 |
-
with gr.Row():
|
280 |
-
pending_eval_table = gr.components.Dataframe(
|
281 |
-
value=pending_eval_queue_df,
|
282 |
-
headers=EVAL_COLS,
|
283 |
-
datatype=EVAL_TYPES,
|
284 |
-
row_count=5,
|
285 |
-
)
|
286 |
-
with gr.Row():
|
287 |
-
gr.Markdown("# βοΈβ¨ Submit your model here!", elem_classes="markdown-text")
|
288 |
-
|
289 |
-
with gr.Row():
|
290 |
-
with gr.Column():
|
291 |
-
model_name_textbox = gr.Textbox(label="Model name")
|
292 |
-
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
293 |
-
model_type = gr.Dropdown(
|
294 |
-
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
295 |
-
label="Model type",
|
296 |
-
multiselect=False,
|
297 |
-
value=None,
|
298 |
-
interactive=True,
|
299 |
-
)
|
300 |
-
|
301 |
-
with gr.Column():
|
302 |
-
precision = gr.Dropdown(
|
303 |
-
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
304 |
-
label="Precision",
|
305 |
-
multiselect=False,
|
306 |
-
value="float16",
|
307 |
-
interactive=True,
|
308 |
-
)
|
309 |
-
weight_type = gr.Dropdown(
|
310 |
-
choices=[i.value.name for i in WeightType],
|
311 |
-
label="Weights type",
|
312 |
-
multiselect=False,
|
313 |
-
value="Original",
|
314 |
-
interactive=True,
|
315 |
-
)
|
316 |
-
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
317 |
-
|
318 |
-
submit_button = gr.Button("Submit Eval")
|
319 |
-
submission_result = gr.Markdown()
|
320 |
-
submit_button.click(
|
321 |
-
add_new_eval,
|
322 |
-
[
|
323 |
-
model_name_textbox,
|
324 |
-
base_model_name_textbox,
|
325 |
-
revision_name_textbox,
|
326 |
-
precision,
|
327 |
-
weight_type,
|
328 |
-
model_type,
|
329 |
-
],
|
330 |
-
submission_result,
|
331 |
-
)
|
332 |
-
|
333 |
with gr.Row():
|
334 |
with gr.Accordion("π Citation", open=False):
|
335 |
citation_button = gr.Textbox(
|
|
|
243 |
with gr.TabItem("π About", elem_id="llm-benchmark-tab-table", id=2):
|
244 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
245 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
with gr.Row():
|
247 |
with gr.Accordion("π Citation", open=False):
|
248 |
citation_button = gr.Textbox(
|