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
39c40277
Commit
39c40277
authored
May 10, 2024
by
lintangsutawika
Browse files
use task_id
parent
e0986475
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lm_eval/api/task.py
lm_eval/api/task.py
+1
-0
lm_eval/evaluator.py
lm_eval/evaluator.py
+2
-2
No files found.
lm_eval/api/task.py
View file @
39c40277
...
...
@@ -3,6 +3,7 @@ import ast
import
logging
import
random
import
re
import
uuid
from
collections.abc
import
Callable
from
copy
import
deepcopy
from
dataclasses
import
asdict
,
dataclass
...
...
lm_eval/evaluator.py
View file @
39c40277
...
...
@@ -544,14 +544,14 @@ def evaluate(
# Convert to string
if
isinstance
(
group_or_task
,
ConfigurableGroup
):
group_config
=
group_or_task
.
config
group_or_task
=
group_or_task
.
group
group_or_task
=
group_or_task
.
task_id
else
:
group_config
=
None
if
isinstance
(
group_or_task_info
,
ConfigurableTask
):
if
task_root
:
task_hierarchy
.
setdefault
(
task_root
,
[]).
append
(
group_or_task
group_or_task
_info
.
task_id
)
else
:
(
...
...
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