-
Notifications
You must be signed in to change notification settings - Fork 57
[WIP- FINAL][AQUA][GPU Shape Recommendation] Support for Service Managed Models #1252 #1267
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
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.
minor comments. overall looks good. 👍
If model type is unsupported by tool (no recommendation report generated) | ||
If the model type is unsupported and no recommendation report can be generated. | ||
""" | ||
deployment_config = self.get_deployment_config(model_id=kwargs.get("model_id")) |
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.
nit: add a validation here to check if kwargs has model id before passing to get_deployment_config.
""" | ||
c = self.llm_config | ||
embedding_count = 1 if getattr(c, "tie_word_embeddings", True) else 2 | ||
llm_config = self.llm_config |
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.
nit: we could just do self.llm_config below instead of declaring a new var, just personal preference. We can keep it as is for now.
For AQUA Service models, pre-defined configuration files already exist and can be directly used. This PR adds support for service models via obtaining their pre-defined config files, parsing this metadata, and formatting a response consistent with the current output of the GPU Shape Recommendation Tool
Returns
