Reapply "llama-cpp: maybe use vulkan?"

This reverts commit 9addb1569a.
This commit is contained in:
2026-04-07 19:12:57 -04:00
parent 88fc219f2d
commit 778b04a80f
3 changed files with 11 additions and 10 deletions

12
flake.lock generated
View File

@@ -325,16 +325,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1775603401, "lastModified": 1774922513,
"narHash": "sha256-kp+cnqLX+K4M6gBc5Iy4S+G0xkz78qVEcO1xmNTrtgM=", "narHash": "sha256-TKk1i8AZzxy4/z0MkqKxoGf/CQDvoL+jo8JDtZeCRy8=",
"owner": "TheTom", "owner": "apollosenvy",
"repo": "llama-cpp-turboquant", "repo": "llama-cpp-turboquant",
"rev": "a4e8af4455d34d4872f967e615c8212643c2123e", "rev": "9e80e93ceb115bc5055997c373d8c09bfa47a565",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "TheTom", "owner": "apollosenvy",
"ref": "feature/turboquant-kv-cache", "ref": "pr/vulkan-turbo3",
"repo": "llama-cpp-turboquant", "repo": "llama-cpp-turboquant",
"type": "github" "type": "github"
} }

View File

@@ -29,7 +29,8 @@
}; };
llamacpp = { llamacpp = {
url = "github:TheTom/llama-cpp-turboquant/feature/turboquant-kv-cache"; # url = "github:TheTom/llama-cpp-turboquant/feature/turboquant-kv-cache";
url = "github:apollosenvy/llama-cpp-turboquant/pr/vulkan-turbo3";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };

View File

@@ -23,10 +23,10 @@ in
); );
port = service_configs.ports.private.llama_cpp.port; port = service_configs.ports.private.llama_cpp.port;
host = "0.0.0.0"; host = "0.0.0.0";
package = (lib.optimizePackage inputs.llamacpp.packages.${pkgs.system}.default); package = (lib.optimizePackage inputs.llamacpp.packages.${pkgs.system}.vulkan);
extraFlags = [ extraFlags = [
# "-ngl" "-ngl"
# "12" "999"
"-c" "-c"
"65536" "65536"
"-ctk" "-ctk"