Skip to content

Commit

Permalink
option to list custom tasks (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanHB authored Dec 9, 2024
1 parent 1fb7968 commit f2d0a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lighteval/main_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ def inspect(


@app.command()
def list():
def list(custom_tasks: Annotated[Optional[str], Option(help="Path to a file with custom tasks")] = None):
"""
List all tasks
"""
from lighteval.tasks.registry import Registry

registry = Registry(cache_dir=CACHE_DIR)
registry = Registry(cache_dir=CACHE_DIR, custom_tasks=custom_tasks)
registry.print_all_tasks()

0 comments on commit f2d0a65

Please sign in to comment.