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
cc3bdad3
Commit
cc3bdad3
authored
Jul 01, 2023
by
FarzanehNakhaee
Browse files
Add qa4mre
parent
e4a281f7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
lm_eval/tasks/qa4mre/preprocess_qa4mre.py
lm_eval/tasks/qa4mre/preprocess_qa4mre.py
+2
-0
lm_eval/tasks/qa4mre/qa4mre_2011.yaml
lm_eval/tasks/qa4mre/qa4mre_2011.yaml
+19
-0
No files found.
lm_eval/tasks/qa4mre/preprocess_qa4mre.py
0 → 100644
View file @
cc3bdad3
def
qa4mre_process
(
doc
):
return
int
(
doc
[
'correct_answer_id'
])
-
1
\ No newline at end of file
lm_eval/tasks/qa4mre/qa4mre_2011.yaml
0 → 100644
View file @
cc3bdad3
group
:
-
multiple_choice
task
:
qa4mre_2011
dataset_path
:
qa4mre
dataset_name
:
2011.main.EN
output_type
:
multiple_choice
test_split
:
train
template_aliases
:
"
{%
set
answer_choices
=
answer_options['answer_str']
%}"
doc_to_text
:
"
{{document_str.strip()}}
\n
Question:{{question_str}}
\n
Answer:"
doc_to_target
:
!function
preprocess_qa4mre.qa4mre_process
should_decontaminate
:
true
doc_to_decontamination_query
:
"
{{document_str|map('trim')}}
+
'
'
+
{{question_str}}"
metric_list
:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
-
metric
:
acc_norm
aggregation
:
mean
higher_is_better
:
true
\ No newline at end of file
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