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
48d861ce
Commit
48d861ce
authored
Jul 21, 2023
by
baberabb
Browse files
fixed fixture
parent
ba75c838
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_tasks.py
tests/test_tasks.py
+1
-1
No files found.
tests/test_tasks.py
View file @
48d861ce
...
@@ -6,7 +6,7 @@ from lm_eval.api.task import ConfigurableTask
...
@@ -6,7 +6,7 @@ from lm_eval.api.task import ConfigurableTask
# Using fixtures to get the task class and limit
# Using fixtures to get the task class and limit
@
pytest
.
fixture
()
@
pytest
.
fixture
()
def
task_class
(
task_name
:
List
[
str
]
)
->
ConfigurableTask
:
def
task_class
()
->
ConfigurableTask
:
task_name
=
[
"arc_easy"
]
task_name
=
[
"arc_easy"
]
x
=
[
cls
for
name
,
cls
in
tasks
.
TASK_REGISTRY
.
items
()
if
name
in
task_name
]
x
=
[
cls
for
name
,
cls
in
tasks
.
TASK_REGISTRY
.
items
()
if
name
in
task_name
]
return
x
[
0
]
return
x
[
0
]
...
...
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