-
Notifications
You must be signed in to change notification settings - Fork 10k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
201 changed files
with
13,898 additions
and
33,249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
|
||
|
||
- [x] I have read the [contributing guidelines](https://github.com/ggerganov/llama.cpp/blob/master/CONTRIBUTING.md) | ||
- Self-reported review complexity: | ||
- [ ] Low | ||
- [ ] Medium | ||
- [ ] High | ||
*Make sure to read the [contributing guidelines](https://github.com/ggerganov/llama.cpp/blob/master/CONTRIBUTING.md) before submitting a PR* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,66 +160,6 @@ jobs: | |
path: llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip | ||
name: llama-bin-macos-x64.zip | ||
|
||
ubuntu-focal-make: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
LLAMA_NODE_AVAILABLE: true | ||
LLAMA_PYTHON_AVAILABLE: true | ||
|
||
steps: | ||
- name: Clone | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Dependencies | ||
id: depends | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install build-essential gcc-8 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Build | ||
id: make_build | ||
env: | ||
LLAMA_FATAL_WARNINGS: 1 | ||
run: | | ||
CC=gcc-8 make -j $(nproc) | ||
- name: Test | ||
id: make_test | ||
run: | | ||
CC=gcc-8 make tests -j $(nproc) | ||
make test -j $(nproc) | ||
ubuntu-focal-make-curl: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Clone | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Dependencies | ||
id: depends | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install build-essential gcc-8 libcurl4-openssl-dev | ||
- name: Build | ||
id: make_build | ||
env: | ||
LLAMA_FATAL_WARNINGS: 1 | ||
LLAMA_CURL: 1 | ||
run: | | ||
CC=gcc-8 make -j $(nproc) | ||
ubuntu-latest-cmake: | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -517,36 +457,6 @@ jobs: | |
cmake -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DGGML_SYCL_F16=ON .. | ||
cmake --build . --config Release -j $(nproc) | ||
# TODO: build with GGML_NO_METAL because test-backend-ops fail on "Apple Paravirtual device" and I don't know | ||
# how to debug it. | ||
# ref: https://github.com/ggerganov/llama.cpp/actions/runs/7131777249/job/19420981052#step:5:1124 | ||
macOS-latest-make: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Clone | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Dependencies | ||
id: depends | ||
continue-on-error: true | ||
run: | | ||
brew update | ||
- name: Build | ||
id: make_build | ||
env: | ||
LLAMA_FATAL_WARNINGS: 1 | ||
run: | | ||
GGML_NO_METAL=1 make -j $(sysctl -n hw.logicalcpu) | ||
- name: Test | ||
id: make_test | ||
run: | | ||
GGML_NO_METAL=1 make tests -j $(sysctl -n hw.logicalcpu) | ||
GGML_NO_METAL=1 make test -j $(sysctl -n hw.logicalcpu) | ||
# TODO: build with GGML_METAL=OFF because test-backend-ops fail on "Apple Paravirtual device" and I don't know | ||
# how to debug it. | ||
# ref: https://github.com/ggerganov/llama.cpp/actions/runs/7132125951/job/19422043567?pr=4359#step:5:6584 | ||
|
@@ -660,15 +570,26 @@ jobs: | |
run: | | ||
brew update | ||
- name: xcodebuild for swift package | ||
id: xcodebuild | ||
- name: Build llama.cpp with CMake | ||
id: cmake_build | ||
run: | | ||
xcodebuild -scheme llama -destination "${{ matrix.destination }}" | ||
sysctl -a | ||
mkdir build | ||
cd build | ||
cmake -G Xcode .. \ | ||
-DGGML_METAL_USE_BF16=ON \ | ||
-DGGML_METAL_EMBED_LIBRARY=ON \ | ||
-DLLAMA_BUILD_EXAMPLES=OFF \ | ||
-DLLAMA_BUILD_TESTS=OFF \ | ||
-DLLAMA_BUILD_SERVER=OFF \ | ||
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" | ||
cmake --build . --config Release -j $(sysctl -n hw.logicalcpu) | ||
sudo cmake --install . --config Release | ||
- name: Build Swift Example | ||
id: make_build_swift_example | ||
- name: xcodebuild for swift package | ||
id: xcodebuild | ||
run: | | ||
make swift | ||
xcodebuild -scheme llama-Package -destination "${{ matrix.destination }}" | ||
windows-msys2: | ||
runs-on: windows-latest | ||
|
@@ -695,21 +616,6 @@ jobs: | |
mingw-w64-${{matrix.env}}-cmake | ||
mingw-w64-${{matrix.env}}-openblas | ||
- name: Build using make | ||
shell: msys2 {0} | ||
run: | | ||
make -j $(nproc) | ||
- name: Clean after building using make | ||
shell: msys2 {0} | ||
run: | | ||
make clean | ||
- name: Build using make w/ OpenBLAS | ||
shell: msys2 {0} | ||
run: | | ||
make GGML_OPENBLAS=1 -j $(nproc) | ||
- name: Build using CMake | ||
shell: msys2 {0} | ||
run: | | ||
|
@@ -1121,6 +1027,11 @@ jobs: | |
run: | | ||
& 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' --version | ||
- name: Install ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ github.job }} | ||
|
||
- name: Build | ||
id: cmake_build | ||
run: | | ||
|
@@ -1202,6 +1113,29 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
id: cmake_build | ||
run: | | ||
sysctl -a | ||
mkdir build | ||
cd build | ||
cmake -G Xcode .. \ | ||
-DGGML_METAL_USE_BF16=ON \ | ||
-DGGML_METAL_EMBED_LIBRARY=ON \ | ||
-DLLAMA_BUILD_EXAMPLES=OFF \ | ||
-DLLAMA_BUILD_TESTS=OFF \ | ||
-DLLAMA_BUILD_SERVER=OFF \ | ||
-DCMAKE_SYSTEM_NAME=iOS \ | ||
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \ | ||
-DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml | ||
cmake --build . --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO | ||
sudo cmake --install . --config Release | ||
- name: xcodebuild for swift package | ||
id: xcodebuild | ||
run: | | ||
xcodebuild -scheme llama-Package -destination 'generic/platform=iOS' | ||
- name: Build Xcode project | ||
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 | ||
|
||
|
@@ -1229,32 +1163,13 @@ jobs: | |
./gradlew build --no-daemon | ||
# freeBSD-latest: | ||
# runs-on: macos-12 | ||
# steps: | ||
# - name: Clone | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Build | ||
# uses: cross-platform-actions/[email protected] | ||
# with: | ||
# operating_system: freebsd | ||
# version: '13.2' | ||
# hypervisor: 'qemu' | ||
# run: | | ||
# sudo pkg update | ||
# sudo pkg install -y gmake automake autoconf pkgconf llvm15 openblas | ||
# gmake CC=/usr/local/bin/clang15 CXX=/usr/local/bin/clang++15 -j `sysctl -n hw.ncpu` | ||
|
||
release: | ||
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
needs: | ||
- ubuntu-focal-make | ||
- ubuntu-latest-cmake | ||
- macOS-latest-make | ||
- macOS-latest-cmake | ||
- windows-latest-cmake | ||
- windows-2019-cmake-cuda | ||
|
Oops, something went wrong.