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
6fc2e148
Commit
6fc2e148
authored
Jul 06, 2023
by
haileyschoelkopf
Browse files
revert change to template_aliases
parent
e8702f15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
lm_eval/api/task.py
lm_eval/api/task.py
+10
-10
No files found.
lm_eval/api/task.py
View file @
6fc2e148
...
@@ -43,7 +43,7 @@ ALL_OUTPUT_TYPES = [
...
@@ -43,7 +43,7 @@ ALL_OUTPUT_TYPES = [
"multiple_choice"
,
"multiple_choice"
,
"loglikelihood_rolling"
,
"loglikelihood_rolling"
,
"greedy_until"
,
"greedy_until"
,
"winograd_schema"
"winograd_schema"
,
]
]
...
@@ -91,7 +91,7 @@ class TaskConfig(dict):
...
@@ -91,7 +91,7 @@ class TaskConfig(dict):
# allow user-specified aliases so that users can
# allow user-specified aliases so that users can
# force prompt-compatibility for some prompt regardless of
# force prompt-compatibility for some prompt regardless of
# field names in prompt
# field names in prompt
if
type
(
self
.
template_aliases
)
==
str
:
if
self
.
template_aliases
:
if
type
(
self
.
doc_to_text
)
==
str
:
if
type
(
self
.
doc_to_text
)
==
str
:
self
.
doc_to_text
=
self
.
template_aliases
+
self
.
doc_to_text
self
.
doc_to_text
=
self
.
template_aliases
+
self
.
doc_to_text
...
...
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