diff options
author | Ashraful Islam <ashraful.meche@gmail.com> | 2024-01-03 11:30:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 19:30:02 +0200 |
commit | ece9a45e8ffb73ad461c792720c2fec28b0137bc (patch) | |
tree | 25ac65a80d5c7558a14abf45be2c3667b605d6e3 | |
parent | 7bed7eba359b0fa8e575345dc5467a46b4ba509f (diff) |
swift : update Package.swift to use ggml as dependency (#4691)
* updates the package.swift to use ggml as dependency
* changes the ggml package url src to ggerganov
-rw-r--r-- | Package.swift | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Package.swift b/Package.swift index 18d610d6..e33a4ff4 100644 --- a/Package.swift +++ b/Package.swift @@ -13,21 +13,17 @@ let package = Package( products: [ .library(name: "llama", targets: ["llama"]), ], + dependencies: [ + .package(url: "https://github.com/ggerganov/ggml.git", .branch("master")) + ], targets: [ .target( name: "llama", + dependencies: ["ggml"], path: ".", exclude: [], sources: [ - "ggml.c", "llama.cpp", - "ggml-alloc.c", - "ggml-backend.c", - "ggml-quants.c", - "ggml-metal.m", - ], - resources: [ - .process("ggml-metal.metal") ], publicHeadersPath: "spm-headers", cSettings: [ |