Spaces:
Runtime error
Runtime error
Aaron Mueller
commited on
Commit
·
b22b838
1
Parent(s):
fe39177
track bug
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -18,6 +18,7 @@ class EvalResult:
|
|
18 |
"""
|
19 |
eval_name: str # org_model_track (uid)
|
20 |
full_model: str # org/model (path on hub)
|
|
|
21 |
org: str
|
22 |
model: str
|
23 |
revision: str # commit hash, "" if main
|
@@ -33,7 +34,6 @@ class EvalResult:
|
|
33 |
|
34 |
config = data.get("config")
|
35 |
track = data.get("track")
|
36 |
-
self.track = track
|
37 |
|
38 |
# Get model and org
|
39 |
org_and_model = config.get("model_name", config.get("model_args", None))
|
@@ -79,6 +79,7 @@ class EvalResult:
|
|
79 |
return self(
|
80 |
eval_name=eval_name,
|
81 |
full_model=full_model,
|
|
|
82 |
org=org,
|
83 |
model=model,
|
84 |
results=results,
|
@@ -88,7 +89,7 @@ class EvalResult:
|
|
88 |
|
89 |
def update_with_request_file(self, requests_path):
|
90 |
"""Finds the relevant request file for the current model and updates info with it"""
|
91 |
-
request_file = get_request_file_for_model(requests_path, self.
|
92 |
|
93 |
try:
|
94 |
with open(request_file, "r") as f:
|
|
|
18 |
"""
|
19 |
eval_name: str # org_model_track (uid)
|
20 |
full_model: str # org/model (path on hub)
|
21 |
+
track: str
|
22 |
org: str
|
23 |
model: str
|
24 |
revision: str # commit hash, "" if main
|
|
|
34 |
|
35 |
config = data.get("config")
|
36 |
track = data.get("track")
|
|
|
37 |
|
38 |
# Get model and org
|
39 |
org_and_model = config.get("model_name", config.get("model_args", None))
|
|
|
79 |
return self(
|
80 |
eval_name=eval_name,
|
81 |
full_model=full_model,
|
82 |
+
track=track,
|
83 |
org=org,
|
84 |
model=model,
|
85 |
results=results,
|
|
|
89 |
|
90 |
def update_with_request_file(self, requests_path):
|
91 |
"""Finds the relevant request file for the current model and updates info with it"""
|
92 |
+
request_file = get_request_file_for_model(requests_path, self.full_name)
|
93 |
|
94 |
try:
|
95 |
with open(request_file, "r") as f:
|