meg-huggingface
commited on
Commit
·
623b36b
1
Parent(s):
5e999cb
debug
Browse files
src/backend/run_eval_suite_harness.py
CHANGED
|
@@ -76,18 +76,7 @@ def run_evaluation(eval_request: EvalRequest, task_names: list, num_fewshot: int
|
|
| 76 |
|
| 77 |
print("Results is")
|
| 78 |
print(results)
|
| 79 |
-
|
| 80 |
-
print("Key:")
|
| 81 |
-
print(key)
|
| 82 |
-
print("Value:")
|
| 83 |
-
print(value)
|
| 84 |
-
print("Dtype")
|
| 85 |
-
print(type(value))
|
| 86 |
-
if type(value) == dict:
|
| 87 |
-
for key2, value2 in value.items():
|
| 88 |
-
print(key2)
|
| 89 |
-
print(value2)
|
| 90 |
-
print(type(value))
|
| 91 |
dumped = json.dumps(results, cls=NumpyArrayEncoder, indent=2)
|
| 92 |
logger.info(dumped)
|
| 93 |
|
|
@@ -98,6 +87,11 @@ def run_evaluation(eval_request: EvalRequest, task_names: list, num_fewshot: int
|
|
| 98 |
|
| 99 |
logger.info(utils.make_table(results))
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
API.upload_file(
|
| 102 |
path_or_fileobj=output_path,
|
| 103 |
path_in_repo=f"{eval_request.model}/results_{datetime.now()}.json",
|
|
|
|
| 76 |
|
| 77 |
print("Results is")
|
| 78 |
print(results)
|
| 79 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
dumped = json.dumps(results, cls=NumpyArrayEncoder, indent=2)
|
| 81 |
logger.info(dumped)
|
| 82 |
|
|
|
|
| 87 |
|
| 88 |
logger.info(utils.make_table(results))
|
| 89 |
|
| 90 |
+
print("Uploading to")
|
| 91 |
+
print(output_path)
|
| 92 |
+
print("repo id")
|
| 93 |
+
print(results_repo)
|
| 94 |
+
|
| 95 |
API.upload_file(
|
| 96 |
path_or_fileobj=output_path,
|
| 97 |
path_in_repo=f"{eval_request.model}/results_{datetime.now()}.json",
|