Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Miaoran000
commited on
Merge branch 'main' of hf.co:spaces/vectara/leaderboard
Browse files- README.md +1 -1
- app.py +25 -25
- requirements.txt +3 -3
- src/display/utils.py +7 -7
- src/leaderboard/read_evals.py +7 -7
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🥇
|
|
4 |
colorFrom: green
|
5 |
colorTo: indigo
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: true
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: green
|
5 |
colorTo: indigo
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.44.0
|
8 |
app_file: app.py
|
9 |
pinned: true
|
10 |
license: apache-2.0
|
app.py
CHANGED
@@ -144,10 +144,10 @@ with demo:
|
|
144 |
elem_id="column-select",
|
145 |
interactive=True,
|
146 |
)
|
147 |
-
with gr.Row():
|
148 |
-
deleted_models_visibility = gr.Checkbox(
|
149 |
-
value=False, label="Show gated/private/deleted models", interactive=True
|
150 |
-
)
|
151 |
with gr.Column(min_width=320):
|
152 |
#with gr.Box(elem_id="box-filter"):
|
153 |
filter_columns_type = gr.CheckboxGroup(
|
@@ -157,20 +157,20 @@ with demo:
|
|
157 |
interactive=True,
|
158 |
elem_id="filter-columns-type",
|
159 |
)
|
160 |
-
filter_columns_precision = gr.CheckboxGroup(
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
)
|
167 |
-
filter_columns_size = gr.CheckboxGroup(
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
)
|
174 |
|
175 |
leaderboard_table = gr.components.Dataframe(
|
176 |
value=leaderboard_df[
|
@@ -199,23 +199,23 @@ with demo:
|
|
199 |
hidden_leaderboard_table_for_search,
|
200 |
shown_columns,
|
201 |
filter_columns_type,
|
202 |
-
filter_columns_precision,
|
203 |
-
filter_columns_size,
|
204 |
-
deleted_models_visibility,
|
205 |
search_bar,
|
206 |
],
|
207 |
leaderboard_table,
|
208 |
)
|
209 |
-
for selector in [shown_columns, filter_columns_type
|
210 |
selector.change(
|
211 |
update_table,
|
212 |
[
|
213 |
hidden_leaderboard_table_for_search,
|
214 |
shown_columns,
|
215 |
filter_columns_type,
|
216 |
-
filter_columns_precision,
|
217 |
-
filter_columns_size,
|
218 |
-
deleted_models_visibility,
|
219 |
search_bar,
|
220 |
],
|
221 |
leaderboard_table,
|
|
|
144 |
elem_id="column-select",
|
145 |
interactive=True,
|
146 |
)
|
147 |
+
# with gr.Row():
|
148 |
+
# deleted_models_visibility = gr.Checkbox(
|
149 |
+
# value=False, label="Show gated/private/deleted models", interactive=True
|
150 |
+
# )
|
151 |
with gr.Column(min_width=320):
|
152 |
#with gr.Box(elem_id="box-filter"):
|
153 |
filter_columns_type = gr.CheckboxGroup(
|
|
|
157 |
interactive=True,
|
158 |
elem_id="filter-columns-type",
|
159 |
)
|
160 |
+
# filter_columns_precision = gr.CheckboxGroup(
|
161 |
+
# label="Precision",
|
162 |
+
# choices=[i.value.name for i in utils.Precision],
|
163 |
+
# value=[i.value.name for i in utils.Precision],
|
164 |
+
# interactive=True,
|
165 |
+
# elem_id="filter-columns-precision",
|
166 |
+
# )
|
167 |
+
# filter_columns_size = gr.CheckboxGroup(
|
168 |
+
# label="Model sizes (in billions of parameters)",
|
169 |
+
# choices=list(utils.NUMERIC_INTERVALS.keys()),
|
170 |
+
# value=list(utils.NUMERIC_INTERVALS.keys()),
|
171 |
+
# interactive=True,
|
172 |
+
# elem_id="filter-columns-size",
|
173 |
+
# )
|
174 |
|
175 |
leaderboard_table = gr.components.Dataframe(
|
176 |
value=leaderboard_df[
|
|
|
199 |
hidden_leaderboard_table_for_search,
|
200 |
shown_columns,
|
201 |
filter_columns_type,
|
202 |
+
# filter_columns_precision,
|
203 |
+
# filter_columns_size,
|
204 |
+
# deleted_models_visibility,
|
205 |
search_bar,
|
206 |
],
|
207 |
leaderboard_table,
|
208 |
)
|
209 |
+
for selector in [shown_columns, filter_columns_type]: #, filter_columns_precision, filter_columns_size, deleted_models_visibility]:
|
210 |
selector.change(
|
211 |
update_table,
|
212 |
[
|
213 |
hidden_leaderboard_table_for_search,
|
214 |
shown_columns,
|
215 |
filter_columns_type,
|
216 |
+
# filter_columns_precision,
|
217 |
+
# filter_columns_size,
|
218 |
+
# deleted_models_visibility,
|
219 |
search_bar,
|
220 |
],
|
221 |
leaderboard_table,
|
requirements.txt
CHANGED
@@ -2,15 +2,15 @@ APScheduler==3.10.1
|
|
2 |
black==23.11.0
|
3 |
click==8.1.3
|
4 |
datasets==2.14.5
|
5 |
-
gradio==4.
|
6 |
-
gradio_client==
|
7 |
huggingface-hub>=0.18.0
|
8 |
litellm==1.15.1
|
9 |
matplotlib==3.7.1
|
10 |
numpy==1.24.2
|
11 |
pandas==2.0.0
|
12 |
python-dateutil==2.8.2
|
13 |
-
requests==2.
|
14 |
tqdm==4.65.0
|
15 |
tokenizers>=0.15.0
|
16 |
sentence-transformers==2.2.2
|
|
|
2 |
black==23.11.0
|
3 |
click==8.1.3
|
4 |
datasets==2.14.5
|
5 |
+
gradio==4.44.0
|
6 |
+
gradio_client==1.3.0
|
7 |
huggingface-hub>=0.18.0
|
8 |
litellm==1.15.1
|
9 |
matplotlib==3.7.1
|
10 |
numpy==1.24.2
|
11 |
pandas==2.0.0
|
12 |
python-dateutil==2.8.2
|
13 |
+
requests==2.31.0
|
14 |
tqdm==4.65.0
|
15 |
tokenizers>=0.15.0
|
16 |
sentence-transformers==2.2.2
|
src/display/utils.py
CHANGED
@@ -33,14 +33,14 @@ for task in Tasks:
|
|
33 |
|
34 |
# Model information
|
35 |
auto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type", "str", False)])
|
36 |
-
auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
|
37 |
auto_eval_column_dict.append(["weight_type", ColumnContent, ColumnContent("Weight type", "str", False, True)])
|
38 |
-
auto_eval_column_dict.append(["precision", ColumnContent, ColumnContent("Precision", "str", False)])
|
39 |
-
auto_eval_column_dict.append(["license", ColumnContent, ColumnContent("Hub License", "str", False)])
|
40 |
-
auto_eval_column_dict.append(["params", ColumnContent, ColumnContent("#Params (B)", "number", False)])
|
41 |
-
auto_eval_column_dict.append(["likes", ColumnContent, ColumnContent("Hub ❤️", "number", False)])
|
42 |
-
auto_eval_column_dict.append(["still_on_hub", ColumnContent, ColumnContent("Available on the hub", "bool", False)])
|
43 |
-
auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
|
44 |
# Dummy column for the search bar (hidden by the custom CSS)
|
45 |
auto_eval_column_dict.append(["dummy", ColumnContent, ColumnContent("model_name_for_query", "str", False, dummy=True)])
|
46 |
|
|
|
33 |
|
34 |
# Model information
|
35 |
auto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type", "str", False)])
|
36 |
+
#auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False)])
|
37 |
auto_eval_column_dict.append(["weight_type", ColumnContent, ColumnContent("Weight type", "str", False, True)])
|
38 |
+
#auto_eval_column_dict.append(["precision", ColumnContent, ColumnContent("Precision", "str", False)])
|
39 |
+
#auto_eval_column_dict.append(["license", ColumnContent, ColumnContent("Hub License", "str", False)])
|
40 |
+
#auto_eval_column_dict.append(["params", ColumnContent, ColumnContent("#Params (B)", "number", False)])
|
41 |
+
#auto_eval_column_dict.append(["likes", ColumnContent, ColumnContent("Hub ❤️", "number", False)])
|
42 |
+
#auto_eval_column_dict.append(["still_on_hub", ColumnContent, ColumnContent("Available on the hub", "bool", False)])
|
43 |
+
#auto_eval_column_dict.append(["revision", ColumnContent, ColumnContent("Model sha", "str", False, False)])
|
44 |
# Dummy column for the search bar (hidden by the custom CSS)
|
45 |
auto_eval_column_dict.append(["dummy", ColumnContent, ColumnContent("model_name_for_query", "str", False, dummy=True)])
|
46 |
|
src/leaderboard/read_evals.py
CHANGED
@@ -104,18 +104,18 @@ class EvalResult:
|
|
104 |
|
105 |
data_dict = {
|
106 |
"eval_name": self.eval_name, # not a column, just a save name,
|
107 |
-
utils.AutoEvalColumn.precision.name: self.precision.value.name,
|
108 |
utils.AutoEvalColumn.model_type.name: self.model_type.value.name,
|
109 |
utils.AutoEvalColumn.model_type_symbol.name: self.model_type.value.symbol,
|
110 |
utils.AutoEvalColumn.weight_type.name: self.weight_type.value.name,
|
111 |
-
utils.AutoEvalColumn.architecture.name: self.architecture,
|
112 |
utils.AutoEvalColumn.model.name: formatting.make_clickable_model(self.full_model),
|
113 |
utils.AutoEvalColumn.dummy.name: self.full_model,
|
114 |
-
utils.AutoEvalColumn.revision.name: self.revision,
|
115 |
-
utils.AutoEvalColumn.license.name: self.license,
|
116 |
-
utils.AutoEvalColumn.likes.name: self.likes,
|
117 |
-
utils.AutoEvalColumn.params.name: self.num_params,
|
118 |
-
utils.AutoEvalColumn.still_on_hub.name: self.still_on_hub,
|
119 |
}
|
120 |
|
121 |
for task in utils.Tasks:
|
|
|
104 |
|
105 |
data_dict = {
|
106 |
"eval_name": self.eval_name, # not a column, just a save name,
|
107 |
+
# utils.AutoEvalColumn.precision.name: self.precision.value.name,
|
108 |
utils.AutoEvalColumn.model_type.name: self.model_type.value.name,
|
109 |
utils.AutoEvalColumn.model_type_symbol.name: self.model_type.value.symbol,
|
110 |
utils.AutoEvalColumn.weight_type.name: self.weight_type.value.name,
|
111 |
+
# utils.AutoEvalColumn.architecture.name: self.architecture,
|
112 |
utils.AutoEvalColumn.model.name: formatting.make_clickable_model(self.full_model),
|
113 |
utils.AutoEvalColumn.dummy.name: self.full_model,
|
114 |
+
# utils.AutoEvalColumn.revision.name: self.revision,
|
115 |
+
# utils.AutoEvalColumn.license.name: self.license,
|
116 |
+
# utils.AutoEvalColumn.likes.name: self.likes,
|
117 |
+
# utils.AutoEvalColumn.params.name: self.num_params,
|
118 |
+
# utils.AutoEvalColumn.still_on_hub.name: self.still_on_hub,
|
119 |
}
|
120 |
|
121 |
for task in utils.Tasks:
|