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
907c99c0
Unverified
Commit
907c99c0
authored
Jul 12, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Jul 12, 2023
Browse files
Update evaluator.py
parent
76bf11c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lm_eval/evaluator.py
lm_eval/evaluator.py
+3
-3
No files found.
lm_eval/evaluator.py
View file @
907c99c0
...
...
@@ -204,11 +204,11 @@ def evaluate(
if
write_out
:
for
inst
in
task
.
instances
:
# print the prompt for the first few documents
if
inst
.
doc_id
<
4
:
print
(
if
inst
.
doc_id
<
1
:
eval_logger
.
info
(
f
"Task:
{
task_name
}
; document
{
inst
.
doc_id
}
; context prompt (starting on next line):
\n
{
inst
.
args
[
0
]
}
\n
(end of prompt on previous line)"
)
print
(
"Request:"
,
inst
)
eval_logger
.
info
(
"Request:"
,
inst
)
# aggregate Instances by LM method requested to get output.
reqtype
=
(
...
...
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