Spaces:
Running
Running
Added attribute Input length (# tokens) to submission
Browse files
app.py
CHANGED
@@ -25,6 +25,7 @@ SUBMISSION_INPUTS = dict.fromkeys((
|
|
25 |
"model_name",
|
26 |
"model_type",
|
27 |
"parameters",
|
|
|
28 |
"precision",
|
29 |
"description",
|
30 |
"link_to_model",
|
@@ -273,6 +274,11 @@ with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
|
|
273 |
)
|
274 |
|
275 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
276 |
submission_inputs["precision"] = gr.Dropdown(
|
277 |
label="Precision",
|
278 |
choices=("float32", "bfloat32", "float16", "bfloat16", "8bit", "4bit"),
|
|
|
25 |
"model_name",
|
26 |
"model_type",
|
27 |
"parameters",
|
28 |
+
"input_length",
|
29 |
"precision",
|
30 |
"description",
|
31 |
"link_to_model",
|
|
|
274 |
)
|
275 |
|
276 |
with gr.Row():
|
277 |
+
submission_inputs["input_length"] = gr.Number(
|
278 |
+
label='Input length (# tokens)',
|
279 |
+
value=0,
|
280 |
+
step=1,
|
281 |
+
)
|
282 |
submission_inputs["precision"] = gr.Dropdown(
|
283 |
label="Precision",
|
284 |
choices=("float32", "bfloat32", "float16", "bfloat16", "8bit", "4bit"),
|
server.py
CHANGED
@@ -177,6 +177,7 @@ class LeaderboardServer:
|
|
177 |
"model_name": "Model name",
|
178 |
"model_type": "Type",
|
179 |
"parameters": "Parameters",
|
|
|
180 |
"precision": "Precision",
|
181 |
"description": "Description",
|
182 |
"link_to_model": "Link to model"
|
|
|
177 |
"model_name": "Model name",
|
178 |
"model_type": "Type",
|
179 |
"parameters": "Parameters",
|
180 |
+
"input_length": "Input length (# tokens)",
|
181 |
"precision": "Precision",
|
182 |
"description": "Description",
|
183 |
"link_to_model": "Link to model"
|