Repository navigation
Add support for vulkan dylibs - #892
Conversation
* Added per-mode help + nologo/ascii support * If model is missing, bump to help for respective mode
* Updated skill not to use new_build_wip + improved it * Removed stray new_build_wip reference
|
Update: I just merged some code to fix the following:
We should do some tests to try this on different platforms, at least:
@wingenlit if you have some time to try it, let us know how it works with your setup! Happy to iterate on this until we are confident enough this works reliably. |
Wooohoo I love the sparkfile idea 💙 |
Hi, I’ve been on llamafile since tinyblas came out. What I like is how llamafile hides many os/arch complexity, so it’s easy to share with less technical people to run gguf. tinyblas out-of-the-box on gpu gives a nice baseline acceleration. However, to take advantage of platform acceleration (like cublas) without writing a lengthy instruction of how-to, the recompile option is the one important trick. It’s been a good way to get near-full performance while keeping things lightweight. |
Code reviewFound 4 issues:
Lines 140 to 148 in 3a76415 Compare with the CUDA pattern: Lines 165 to 175 in 3a76415
Lines 207 to 212 in 3a76415
Lines 207 to 212 in 3a76415 Compare with the Metal pattern: Lines 661 to 672 in 3a76415 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
(see commit f3d1428) |
|
speed test: model used llama-benchy (0.3.5)
llama.cpp Results GB10: (updated)
native llama.cpp vulkan
AMD MI50:
native llama.cpp vulkan
Reference llamafile CUDA GB10
|
Uuuuh thanks for running this! So the take-home messages are:
This information is golden, thank you so much @wingenlit ! 🙏 |
The GPU support section stated that llamafile has no Vulkan backend, but Vulkan has been supported since mozilla-ai#892 (Feb 2026): llamafile/vulkan.c loads a prebuilt ggml-vulkan.so/.dll through the same shared probe/register path as CUDA and ROCm, llamafile_gpu_parse() accepts --gpu vulkan (alias vk), and llamafile/release.sh bundles ggml-vulkan.so and ggml-vulkan.dll into the full llamafile release. Correct the intro sentence, describe how the Vulkan library is located and built, add a Vulkan row to the support table, split the Intel row so it refers to the missing oneAPI/SYCL backend rather than to Vulkan, and list --gpu vulkan alongside --gpu nvidia/--gpu amd in the verification tips. Fixes mozilla-ai#1029 Assisted-by: Claude <noreply@anthropic.com> Signed-off-by: Tai An <antai12232931@outlook.com>
* docs(support): document the Vulkan GPU backend The GPU support section stated that llamafile has no Vulkan backend, but Vulkan has been supported since #892 (Feb 2026): llamafile/vulkan.c loads a prebuilt ggml-vulkan.so/.dll through the same shared probe/register path as CUDA and ROCm, llamafile_gpu_parse() accepts --gpu vulkan (alias vk), and llamafile/release.sh bundles ggml-vulkan.so and ggml-vulkan.dll into the full llamafile release. Correct the intro sentence, describe how the Vulkan library is located and built, add a Vulkan row to the support table, split the Intel row so it refers to the missing oneAPI/SYCL backend rather than to Vulkan, and list --gpu vulkan alongside --gpu nvidia/--gpu amd in the verification tips. Fixes #1029 Assisted-by: Claude <noreply@anthropic.com> Signed-off-by: Tai An <antai12232931@outlook.com> * docs(support): trim Vulkan load note and drop the SYCL row Addresses review feedback on #1033. * docs(support): apply maintainer rephrase of GPU library loading section (#1029) --------- Signed-off-by: Tai An <antai12232931@outlook.com>


Brings support for Vulkan dylibs into llamafile.
Tested on:
A Windows build script will be created and tested in a follow-up PR