Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -57,6 +57,7 @@ class EvalResult:
|
|
57 |
# Precision
|
58 |
# precision = Precision.from_str(config.get("dtype"))
|
59 |
precision = model_config.get("dtype", "Unknown")
|
|
|
60 |
|
61 |
# Add Special Tokens
|
62 |
add_special_tokens = str(config.get("pipeline_kwargs",{"add_special_tokens":"Unknown"}).get("add_special_tokens"))
|
@@ -114,7 +115,6 @@ class EvalResult:
|
|
114 |
def update_with_request_file(self, requests_path):
|
115 |
"""Finds the relevant request file for the current model and updates info with it"""
|
116 |
request_file = get_request_file_for_model(requests_path, self.full_model, self.precision)
|
117 |
-
print(f"Request file for {self.full_model} with precision {self.precision}: {request_file}")
|
118 |
|
119 |
try:
|
120 |
with open(request_file, "r") as f:
|
|
|
57 |
# Precision
|
58 |
# precision = Precision.from_str(config.get("dtype"))
|
59 |
precision = model_config.get("dtype", "Unknown")
|
60 |
+
print(f"model_config: {model_config}")
|
61 |
|
62 |
# Add Special Tokens
|
63 |
add_special_tokens = str(config.get("pipeline_kwargs",{"add_special_tokens":"Unknown"}).get("add_special_tokens"))
|
|
|
115 |
def update_with_request_file(self, requests_path):
|
116 |
"""Finds the relevant request file for the current model and updates info with it"""
|
117 |
request_file = get_request_file_for_model(requests_path, self.full_model, self.precision)
|
|
|
118 |
|
119 |
try:
|
120 |
with open(request_file, "r") as f:
|