Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -122,10 +122,8 @@ class EvalResult:
|
|
122 |
"""Finds the relevant request file for the current model and updates info with it"""
|
123 |
request_file = get_request_file_for_model(requests_path, self.full_model, self.precision)
|
124 |
if request_file:
|
125 |
-
print(f"Using request file: {request_file}")
|
126 |
with open(request_file, "r") as f:
|
127 |
request_data = json.load(f)
|
128 |
-
print(f"Request file content: {request_data}")
|
129 |
else:
|
130 |
print("No request file found.")
|
131 |
|
@@ -138,7 +136,6 @@ class EvalResult:
|
|
138 |
self.likes = request.get("likes", 0)
|
139 |
self.num_params = request.get("params", 0)
|
140 |
self.date = request.get("submitted_time", "")
|
141 |
-
print(f"Updated model type: {self.model_type}, Weight type: {self.weight_type}, License: {self.license}")
|
142 |
except Exception:
|
143 |
print(f"Could not find request file for {self.org}/{self.model} with precision {self.precision}")
|
144 |
|
@@ -188,7 +185,6 @@ def get_request_file_for_model(requests_path, model_name, precision):
|
|
188 |
for tmp_request_file in request_files:
|
189 |
with open(tmp_request_file, "r") as f:
|
190 |
req_content = json.load(f)
|
191 |
-
print(f"Request file content: {req_content}")
|
192 |
if (
|
193 |
req_content["status"] in ["FINISHED"]
|
194 |
and req_content["precision"] == precision.split(".")[-1]
|
|
|
122 |
"""Finds the relevant request file for the current model and updates info with it"""
|
123 |
request_file = get_request_file_for_model(requests_path, self.full_model, self.precision)
|
124 |
if request_file:
|
|
|
125 |
with open(request_file, "r") as f:
|
126 |
request_data = json.load(f)
|
|
|
127 |
else:
|
128 |
print("No request file found.")
|
129 |
|
|
|
136 |
self.likes = request.get("likes", 0)
|
137 |
self.num_params = request.get("params", 0)
|
138 |
self.date = request.get("submitted_time", "")
|
|
|
139 |
except Exception:
|
140 |
print(f"Could not find request file for {self.org}/{self.model} with precision {self.precision}")
|
141 |
|
|
|
185 |
for tmp_request_file in request_files:
|
186 |
with open(tmp_request_file, "r") as f:
|
187 |
req_content = json.load(f)
|
|
|
188 |
if (
|
189 |
req_content["status"] in ["FINISHED"]
|
190 |
and req_content["precision"] == precision.split(".")[-1]
|