containers / podman-desktop-extension-ai-lab

Work with LLMs on a local environment using containers
https://podman-desktop.io/extensions/ai-lab
Apache License 2.0
177 stars 35 forks source link

Add banner about GPU acceleration if not used/configured #1591

Closed slemeur closed 2 weeks ago

slemeur commented 2 months ago

Is your enhancement related to a problem? Please describe

People who are not aware of the possibility of using GPU acceleration will not notice the capability.

Describe the solution you'd like

If the GPU is not configured in the user's environment, we'd like to drive more attention onto how the user could experiment with it.

It should be possible to hide the banner with a button: "Don't display anymore"

We should have telemetry on the banner to know:

Describe alternatives you've considered

No response

Additional context

No response

axel7083 commented 2 months ago

We may want to simply have it enabled by default next release

axel7083 commented 1 month ago

The banner should be displayed at the top of all screens of Podman AI Lab

I am against this idea.

There should be one button "Enable": when clicked, it displays the instructions on how the user can enable the GPU acceleration, depending on the platform the user is using.

image

Following https://github.com/containers/podman-desktop-extension-ai-lab/pull/1717 we have a banner checking for GPU machine (libkrun).

This issue seems to be a change on this existing banner ?

On Windows we should only display this for user with NVIDIA card and VRAM > 6G as this is probably the minimum requirements. We could redirect them to the documentation (https://podman-desktop.io/docs/podman/gpu)

But checking for NVIDIA, that the machine is enabled or not is pretty complicated.

axel7083 commented 1 month ago

Knowing if a WSL has nvidia capabilities is difficult, and we would need to manually ssh inside the machine.

I opened https://github.com/containers/podman/issues/24042 to see if we could have this information from the machine.

jeffmaury commented 4 weeks ago

Having the default value switched to true is a first step but we should have the banner displayed if user changed it to false