Skip to content

Commit 6a31a3b

Browse files
authored
swift : add support for k-quants (#2983)
1 parent cff7b0b commit 6a31a3b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Package.swift

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,18 @@ let package = Package(
1212
name: "llama",
1313
path: ".",
1414
exclude: ["ggml-metal.metal"],
15-
sources: ["ggml.c", "llama.cpp", "ggml-alloc.c"],
15+
sources: [
16+
"ggml.c",
17+
"llama.cpp",
18+
"ggml-alloc.c",
19+
"k_quants.c"
20+
],
1621
publicHeadersPath: "spm-headers",
17-
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE")],
22+
cSettings: [
23+
.unsafeFlags(["-Wno-shorten-64-to-32"]),
24+
.define("GGML_USE_K_QUANTS"),
25+
.define("GGML_USE_ACCELERATE")
26+
],
1827
linkerSettings: [
1928
.linkedFramework("Accelerate")
2029
]

0 commit comments

Comments
 (0)