Skip to content
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

libstable-diffusion_vulkan.so missing from .AppImage ? #26

Closed
SuperUserNameMan opened this issue Dec 6, 2024 · 3 comments
Closed

libstable-diffusion_vulkan.so missing from .AppImage ? #26

SuperUserNameMan opened this issue Dec 6, 2024 · 3 comments

Comments

@SuperUserNameMan
Copy link

SuperUserNameMan commented Dec 6, 2024

Hello and nice work on this GUI !

I was testing the fresh new 0.2.2 AppImage version on my Linux Mint.

I launched it using -vulkan argument, but it does not work because the appImage does not contain the libstable-diffusion_vulkan.so.

Vulkan is the only GPU acceleration available on my Laptop, so I was wondering if you could enable vulkan support for the next release ?

@fszontagh
Copy link
Owner

Hello @SuperUserNameMan !

Sorry, but there is no pre built binaries for the vulkan backend yet.

Here is the list of the currently supported backends.

But you can try to build the vulkan backend locally:

  1. clone the sd.cpp repo, switch to the master-9578fdc tag,
  2. follow the build docs to build a shared library
  3. rename the stable-diffusion.so to stable-diffusion_vulkan.so, then place into the /usr/lib system folder

But as i know, the master-9578fdc sd.cpp have some trouble with the vulkan backend, but there is some PR which will fix it.

@SuperUserNameMan
Copy link
Author

I unpacked your AppImage, then I added my libstable-diffusion_vulkan.so and repacked it. It works fine.

But as i know, the master-9578fdc sd.cpp have some trouble with the vulkan backend, but there is some PR which will fix it.

Which troubles are you referring to ?

Regarding leejet/stable-diffusion.cpp#439, i just compiled the lib with a manually updated version of ggml.
Beside this bug, i noticed no other problem using vulkan backend so far on my linux laptop.

@fszontagh
Copy link
Owner

Which troubles are you referring to ?

As the same what you linked

i just compiled the lib with a manually updated version of ggml.

Nice catch. I have no device for vulkan, so i can't test it.
Because the binaries built here in the github workflow, i can't change the ggml version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants