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
5d55b685
Unverified
Commit
5d55b685
authored
Aug 09, 2023
by
Lintang Sutawika
Committed by
GitHub
Aug 09, 2023
Browse files
Merge pull request #752 from EleutherAI/babi-refactor
[Refactor] Port Babi task
parents
1710b42d
f33d3758
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+1
-1
lm_eval/tasks/babi/babi.yaml
lm_eval/tasks/babi/babi.yaml
+20
-0
No files found.
lm_eval/evaluator.py
View file @
5d55b685
...
@@ -253,7 +253,7 @@ def evaluate(
...
@@ -253,7 +253,7 @@ def evaluate(
eval_logger
.
info
(
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)"
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)"
)
)
eval_logger
.
info
(
"Request:
"
,
inst
)
eval_logger
.
info
(
f
"Request:
{
str
(
inst
)
}
"
)
# aggregate Instances by LM method requested to get output.
# aggregate Instances by LM method requested to get output.
reqtype
=
(
reqtype
=
(
...
...
lm_eval/tasks/babi/babi.yaml
0 → 100644
View file @
5d55b685
group
:
-
greedy_until
task
:
babi
dataset_path
:
Muennighoff/babi
dataset_name
:
null
output_type
:
greedy_until
training_split
:
train
validation_split
:
valid
test_split
:
test
doc_to_text
:
"
Passage:
{{passage}}Question:
{{question}}
\n
Answer:"
doc_to_target
:
"
{{answer}}"
target_delimiter
:
"
"
generation_kwargs
:
until
:
-
"
\n
"
-
"
Passage:"
metric_list
:
-
metric
:
exact_match
aggregation
:
mean
higher_is_better
:
true
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