Skip to content

Commit 62a0352

Browse files
authored
Merge branch 'ggml-org:master' into master
2 parents 3fd5df0 + a057897 commit 62a0352

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+7979
-2126
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,12 +710,36 @@ jobs:
710710
-DLLAMA_BUILD_SERVER=OFF \
711711
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
712712
cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
713-
sudo cmake --install build --config Release
714713
715714
- name: xcodebuild for swift package
716715
id: xcodebuild
717716
run: |
718-
xcodebuild -scheme llama-Package -destination "${{ matrix.destination }}"
717+
./build-xcframework.sh
718+
719+
- name: Determine tag name
720+
id: tag
721+
shell: bash
722+
run: |
723+
BUILD_NUMBER="$(git rev-list --count HEAD)"
724+
SHORT_HASH="$(git rev-parse --short=7 HEAD)"
725+
if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
726+
echo "name=b${BUILD_NUMBER}" >> $GITHUB_OUTPUT
727+
else
728+
SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')
729+
echo "name=${SAFE_NAME}-b${BUILD_NUMBER}-${SHORT_HASH}" >> $GITHUB_OUTPUT
730+
fi
731+
732+
- name: Pack artifacts
733+
id: pack_artifacts
734+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
735+
run: |
736+
zip -r llama-${{ steps.tag.outputs.name }}-xcframework.zip build-apple/llama.xcframework
737+
738+
- name: Upload artifacts
739+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
740+
uses: actions/upload-artifact@v4
741+
with:
742+
path: llama-${{ steps.tag.outputs.name }}-xcframework.zip
719743

720744
windows-msys2:
721745
runs-on: windows-latest
@@ -1336,15 +1360,14 @@ jobs:
13361360
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \
13371361
-DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml
13381362
cmake --build build --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO
1339-
sudo cmake --install build --config Release
13401363
13411364
- name: xcodebuild for swift package
13421365
id: xcodebuild
13431366
run: |
1344-
xcodebuild -scheme llama-Package -destination 'generic/platform=iOS'
1367+
./build-xcframework.sh
13451368
13461369
- name: Build Xcode project
1347-
run: xcodebuild -project examples/llama.swiftui/llama.swiftui.xcodeproj -scheme llama.swiftui -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' build
1370+
run: xcodebuild -project examples/llama.swiftui/llama.swiftui.xcodeproj -scheme llama.swiftui -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' FRAMEWORK_FOLDER_PATH=./build-ios build
13481371

13491372
android-build:
13501373
runs-on: ubuntu-latest

.github/workflows/server.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ jobs:
161161
- name: Tests
162162
id: server_integration_tests
163163
if: ${{ matrix.sanitizer == '' }}
164+
env:
165+
GITHUB_ACTIONS: "true"
164166
run: |
165167
cd examples/server/tests
166168
./tests.sh

Package.swift

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
66
[![Server](https://github.com/ggml-org/llama.cpp/actions/workflows/server.yml/badge.svg)](https://github.com/ggml-org/llama.cpp/actions/workflows/server.yml)
77

8-
[Roadmap](https://github.com/users/ggml-org/projects/7) / [Project status](https://github.com/ggml-org/llama.cpp/discussions/3471) / [Manifesto](https://github.com/ggml-org/llama.cpp/discussions/205) / [ggml](https://github.com/ggml-org/ggml)
8+
[Roadmap](https://github.com/users/ggerganov/projects/7) / [Project status](https://github.com/ggml-org/llama.cpp/discussions/3471) / [Manifesto](https://github.com/ggml-org/llama.cpp/discussions/205) / [ggml](https://github.com/ggml-org/ggml)
99

1010
Inference of Meta's [LLaMA](https://arxiv.org/abs/2302.13971) model (and others) in pure C/C++
1111

Sources/llama/llama.h

Lines changed: 0 additions & 4 deletions
This file was deleted.

Sources/llama/module.modulemap

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)