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
2314ff4f
Commit
2314ff4f
authored
Nov 17, 2023
by
lintangsutawika
Browse files
will check if group_name is None
parent
f7ba0d63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+2
-1
No files found.
lm_eval/evaluator.py
View file @
2314ff4f
...
@@ -226,6 +226,7 @@ def evaluate(
...
@@ -226,6 +226,7 @@ def evaluate(
versions
[
group_name
]
=
"N/A"
versions
[
group_name
]
=
"N/A"
else
:
else
:
group_name
=
None
task_hierarchy
[
task_name
]
=
[]
task_hierarchy
[
task_name
]
=
[]
if
task
is
None
:
if
task
is
None
:
...
@@ -239,7 +240,7 @@ def evaluate(
...
@@ -239,7 +240,7 @@ def evaluate(
if
(
"group_alias"
in
configs
[
task_name
])
and
(
if
(
"group_alias"
in
configs
[
task_name
])
and
(
group_name
not
in
task_group_alias
group_name
not
in
task_group_alias
):
)
and
(
group_name
!=
None
)
:
task_group_alias
[
group_name
]
=
configs
[
task_name
][
"group_alias"
]
task_group_alias
[
group_name
]
=
configs
[
task_name
][
"group_alias"
]
if
limit
is
not
None
:
if
limit
is
not
None
:
...
...
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