Skip to content

Commit

Permalink
Merge pull request #1001 from EleutherAI/fix-alias
Browse files Browse the repository at this point in the history
[Refactor] will check if group_name is None
  • Loading branch information
lintangsutawika authored Nov 17, 2023
2 parents 056569e + bf6cf1d commit f76941e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lm_eval/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def evaluate(
versions[group_name] = "N/A"

else:
group_name = None
task_hierarchy[task_name] = []

if task is None:
Expand All @@ -237,8 +238,10 @@ def evaluate(
if "task_alias" in configs[task_name]:
task_group_alias[task_name] = configs[task_name]["task_alias"]

if ("group_alias" in configs[task_name]) and (
group_name not in task_group_alias
if (
("group_alias" in configs[task_name])
and (group_name not in task_group_alias)
and (group_name is not None)
):
task_group_alias[group_name] = configs[task_name]["group_alias"]

Expand Down

0 comments on commit f76941e

Please sign in to comment.