Spaces:
Restarting
Restarting
Paul Hager
commited on
Commit
·
de64ab0
1
Parent(s):
997ff83
Remove debugging print
Browse files
src/leaderboard/read_evals.py
CHANGED
|
@@ -41,7 +41,7 @@ class EvalResult:
|
|
| 41 |
data = json.load(fp)
|
| 42 |
|
| 43 |
config = data.get("config")
|
| 44 |
-
print(config)
|
| 45 |
|
| 46 |
# Precision
|
| 47 |
precision = Precision.from_str(config.get("model_dtype"))
|
|
@@ -85,7 +85,7 @@ class EvalResult:
|
|
| 85 |
self.params = config.get("params", 0)
|
| 86 |
seq_length = config.get("max_sequence_length", 0)
|
| 87 |
model_quantization_bits = config.get("model_quantization_bits", 0)
|
| 88 |
-
print(self.seq_length)
|
| 89 |
|
| 90 |
|
| 91 |
return self(
|
|
@@ -122,7 +122,7 @@ class EvalResult:
|
|
| 122 |
|
| 123 |
def to_dict(self):
|
| 124 |
"""Converts the Eval Result to a dict compatible with our dataframe display"""
|
| 125 |
-
print(self.seq_length)
|
| 126 |
average = sum([v for v in self.results.values() if v is not None]) / len(Tasks)
|
| 127 |
data_dict = {
|
| 128 |
"eval_name": self.eval_name, # not a column, just a save name,
|
|
|
|
| 41 |
data = json.load(fp)
|
| 42 |
|
| 43 |
config = data.get("config")
|
| 44 |
+
# print(config)
|
| 45 |
|
| 46 |
# Precision
|
| 47 |
precision = Precision.from_str(config.get("model_dtype"))
|
|
|
|
| 85 |
self.params = config.get("params", 0)
|
| 86 |
seq_length = config.get("max_sequence_length", 0)
|
| 87 |
model_quantization_bits = config.get("model_quantization_bits", 0)
|
| 88 |
+
# print(self.seq_length)
|
| 89 |
|
| 90 |
|
| 91 |
return self(
|
|
|
|
| 122 |
|
| 123 |
def to_dict(self):
|
| 124 |
"""Converts the Eval Result to a dict compatible with our dataframe display"""
|
| 125 |
+
# print(self.seq_length)
|
| 126 |
average = sum([v for v in self.results.values() if v is not None]) / len(Tasks)
|
| 127 |
data_dict = {
|
| 128 |
"eval_name": self.eval_name, # not a column, just a save name,
|