updates the package.swift to use ggml as dependency
This commit is contained in:
parent
0235b9b571
commit
8b916c2f07
1 changed files with 10 additions and 6 deletions
|
@ -13,21 +13,25 @@ let package = Package(
|
||||||
products: [
|
products: [
|
||||||
.library(name: "llama", targets: ["llama"]),
|
.library(name: "llama", targets: ["llama"]),
|
||||||
],
|
],
|
||||||
|
dependencies: [
|
||||||
|
.package(url: "https://github.com/1-ashraful-islam/ggml.git", .branch("master"))
|
||||||
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "llama",
|
name: "llama",
|
||||||
|
dependencies: ["ggml"],
|
||||||
path: ".",
|
path: ".",
|
||||||
exclude: [],
|
exclude: [],
|
||||||
sources: [
|
sources: [
|
||||||
"ggml.c",
|
// "ggml.c",
|
||||||
"llama.cpp",
|
"llama.cpp",
|
||||||
"ggml-alloc.c",
|
// "ggml-alloc.c",
|
||||||
"ggml-backend.c",
|
// "ggml-backend.c",
|
||||||
"ggml-quants.c",
|
// "ggml-quants.c",
|
||||||
"ggml-metal.m",
|
// "ggml-metal.m",
|
||||||
],
|
],
|
||||||
resources: [
|
resources: [
|
||||||
.process("ggml-metal.metal")
|
// .process("ggml-metal.metal")
|
||||||
],
|
],
|
||||||
publicHeadersPath: "spm-headers",
|
publicHeadersPath: "spm-headers",
|
||||||
cSettings: [
|
cSettings: [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue