-
Notifications
You must be signed in to change notification settings - Fork 180
move inf model IsCritial func out of datastore #670
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
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
limitations under the License. | ||
*/ | ||
|
||
package inferencemodel |
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.
I'm not in love with this package name, and I wonder if we should create a dedicated package when we only have 1 func that uses it...
That being said I understand why we are suggesting this. Im torn, I'm wondering if this is a data access concern? It's essentially syntactic sugar for the criticality field read, and we probably need to articulate our criticality beyond just IsCritical
(but that is out of scope of this PR for sure, just kinda thinking aloud).
@kfswain I'm also fine with putting this function in other place. it's also possible to get rid of it completely and do this one line check directly in the two places it's being used. as long as it gets out of datastore 🙂 |
under util we have specific pkgs, so there is some form of organization already,,, but I am aligned that IsCritical is not something I expect to see in the datastore pkg. |
Yeah, this SGTM. I'm gonna be doing some refactoring over the next couple days so this should actually go down to 1 place anyway. |
I'm also in the middle of refactoring datastore and the backend/metrics... in other WIP pr.. will get rid of it for now |
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
/lgtm This is great! Ty |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kfswain, nirrozenbaum The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* move inf model IsCritial func out of datastore Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com> * remove IsCritical function helper function Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com> --------- Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
* move inf model IsCritial func out of datastore Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com> * remove IsCritical function helper function Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com> --------- Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
* move inf model IsCritial func out of datastore Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com> * remove IsCritical function helper function Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com> --------- Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
InferenceModel IsCritical function doesn't belong to Datastore.
today we have in code only in-memory datastore. if tomorrow we'll add Redis based datastore (or any other cache) we would still need this helper function.
Datastore responsibility is to hold inf pool, models and pod metrics.