gblazex commited on
Commit
53aa26e
·
1 Parent(s): 656940c

Update src/leaderboard/read_evals.py

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +2 -1
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
- config = data.get("config")
 
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"))