mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 02:44:36 +00:00
swift : add support for k-quants (#2983)
This commit is contained in:
parent
cff7b0bf07
commit
6a31a3bd98
@ -12,9 +12,18 @@ let package = Package(
|
|||||||
name: "llama",
|
name: "llama",
|
||||||
path: ".",
|
path: ".",
|
||||||
exclude: ["ggml-metal.metal"],
|
exclude: ["ggml-metal.metal"],
|
||||||
sources: ["ggml.c", "llama.cpp", "ggml-alloc.c"],
|
sources: [
|
||||||
|
"ggml.c",
|
||||||
|
"llama.cpp",
|
||||||
|
"ggml-alloc.c",
|
||||||
|
"k_quants.c"
|
||||||
|
],
|
||||||
publicHeadersPath: "spm-headers",
|
publicHeadersPath: "spm-headers",
|
||||||
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE")],
|
cSettings: [
|
||||||
|
.unsafeFlags(["-Wno-shorten-64-to-32"]),
|
||||||
|
.define("GGML_USE_K_QUANTS"),
|
||||||
|
.define("GGML_USE_ACCELERATE")
|
||||||
|
],
|
||||||
linkerSettings: [
|
linkerSettings: [
|
||||||
.linkedFramework("Accelerate")
|
.linkedFramework("Accelerate")
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user