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
f61974ed
Commit
f61974ed
authored
Jun 02, 2023
by
haileyschoelkopf
Browse files
fix default .py task filters
parent
b698048d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
lm_eval/api/task.py
lm_eval/api/task.py
+1
-1
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+0
-1
No files found.
lm_eval/api/task.py
View file @
f61974ed
...
@@ -153,7 +153,7 @@ class Task(abc.ABC):
...
@@ -153,7 +153,7 @@ class Task(abc.ABC):
if
not
hasattr
(
self
,
"_filters"
):
if
not
hasattr
(
self
,
"_filters"
):
self
.
_filters
=
[]
self
.
_filters
=
[]
for
name
,
components
in
self
.
_config
.
get
(
for
name
,
components
in
self
.
_config
.
get
(
"filters"
,
[[
"none"
,
[
"take_first"
]]]
"filters"
,
[[
"none"
,
[
[
"take_first"
,
None
]
]]]
):
):
filter_pipeline
=
build_filter_ensemble
(
name
,
components
)
filter_pipeline
=
build_filter_ensemble
(
name
,
components
)
self
.
_filters
.
append
(
filter_pipeline
)
self
.
_filters
.
append
(
filter_pipeline
)
...
...
lm_eval/tasks/__init__.py
View file @
f61974ed
import
os
import
os
from
typing
import
List
,
Union
from
typing
import
List
,
Union
from
.arc
import
*
from
lm_eval
import
utils
from
lm_eval
import
utils
from
lm_eval.logger
import
eval_logger
from
lm_eval.logger
import
eval_logger
...
...
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