Unverified Commit b296ff8f authored by Hailey Schoelkopf's avatar Hailey Schoelkopf Committed by GitHub
Browse files

Merge pull request #650 from EleutherAI/lintangsutawika-patch-1

Update __init__.py
parents 4f0a7e57 797f47c7
......@@ -14,7 +14,10 @@ from lm_eval.api.registry import (
def get_task_name_from_config(task_config):
return "{dataset_path}_{dataset_name}".format(**task_config)
if "dataset_name" in task_config:
return "{dataset_path}_{dataset_name}".format(**task_config)
else:
return "{dataset_path}".format(**task_config)
def include_task_folder(task_dir):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment