Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -59,10 +59,10 @@ class EvalResult:
|
|
59 |
precision = model_config.get("dtype", "Unknown")
|
60 |
|
61 |
# Add Special Tokens
|
62 |
-
add_special_tokens = str(config.get("pipeline_kwargs").get("add_special_tokens"))
|
63 |
|
64 |
# Get model and org
|
65 |
-
org_and_model = config.get("model_name", config.get("
|
66 |
org_and_model = org_and_model.split("/", 1)
|
67 |
|
68 |
if len(org_and_model) == 1:
|
|
|
59 |
precision = model_config.get("dtype", "Unknown")
|
60 |
|
61 |
# Add Special Tokens
|
62 |
+
add_special_tokens = str(config.get("pipeline_kwargs",{"add_special_tokens":"Unknown"}).get("add_special_tokens"))
|
63 |
|
64 |
# Get model and org
|
65 |
+
org_and_model = config.get("model_name", config.get("offline_inference").get("model_name", None))
|
66 |
org_and_model = org_and_model.split("/", 1)
|
67 |
|
68 |
if len(org_and_model) == 1:
|