sh1gechan commited on
Commit
86ec923
·
verified ·
1 Parent(s): 89e838c

Update src/leaderboard/read_evals.py

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +2 -2
src/leaderboard/read_evals.py CHANGED
@@ -111,7 +111,7 @@ class EvalResult:
111
 
112
  def update_with_request_file(self, requests_path):
113
  """Finds the relevant request file for the current model and updates info with it"""
114
- request_file = get_request_file_for_model(requests_path, self.full_model, self.precision.value.name)
115
 
116
  try:
117
  with open(request_file, "r") as f:
@@ -123,7 +123,7 @@ class EvalResult:
123
  self.num_params = request.get("params", 0)
124
  self.date = request.get("submitted_time", "")
125
  except Exception:
126
- print(f"Could not find request file for {self.org}/{self.model} with precision {self.precision.value.name}")
127
 
128
  def to_dict(self):
129
  """Converts the Eval Result to a dict compatible with our dataframe display"""
 
111
 
112
  def update_with_request_file(self, requests_path):
113
  """Finds the relevant request file for the current model and updates info with it"""
114
+ request_file = get_request_file_for_model(requests_path, self.full_model, self.precision)
115
 
116
  try:
117
  with open(request_file, "r") as f:
 
123
  self.num_params = request.get("params", 0)
124
  self.date = request.get("submitted_time", "")
125
  except Exception:
126
+ print(f"Could not find request file for {self.org}/{self.model} with precision {self.precision}")
127
 
128
  def to_dict(self):
129
  """Converts the Eval Result to a dict compatible with our dataframe display"""