Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lm_eval/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,10 @@ def pretty_print_task(task_name, task_manager, indent: int):
yaml_path = task_manager.task_index[task_name]["yaml_path"]
yaml_path = Path(yaml_path)
lm_eval_tasks_path = Path(__file__).parent
relative_yaml_path = yaml_path.relative_to(lm_eval_tasks_path)
try:
relative_yaml_path = yaml_path.relative_to(lm_eval_tasks_path)
except ValueError:
relative_yaml_path = yaml_path

pad = " " * indent
eval_logger.info(f"{pad}Task: {task_name} ({relative_yaml_path})")
Expand Down