Skip to content

Commit

Permalink
swift : update Package.swift to use ggml as dependency (#4691)
Browse files Browse the repository at this point in the history
* updates the package.swift to use ggml as dependency

* changes the ggml package url src to ggerganov
  • Loading branch information
1-ashraful-islam committed Jan 3, 2024
1 parent 7bed7eb commit ece9a45
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit ece9a45

Please sign in to comment.