sh1gechan commited on
Commit
2654e55
·
verified ·
1 Parent(s): bf7ae43

Update src/leaderboard/read_evals.py

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +3 -3
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("model_dtype"))
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