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
47b888bb
Commit
47b888bb
authored
Jun 05, 2023
by
lintangsutawika
Browse files
revert to take_first filter
parent
c746d1fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lm_eval/api/task.py
lm_eval/api/task.py
+3
-1
No files found.
lm_eval/api/task.py
View file @
47b888bb
...
...
@@ -564,7 +564,9 @@ class ConfigurableTask(Task):
filter_pipeline
=
build_filter_ensemble
(
filter_name
,
components
)
self
.
_filters
.
append
(
filter_pipeline
)
else
:
self
.
_filters
=
[
build_filter_ensemble
(
"none"
,
[(
"none"
,
None
)])]
self
.
_filters
=
[
build_filter_ensemble
(
"take_first"
,
[[
"take_first"
,
None
]])
]
if
self
.
_config
.
use_prompt
is
not
None
:
eval_logger
.
info
(
f
"loading prompt
{
self
.
_config
.
use_prompt
}
"
)
...
...
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