Spaces:
Runtime error
Runtime error
felix
commited on
Commit
Β·
688448f
1
Parent(s):
1dc8c62
sync with upstream
Browse files- app.py +1 -1
- src/display/utils.py +1 -0
- src/leaderboard/filter_models.py +14 -0
- src/leaderboard/read_evals.py +11 -1
app.py
CHANGED
@@ -154,7 +154,7 @@ def filter_models(
|
|
154 |
|
155 |
return filtered_df
|
156 |
|
157 |
-
leaderboard_df = filter_models(leaderboard_df, [t.to_str(" : ") for t in ModelType], list(NUMERIC_INTERVALS.keys()), [i.value.name for i in Precision], False,
|
158 |
|
159 |
import unicodedata
|
160 |
|
|
|
154 |
|
155 |
return filtered_df
|
156 |
|
157 |
+
leaderboard_df = filter_models(leaderboard_df, [t.to_str(" : ") for t in ModelType], list(NUMERIC_INTERVALS.keys()), [i.value.name for i in Precision], False, True)
|
158 |
|
159 |
import unicodedata
|
160 |
|
src/display/utils.py
CHANGED
@@ -73,6 +73,7 @@ baseline_row = {
|
|
73 |
AutoEvalColumn.revision.name: "N/A",
|
74 |
AutoEvalColumn.precision.name: None,
|
75 |
AutoEvalColumn.average.name: 31.0,
|
|
|
76 |
AutoEvalColumn.arc.name: 25.0,
|
77 |
AutoEvalColumn.hellaswag.name: 25.0,
|
78 |
AutoEvalColumn.mmlu.name: 25.0,
|
|
|
73 |
AutoEvalColumn.revision.name: "N/A",
|
74 |
AutoEvalColumn.precision.name: None,
|
75 |
AutoEvalColumn.average.name: 31.0,
|
76 |
+
AutoEvalColumn.merge.name: False,
|
77 |
AutoEvalColumn.arc.name: 25.0,
|
78 |
AutoEvalColumn.hellaswag.name: 25.0,
|
79 |
AutoEvalColumn.mmlu.name: 25.0,
|
src/leaderboard/filter_models.py
CHANGED
@@ -25,6 +25,20 @@ FLAGGED_MODELS = {
|
|
25 |
"janai-hq/trinity-v1": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
26 |
"ignos/LeoScorpius-GreenNode-Alpaca-7B-v1": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
27 |
"fblgit/una-cybertron-7b-v3-OMA": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
# Models which have been requested by orgs to not be submitted on the leaderboard
|
|
|
25 |
"janai-hq/trinity-v1": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
26 |
"ignos/LeoScorpius-GreenNode-Alpaca-7B-v1": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
27 |
"fblgit/una-cybertron-7b-v3-OMA": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
28 |
+
"mncai/mistral-7b-dpo-merge-v1.1": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
29 |
+
"mncai/mistral-7b-dpo-v6": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
30 |
+
"Toten5/LeoScorpius-GreenNode-7B-v1": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
31 |
+
"GreenNode/GreenNodeLM-7B-v1olet": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
32 |
+
"quantumaikr/quantum-dpo-v0.1": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
33 |
+
"quantumaikr/quantum-v0.01": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
34 |
+
"quantumaikr/quantum-trinity-v0.1": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
35 |
+
"mncai/mistral-7b-dpo-v5": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
36 |
+
"cookinai/BruinHermes": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
37 |
+
"jan-ai/Pandora-10.7B-v1": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
38 |
+
"v1olet/v1olet_marcoroni-go-bruins-merge-7B": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
39 |
+
"v1olet/v1olet_merged_dpo_7B_v3": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
40 |
+
"rwitz2/pee": "https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474",
|
41 |
+
|
42 |
}
|
43 |
|
44 |
# Models which have been requested by orgs to not be submitted on the leaderboard
|
src/leaderboard/read_evals.py
CHANGED
@@ -9,6 +9,8 @@ from datetime import datetime
|
|
9 |
from transformers import AutoConfig
|
10 |
import numpy as np
|
11 |
|
|
|
|
|
12 |
from src.display.formatting import make_clickable_model
|
13 |
from src.display.utils import AutoEvalColumn, ModelType, Tasks, Precision, WeightType
|
14 |
from src.submission.check_validity import is_model_on_hub
|
@@ -32,6 +34,7 @@ class EvalResult:
|
|
32 |
num_params: int = 0
|
33 |
date: str = "" # submission date of request file
|
34 |
still_on_hub: bool = False
|
|
|
35 |
|
36 |
@classmethod
|
37 |
def init_from_json_file(self, json_filepath):
|
@@ -59,6 +62,11 @@ class EvalResult:
|
|
59 |
result_key = f"{org}_{model}_{precision.value.name}"
|
60 |
full_model = "/".join(org_and_model)
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
still_on_hub, error, model_config = is_model_on_hub(
|
63 |
full_model, config.get("model_sha", "main"), trust_remote_code=True, test_tokenizer=False
|
64 |
)
|
@@ -105,7 +113,8 @@ class EvalResult:
|
|
105 |
precision=precision,
|
106 |
revision= config.get("model_sha", ""),
|
107 |
still_on_hub=still_on_hub,
|
108 |
-
architecture=architecture
|
|
|
109 |
)
|
110 |
|
111 |
def update_with_request_file(self, requests_path):
|
@@ -131,6 +140,7 @@ class EvalResult:
|
|
131 |
"eval_name": self.eval_name, # not a column, just a save name,
|
132 |
AutoEvalColumn.precision.name: self.precision.value.name,
|
133 |
AutoEvalColumn.model_type.name: self.model_type.value.name,
|
|
|
134 |
AutoEvalColumn.model_type_symbol.name: self.model_type.value.symbol,
|
135 |
AutoEvalColumn.weight_type.name: self.weight_type.value.name,
|
136 |
AutoEvalColumn.architecture.name: self.architecture,
|
|
|
9 |
from transformers import AutoConfig
|
10 |
import numpy as np
|
11 |
|
12 |
+
from huggingface_hub import ModelCard
|
13 |
+
|
14 |
from src.display.formatting import make_clickable_model
|
15 |
from src.display.utils import AutoEvalColumn, ModelType, Tasks, Precision, WeightType
|
16 |
from src.submission.check_validity import is_model_on_hub
|
|
|
34 |
num_params: int = 0
|
35 |
date: str = "" # submission date of request file
|
36 |
still_on_hub: bool = False
|
37 |
+
merge: bool = False
|
38 |
|
39 |
@classmethod
|
40 |
def init_from_json_file(self, json_filepath):
|
|
|
62 |
result_key = f"{org}_{model}_{precision.value.name}"
|
63 |
full_model = "/".join(org_and_model)
|
64 |
|
65 |
+
try:
|
66 |
+
merge = any(t in ["merge", "mergedlm"] for t in ModelCard.load(full_model).data.tags)
|
67 |
+
except Exception:
|
68 |
+
merge = False
|
69 |
+
|
70 |
still_on_hub, error, model_config = is_model_on_hub(
|
71 |
full_model, config.get("model_sha", "main"), trust_remote_code=True, test_tokenizer=False
|
72 |
)
|
|
|
113 |
precision=precision,
|
114 |
revision= config.get("model_sha", ""),
|
115 |
still_on_hub=still_on_hub,
|
116 |
+
architecture=architecture,
|
117 |
+
merge=merge
|
118 |
)
|
119 |
|
120 |
def update_with_request_file(self, requests_path):
|
|
|
140 |
"eval_name": self.eval_name, # not a column, just a save name,
|
141 |
AutoEvalColumn.precision.name: self.precision.value.name,
|
142 |
AutoEvalColumn.model_type.name: self.model_type.value.name,
|
143 |
+
AutoEvalColumn.merge.name: self.merge,
|
144 |
AutoEvalColumn.model_type_symbol.name: self.model_type.value.symbol,
|
145 |
AutoEvalColumn.weight_type.name: self.weight_type.value.name,
|
146 |
AutoEvalColumn.architecture.name: self.architecture,
|