Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -22,8 +22,8 @@ class EvalResult:
|
|
22 |
model: str
|
23 |
revision: str # commit hash, "" if main
|
24 |
results: dict
|
25 |
-
precision: Precision = Precision
|
26 |
-
model_type: ModelType = ModelType # Pretrained, fine tuned, ...
|
27 |
weight_type: WeightType = WeightType.Original # Original or Adapter
|
28 |
architecture: str = "Unknown"
|
29 |
license: str = "?"
|
@@ -52,7 +52,7 @@ class EvalResult:
|
|
52 |
num_few_shots = metainfo.get("num_few_shots", 0)
|
53 |
|
54 |
# Precision
|
55 |
-
precision = Precision.from_str(config.get("
|
56 |
print("precision", precision)
|
57 |
|
58 |
# Get model and org
|
|
|
22 |
model: str
|
23 |
revision: str # commit hash, "" if main
|
24 |
results: dict
|
25 |
+
precision: Precision = Precision.Unknown
|
26 |
+
model_type: ModelType = ModelType.Unknown # Pretrained, fine tuned, ...
|
27 |
weight_type: WeightType = WeightType.Original # Original or Adapter
|
28 |
architecture: str = "Unknown"
|
29 |
license: str = "?"
|
|
|
52 |
num_few_shots = metainfo.get("num_few_shots", 0)
|
53 |
|
54 |
# Precision
|
55 |
+
precision = Precision.from_str(config.get("dtype"))
|
56 |
print("precision", precision)
|
57 |
|
58 |
# Get model and org
|