Unverified Commit 6fae67a6 authored by kwrobel.eth's avatar kwrobel.eth Committed by GitHub
Browse files

Add start date in results.json (#1592)

parent b7923a84
import itertools import itertools
import logging import logging
import random import random
import time
from collections import defaultdict from collections import defaultdict
from typing import TYPE_CHECKING, List, Optional, Union from typing import TYPE_CHECKING, List, Optional, Union
...@@ -106,6 +107,7 @@ def simple_evaluate( ...@@ -106,6 +107,7 @@ def simple_evaluate(
Dictionary of results Dictionary of results
""" """
eval_logger.setLevel(getattr(logging, f"{verbosity}")) eval_logger.setLevel(getattr(logging, f"{verbosity}"))
start_date = time.time()
if delete_requests_cache: if delete_requests_cache:
eval_logger.info("Deleting requests cache...") eval_logger.info("Deleting requests cache...")
...@@ -262,6 +264,7 @@ def simple_evaluate( ...@@ -262,6 +264,7 @@ def simple_evaluate(
"gen_kwargs": gen_kwargs, "gen_kwargs": gen_kwargs,
} }
results["git_hash"] = get_git_commit_hash() results["git_hash"] = get_git_commit_hash()
results["date"] = start_date
add_env_info(results) # additional environment info to results add_env_info(results) # additional environment info to results
return results return results
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment