llama-cpp: patch for vulkan support instead
All checks were successful
Build and Deploy / deploy (push) Successful in 7m23s

This commit is contained in:
2026-04-07 20:04:06 -04:00
parent fdc1596bce
commit 2884a39eb1
4 changed files with 404 additions and 9 deletions

View File

@@ -23,7 +23,11 @@ in
);
port = service_configs.ports.private.llama_cpp.port;
host = "0.0.0.0";
package = (lib.optimizePackage inputs.llamacpp.packages.${pkgs.system}.vulkan);
package = lib.optimizePackage (
inputs.llamacpp.packages.${pkgs.system}.vulkan.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [ ../patches/0002-llamacpp-vulkan-turbo3.patch ];
})
);
extraFlags = [
"-ngl"
"999"