Spaces:
Runtime error
Runtime error
chat tempalte evaluations
Browse files
src/leaderboard/read_evals.py
CHANGED
|
@@ -76,6 +76,9 @@ class EvalResult:
|
|
| 76 |
elif org_and_model=='speakleash/mistral_7B-v2/spkl-only_sft_v2/e1_base/spkl-only_v10wa_7e6-e2_bbc67e89':
|
| 77 |
org_and_model='speakleash/Bielik-7B-Instruct-v0.1'
|
| 78 |
|
|
|
|
|
|
|
|
|
|
| 79 |
org_and_model = org_and_model.split("/", 1)
|
| 80 |
|
| 81 |
if len(org_and_model) == 1:
|
|
@@ -86,10 +89,14 @@ class EvalResult:
|
|
| 86 |
org = org_and_model[0]
|
| 87 |
model = org_and_model[1]
|
| 88 |
result_key = f"{org}_{model}" # _{precision.value.name}
|
| 89 |
-
full_model = "/".join(org_and_model)
|
| 90 |
|
| 91 |
-
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
still_on_hub, err, model_config = is_model_on_hub(
|
| 95 |
full_model.split(',')[0], config.get("model_sha", "main"), trust_remote_code=True, test_tokenizer=False
|
|
|
|
| 76 |
elif org_and_model=='speakleash/mistral_7B-v2/spkl-only_sft_v2/e1_base/spkl-only_v10wa_7e6-e2_bbc67e89':
|
| 77 |
org_and_model='speakleash/Bielik-7B-Instruct-v0.1'
|
| 78 |
|
| 79 |
+
if chat_template:
|
| 80 |
+
org_and_model += ",chat"
|
| 81 |
+
|
| 82 |
org_and_model = org_and_model.split("/", 1)
|
| 83 |
|
| 84 |
if len(org_and_model) == 1:
|
|
|
|
| 89 |
org = org_and_model[0]
|
| 90 |
model = org_and_model[1]
|
| 91 |
result_key = f"{org}_{model}" # _{precision.value.name}
|
|
|
|
| 92 |
|
| 93 |
+
|
| 94 |
+
# if chat_template:
|
| 95 |
+
# result_key = f"{result_key}_chat"
|
| 96 |
+
# model = f"{model},chat"
|
| 97 |
+
# org_and_model= f"{org_and_model[1]},chat"
|
| 98 |
+
|
| 99 |
+
full_model = "/".join(org_and_model)
|
| 100 |
|
| 101 |
still_on_hub, err, model_config = is_model_on_hub(
|
| 102 |
full_model.split(',')[0], config.get("model_sha", "main"), trust_remote_code=True, test_tokenizer=False
|