-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes the validation of acceptable model types for registration in AQUA. #958
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoever's code you changed doesn't have the ruff precommit set up, maybe you could ask them please to add it so formatting differences aren't changes.
ads/aqua/extension/model_handler.py
Outdated
if ( | ||
not hf_model_info.pipeline_tag | ||
or hf_model_info.pipeline_tag.lower() != ModelTask.TEXT_GENERATION | ||
if not ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In some case the pipeline_tag is empty. We should allow registration when pipeline is empty. I am wondering if we should just remove this restriction all together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree. Will remove the validation
Description
Fixes the validation of acceptable model types for registration in AQUA.