chat tempalte evaluations
Browse files
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 |
-
|
|
|
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", "?")
|