djstrong commited on
Commit
b858bc5
·
1 Parent(s): 06e07f3

chat tempalte evaluations

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +2 -1
src/leaderboard/read_evals.py CHANGED
@@ -151,7 +151,8 @@ class EvalResult:
151
  def update_with_metadata(self, metadata):
152
  # print('UPDATE', self.full_model, self.model, self.eval_name)
153
  try:
154
- meta = metadata[self.full_model]
 
155
  self.model_type = ModelType.from_str(meta.get("type", "?"))
156
  self.num_params = meta.get("params", 0)
157
  self.license = meta.get("license", "?")
 
151
  def update_with_metadata(self, metadata):
152
  # print('UPDATE', self.full_model, self.model, self.eval_name)
153
  try:
154
+ k = self.full_model.replace(',chat', '')
155
+ meta = metadata[k]
156
  self.model_type = ModelType.from_str(meta.get("type", "?"))
157
  self.num_params = meta.get("params", 0)
158
  self.license = meta.get("license", "?")