Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
6fae67a6
Unverified
Commit
6fae67a6
authored
Mar 17, 2024
by
kwrobel.eth
Committed by
GitHub
Mar 17, 2024
Browse files
Add start date in results.json (#1592)
parent
b7923a84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lm_eval/evaluator.py
lm_eval/evaluator.py
+3
-0
No files found.
lm_eval/evaluator.py
View file @
6fae67a6
import
itertools
import
logging
import
random
import
time
from
collections
import
defaultdict
from
typing
import
TYPE_CHECKING
,
List
,
Optional
,
Union
...
...
@@ -106,6 +107,7 @@ def simple_evaluate(
Dictionary of results
"""
eval_logger
.
setLevel
(
getattr
(
logging
,
f
"
{
verbosity
}
"
))
start_date
=
time
.
time
()
if
delete_requests_cache
:
eval_logger
.
info
(
"Deleting requests cache..."
)
...
...
@@ -262,6 +264,7 @@ def simple_evaluate(
"gen_kwargs"
:
gen_kwargs
,
}
results
[
"git_hash"
]
=
get_git_commit_hash
()
results
[
"date"
]
=
start_date
add_env_info
(
results
)
# additional environment info to results
return
results
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment