Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -46,12 +46,6 @@ class EvalResult:
|
|
46 |
metainfo = config.get("metainfo", {})
|
47 |
model_config = config.get("model", {})
|
48 |
|
49 |
-
if "config" not in data:
|
50 |
-
print(f"No 'config' key found in JSON file: {json_filepath}")
|
51 |
-
if "metainfo" not in config:
|
52 |
-
print(f"No 'metainfo' key found in config of JSON file: {json_filepath}")
|
53 |
-
|
54 |
-
|
55 |
# Get model type from metainfo
|
56 |
# model_type_str = metainfo.get("model_type", "")
|
57 |
# model_type = ModelType.from_str(model_type_str)
|
@@ -188,12 +182,6 @@ def get_request_file_for_model(requests_path, model_name, precision):
|
|
188 |
)
|
189 |
request_files = glob.glob(request_files)
|
190 |
|
191 |
-
if precision == "Unknown":
|
192 |
-
print("Precision is Unknown, selecting the first available FINISHED request file.")
|
193 |
-
# デフォルトのFINISHEDファイルが選ばれているかの確認
|
194 |
-
print(f"Using the following request file: {request_file}")
|
195 |
-
|
196 |
-
|
197 |
# Select correct request file (precision)
|
198 |
request_file = ""
|
199 |
request_files = sorted(request_files, reverse=True)
|
|
|
46 |
metainfo = config.get("metainfo", {})
|
47 |
model_config = config.get("model", {})
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
# Get model type from metainfo
|
50 |
# model_type_str = metainfo.get("model_type", "")
|
51 |
# model_type = ModelType.from_str(model_type_str)
|
|
|
182 |
)
|
183 |
request_files = glob.glob(request_files)
|
184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
# Select correct request file (precision)
|
186 |
request_file = ""
|
187 |
request_files = sorted(request_files, reverse=True)
|