Spaces:
Runtime error
Runtime error
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
|
@@ -36,7 +36,8 @@ class EvalResult:
|
|
| 36 |
with open(json_filepath) as fp:
|
| 37 |
data = json.load(fp)
|
| 38 |
|
| 39 |
-
|
|
|
|
| 40 |
|
| 41 |
# Precision
|
| 42 |
precision = Precision.from_str(config.get("model_dtype"))
|
|
|
|
| 36 |
with open(json_filepath) as fp:
|
| 37 |
data = json.load(fp)
|
| 38 |
|
| 39 |
+
# We manage the legacy config format
|
| 40 |
+
config = data.get("config", data.get("config_general", None))
|
| 41 |
|
| 42 |
# Precision
|
| 43 |
precision = Precision.from_str(config.get("model_dtype"))
|