From 58921b244fac297c02065dd9abe948ba36e11e85 Mon Sep 17 00:00:00 2001 From: fkunn1326 <92153597+fkunn1326@users.noreply.github.com> Date: Sat, 14 Sep 2024 18:04:48 +0900 Subject: [PATCH] change git repo --- .github/workflows/swift.yml | 4 +++- Package.swift | 2 +- Sources/llama.cpp/ggml-alloc.h | 1 + Sources/llama.cpp/ggml-backend.h | 1 + Sources/llama.cpp/ggml.h | 1 + Sources/llama.cpp/llama.h | 1 + 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 2900636..4c57fc2 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -4,7 +4,9 @@ name: Swift Build and Test on: push: + branches: [ "main", "develop" ] pull_request: + branches: [ "main", "develop" ] jobs: macos-build: @@ -61,7 +63,7 @@ jobs: with: submodules: true - name: Clone llama.cpp - run: git clone -b ku-nlp/gpt2-japanese-char https://github.com/fkunn1326/llama.cpp.git + run: git clone -b ku-nlp/gpt2-japanese-char https://github.com/ensan-hcl/llama.cpp.git - name: Build llama.cpp run: | cmake -B build -DBUILD_SHARED_LIBS=ON diff --git a/Package.swift b/Package.swift index 355ab74..6911077 100644 --- a/Package.swift +++ b/Package.swift @@ -81,7 +81,7 @@ var targets: [Target] = [ #if !(os(Windows)) dependencies.append( - .package(url: "https://github.com/ensan-hcl/llama.cpp", branch: "b5cc30f") + .package(url: "https://github.com/ensan-hcl/llama.cpp", branch: "6b862f4") ) #endif diff --git a/Sources/llama.cpp/ggml-alloc.h b/Sources/llama.cpp/ggml-alloc.h index 9425c90..f0e7e22 100644 --- a/Sources/llama.cpp/ggml-alloc.h +++ b/Sources/llama.cpp/ggml-alloc.h @@ -1,3 +1,4 @@ +// header file from https://github.com/ensan-hcl/llama.cpp/tree/ku-nlp/gpt2-japanese-char #pragma once #include "ggml.h" diff --git a/Sources/llama.cpp/ggml-backend.h b/Sources/llama.cpp/ggml-backend.h index 6c44d2d..39034e5 100644 --- a/Sources/llama.cpp/ggml-backend.h +++ b/Sources/llama.cpp/ggml-backend.h @@ -1,3 +1,4 @@ +// header file from https://github.com/ensan-hcl/llama.cpp/tree/ku-nlp/gpt2-japanese-char #pragma once #include "ggml.h" diff --git a/Sources/llama.cpp/ggml.h b/Sources/llama.cpp/ggml.h index 03d517d..cb407f3 100644 --- a/Sources/llama.cpp/ggml.h +++ b/Sources/llama.cpp/ggml.h @@ -1,3 +1,4 @@ +// header file from https://github.com/ensan-hcl/llama.cpp/tree/ku-nlp/gpt2-japanese-char #pragma once // diff --git a/Sources/llama.cpp/llama.h b/Sources/llama.cpp/llama.h index 8b531e0..07e1dd1 100644 --- a/Sources/llama.cpp/llama.h +++ b/Sources/llama.cpp/llama.h @@ -1,3 +1,4 @@ +// header file from https://github.com/ensan-hcl/llama.cpp/tree/ku-nlp/gpt2-japanese-char #ifndef LLAMA_H #define LLAMA_H