sh1gechan commited on
Commit
38ec743
1 Parent(s): 60bf24a

Update src/leaderboard/read_evals.py

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +5 -3
src/leaderboard/read_evals.py CHANGED
@@ -46,15 +46,17 @@ class EvalResult:
46
  model_config = config.get("model", {})
47
 
48
  # Get model type from metainfo
49
- model_type_str = metainfo.get("model_type", "")
50
- model_type = ModelType.from_str(model_type_str)
 
51
  print("model_type", model_type)
52
 
53
  # Get num_few_shots from metainfo
54
  num_few_shots = metainfo.get("num_few_shots", 0)
55
 
56
  # Precision
57
- precision = Precision.from_str(config.get("dtype"))
 
58
  print("precision", precision)
59
 
60
  # Get model and org
 
46
  model_config = config.get("model", {})
47
 
48
  # Get model type from metainfo
49
+ # model_type_str = metainfo.get("model_type", "")
50
+ # model_type = ModelType.from_str(model_type_str)
51
+ model_type = metainfo.get("model_type", "Unknown")
52
  print("model_type", model_type)
53
 
54
  # Get num_few_shots from metainfo
55
  num_few_shots = metainfo.get("num_few_shots", 0)
56
 
57
  # Precision
58
+ # precision = Precision.from_str(config.get("dtype"))
59
+ precision = model_config.get("dtype", "Unknown")
60
  print("precision", precision)
61
 
62
  # Get model and org