Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -46,6 +46,11 @@ class EvalResult:
|
|
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)
|
@@ -65,13 +70,6 @@ class EvalResult:
|
|
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 |
-
model_name = model_config.get("model_name") or data.get("offline_inference", {}).get("model_name", "Unknown")
|
69 |
-
precision = model_config.get("dtype", "Unknown")
|
70 |
-
|
71 |
-
print(f"Final Model name: {model_name}")
|
72 |
-
print(f"Final Precision: {precision}")
|
73 |
-
|
74 |
-
|
75 |
if len(org_and_model) == 1:
|
76 |
org = None
|
77 |
model = org_and_model[0]
|
|
|
46 |
metainfo = config.get("metainfo", {})
|
47 |
model_config = config.get("model", {})
|
48 |
|
49 |
+
# config、model_configの中身を確認するデバッグ
|
50 |
+
print(f"Config data: {config}")
|
51 |
+
print(f"Model config data: {model_config}")
|
52 |
+
|
53 |
+
|
54 |
# Get model type from metainfo
|
55 |
# model_type_str = metainfo.get("model_type", "")
|
56 |
# model_type = ModelType.from_str(model_type_str)
|
|
|
70 |
org_and_model = config.get("model_name", config.get("offline_inference").get("model_name", None))
|
71 |
org_and_model = org_and_model.split("/", 1)
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
if len(org_and_model) == 1:
|
74 |
org = None
|
75 |
model = org_and_model[0]
|