You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
"In the latest version of the code, you changed the type of the parameter 'args.tasks' to a string. There is an issue with the validation and handling of this parameter in the intel_extension_for_transformers/transformers/llm/evaluation/lm_eval/accuracy.py file.
'''
elif args.tasks == "list":
eval_logger.info(
"Available Tasks:\n - {}".format("\n - ".join(task_manager.all_tasks))
)
sys.exit()
'''
I believe you should also output a corresponding warning here, informing users who have passed 'args.tasks' as a list, what type of parameter they should input to successfully perform the test.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
"In the latest version of the code, you changed the type of the parameter 'args.tasks' to a string. There is an issue with the validation and handling of this parameter in the intel_extension_for_transformers/transformers/llm/evaluation/lm_eval/accuracy.py file.
'''
elif args.tasks == "list":
eval_logger.info(
"Available Tasks:\n - {}".format("\n - ".join(task_manager.all_tasks))
)
sys.exit()
'''
I think it should be modified as follows:
'''
elif isinstance(args.tasks, list):
eval_logger.info(
"Available Tasks:\n - {}".format("\n - ".join(task_manager.all_tasks))
)
sys.exit()
'''
I believe you should also output a corresponding warning here, informing users who have passed 'args.tasks' as a list, what type of parameter they should input to successfully perform the test.
The text was updated successfully, but these errors were encountered: