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
4d8ed7d5
Commit
4d8ed7d5
authored
Feb 09, 2021
by
Leo Gao
Browse files
Fix PiQA
parent
62714855
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/tasks/piqa.py
lm_eval/tasks/piqa.py
+2
-2
No files found.
lm_eval/tasks/piqa.py
View file @
4d8ed7d5
...
...
@@ -28,8 +28,8 @@ class PiQA(HFTask):
return
" "
+
solutions
[
doc
[
"label"
]]
def
construct_requests
(
self
,
doc
,
ctx
):
ll_1
,
_
=
rf
.
loglikelihood
(
ctx
,
doc
[
'sol1'
])
ll_2
,
_
=
rf
.
loglikelihood
(
ctx
,
doc
[
'sol2'
])
ll_1
,
_
=
rf
.
loglikelihood
(
ctx
,
" "
+
doc
[
'sol1'
])
ll_2
,
_
=
rf
.
loglikelihood
(
ctx
,
" "
+
doc
[
'sol2'
])
return
ll_1
,
ll_2
def
process_results
(
self
,
doc
,
results
):
...
...
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