-
Notifications
You must be signed in to change notification settings - Fork 65
feat: added ability to select runtime for playground #3171
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
bc087d7
to
bdabfb0
Compare
A few questions:
|
@feloy good questions! That would be a good idea to remove openvino from mac for now 'ALL' in this case is a placeholder for every runtime provider besides a hardcoded exclusion. Essentially I wanted a way to list all the runtime providers in the playground creation and this made the most sense to me at the moment. There's most definitely a cleaner approach! |
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.
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.
The runtime select should be seen as a filter, no hardcoded all
, it should be clearable, if no value is selected, then all models should be listed.
No need to define what mean "all"
Thanks, @axel7083. That's a good way to handle it! In that case, should the runtime selection dropdown be defaulted to having no value so the user can see all the models available? |
@gastoner good catch I assumed "none" in this case was simply to have no selection. I did have a playground with resnet setup but since the model is used for object detection, I didn't get the chat to work. Maybe we can keep it excluded? |
bdabfb0
to
385f589
Compare
Yes! By default no filtering |
@axel7083 updated! |
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.
Have tested it and got 2 issues:
- in the selector the none value is presented but this value is useless because there are no inference servers for those kind of models: they are just there so that recipes can load them independently from an inference server
- when the inference runtime from the settings is different from all then it should be the default value of the selector here
59dad1b
to
c590339
Compare
@feloy I believe that Mac support for OpenVINO might be coming soon, maybe we can keep it as a selection? Also I was trying to import @podman-desktop/api to the frontend script playground create to use the env.ismac but it seems frontend scripts only have the ability to pull from pd ui-svelte. Is there an easier approach to having ismac usable for frontend? |
802118c
to
c0281d0
Compare
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.
LGTM, tested on Windows, works as expected 👍
@jeffmaury gave me the idea to use the inference registry store, I believ,e to obtain what the user operating system is to filter openvino for mac so will try this out before merge |
c0281d0
to
05c82b2
Compare
7c808e3
to
9bbb52f
Compare
@jeffmaury did we want to have a defaut model selected when the runtime is all (e.i no filter)? My current implementation doesnt have the model selected so I had to edit one of the e2e tests |
519e6a5
to
029f1c5
Compare
029f1c5
to
1e64080
Compare
Would be nice to have this PR merged! So might be a follow-up PR? cc @jeffmaury |
PR checks need to be fixed |
834d7dc
to
0fd2c7e
Compare
I think this is all set to go now! I'm now pulling the registered provider backend list rather than using the enum InferenceType itself. Since openvino isnt registered on mac we shouldnt see it now for that platform |
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.
LGTM, thanks
c6d13e4
to
4f69688
Compare
Now im preselecting the playground runtime based on the recommended config. I removed the logic that allowed me to retrieve the registered runtimes in favor of this approach. Once openvino gets added to the selection I will remove it from my exclude inferencetype array |
7c6b709
to
6882d66
Compare
let runtime: InferenceType | undefined = undefined; | ||
// Exlude certain runtimes from selection | ||
export let exclude: InferenceType[] = [InferenceType.NONE, InferenceType.WHISPER_CPP, InferenceType.OPENVINO]; |
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.
Why is OpenVINO be excluded ?
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.
We don't want openvino for mac so I exclude it till we have a pr that updates the runtime select in settings with openvino
34af99e
to
a6c76b7
Compare
Signed-off-by: Brian <[email protected]>
Signed-off-by: Brian <[email protected]>
Signed-off-by: Brian <[email protected]>
Signed-off-by: Brian <[email protected]>
Signed-off-by: Brian <[email protected]>
Signed-off-by: Brian <[email protected]>
Signed-off-by: Brian <[email protected]>
Signed-off-by: Brian <[email protected]>
config store Signed-off-by: Brian <[email protected]>
Signed-off-by: Brian <[email protected]>
this will show on mac as well Signed-off-by: Brian <[email protected]>
Signed-off-by: Brian <[email protected]>
a6c76b7
to
949aa9d
Compare
What does this PR do?
adds the ability to select the runtime for playground
Screenshot / video of UI
What issues does this PR fix or reference?
fixes #2613
How to test this PR?