Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 0b00719

Browse files
committed
Fix args.tasks type check issue
Signed-off-by: duansheng.liu <[email protected]>
1 parent 52b8ae8 commit 0b00719

File tree

1 file changed

+1
-1
lines changed
  • intel_extension_for_transformers/transformers/llm/evaluation/lm_eval

1 file changed

+1
-1
lines changed

intel_extension_for_transformers/transformers/llm/evaluation/lm_eval/accuracy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def cli_evaluate(args) -> None:
8989
if args.tasks is None:
9090
eval_logger.error("Need to specify task to evaluate.")
9191
sys.exit()
92-
elif args.tasks == "list":
92+
elif isinstance(args.tasks, list):
9393
eval_logger.info(
9494
"Available Tasks:\n - {}".format("\n - ".join(task_manager.all_tasks))
9595
)

0 commit comments

Comments
 (0)