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
689e0c91
Commit
689e0c91
authored
Jul 22, 2025
by
Baber
Browse files
make multiple_input explicit
parent
d9876b22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
lm_eval/api/task.py
lm_eval/api/task.py
+1
-1
lm_eval/config/task.py
lm_eval/config/task.py
+1
-0
No files found.
lm_eval/api/task.py
View file @
689e0c91
...
...
@@ -659,7 +659,7 @@ class ConfigurableTask(Task):
# Test One Doc
self
.
features
:
list
[
str
]
=
list
(
self
.
task_docs
.
features
.
keys
())
self
.
multiple_input
=
0
self
.
multiple_input
=
self
.
config
.
multiple_input
self
.
multiple_target
=
0
test_doc
=
self
.
task_docs
[
0
]
test_text
=
self
.
doc_to_text
(
test_doc
)
...
...
lm_eval/config/task.py
View file @
689e0c91
...
...
@@ -166,6 +166,7 @@ class TaskConfig:
should_decontaminate
:
bool
=
False
doc_to_decontamination_query
:
str
|
None
=
None
gen_prefix
:
str
|
None
=
None
multiple_input
:
bool
=
False
metadata
:
dict
|
None
=
field
(
default_factory
=
dict
)
# by default, not used in the code. allows for users to pass arbitrary info to tasks
...
...
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