Skip to content

Commit d720f99

Browse files
committed
Merge branch 'iq2_nl-iq3_nl-cpu' into iq2_nl-iq3_nl-cpu+metal
2 parents a7d074d + d5bac54 commit d720f99

350 files changed

Lines changed: 44479 additions & 3451 deletions

File tree

Some content is hidden

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

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
blank_issues_enabled: true
1+
blank_issues_enabled: false
22
contact_links:
33
- name: Got an idea?
44
url: https://github.com/ggml-org/llama.cpp/discussions/categories/ideas

‎.github/actions/windows-setup-rocm/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
2525
write-host "Installing ROCm wheels for multi-arch support"
2626
# Install ROCm wheels for multi-arch support (this may take several minutes)
27-
python -m pip install --index-url https://repo.amd.com/rocm/whl-multi-arch/ "rocm[libraries,devel]==${{ inputs.version }}"
27+
python -m pip install --index-url https://stable.repo.amd.com/rocm/whl-next/ "rocm[libraries,devel]==${{ inputs.version }}"
2828
2929
# Pre-expand the devel tree so it is included in the cache
3030
write-host "Initializing ROCm devel tree"

‎.github/workflows/build-android.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
# cache on: https://github.com/ggerganov/tmp2/actions/runs/26534713799/job/78224189394
111111
#
112112
#- name: ccache
113-
# uses: ggml-org/ccache-action@v1.2.21
113+
# uses: ggml-org/ccache-action@v1.2.24
114114
# with:
115115
# key: android-ubuntu-arm64
116116
# evict-old-files: 1d

‎.github/workflows/build-apple.yml‎

Lines changed: 53 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,19 @@ jobs:
4747
uses: actions/checkout@v6
4848

4949
- name: ccache
50-
uses: ggml-org/ccache-action@v1.2.21
50+
uses: ggml-org/ccache-action@v1.2.24
5151
with:
5252
key: apple-arm64
53-
evict-old-files: 1d
54-
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
53+
save: false
54+
55+
- name: ccache-buckets-restore
56+
uses: ./.github/actions/ccache-buckets
57+
env:
58+
HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
59+
with:
60+
key: apple-arm64
61+
folder: llama.cpp
62+
hf_bucket: ggml-org/cache
5563

5664
- name: Build
5765
id: cmake_build
@@ -66,24 +74,32 @@ jobs:
6674
-DGGML_RPC=ON \
6775
-DCMAKE_OSX_DEPLOYMENT_TARGET=13.3
6876
time cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
69-
leaks -atExit -- ./build/bin/test-thread-safety -hf ggml-org/gemma-3-270m-qat-GGUF -ngl 99 -p "$(printf 'hello %.0s' {1..128})" -n 16 -c 512 -ub 32 -np 2 -t 2 -lv 1
77+
78+
- name: ccache-buckets-save
79+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
80+
uses: ./.github/actions/ccache-buckets
81+
env:
82+
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
83+
with:
84+
key: apple-arm64
85+
folder: llama.cpp
86+
evict-old-files: 1d
87+
hf_bucket: ggml-org/cache
88+
save: true
89+
90+
- name: Check for leaks
91+
run: |
92+
cmd=(./build/bin/test-thread-safety -hf ggml-org/gemma-3-270m-qat-GGUF -ngl 99 -p "$(printf 'hello %.0s' {1..128})" -n 16 -c 512 -ub 32 -np 2 -t 2 -lv 1)
93+
leaks -atExit -- "${cmd[@]}"
94+
# Graphics devices are leaked by Metal in Apple code sometimes, so we ignore those leaks
95+
OBJC_DEBUG_MISSING_POOLS=YES "${cmd[@]}" 2>&1 | awk '{ print } index($0, "autoreleased with no pool in place") && !/class [a-zA-Z0-9]+Device autoreleased/ { found = 1 } END { exit found }'
7096
7197
- name: Test
7298
id: cmake_test
7399
run: |
74100
cd build
75101
ctest -L main -E "test-llama-archs" --verbose --timeout 900
76102
77-
- name: ccache-clear
78-
uses: ./.github/actions/ccache-clear
79-
env:
80-
GH_TOKEN: ${{ github.token }}
81-
with:
82-
key: apple-arm64
83-
older: 5m
84-
min: 1
85-
dry-run: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' }}
86-
87103
macos-latest-x64:
88104
runs-on: macos-15-intel
89105

@@ -93,11 +109,19 @@ jobs:
93109
uses: actions/checkout@v6
94110

95111
- name: ccache
96-
uses: ggml-org/ccache-action@v1.2.21
112+
uses: ggml-org/ccache-action@v1.2.24
97113
with:
98114
key: apple-x64
99-
evict-old-files: 1d
100-
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
115+
save: false
116+
117+
- name: ccache-buckets-restore
118+
uses: ./.github/actions/ccache-buckets
119+
env:
120+
HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
121+
with:
122+
key: apple-x64
123+
folder: llama.cpp
124+
hf_bucket: ggml-org/cache
101125

102126
- name: Build
103127
id: cmake_build
@@ -114,22 +138,24 @@ jobs:
114138
-DCMAKE_OSX_DEPLOYMENT_TARGET=13.3
115139
time cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
116140
141+
- name: ccache-buckets-save
142+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
143+
uses: ./.github/actions/ccache-buckets
144+
env:
145+
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
146+
with:
147+
key: apple-x64
148+
folder: llama.cpp
149+
evict-old-files: 1d
150+
hf_bucket: ggml-org/cache
151+
save: true
152+
117153
- name: Test
118154
id: cmake_test
119155
run: |
120156
cd build
121157
ctest -L main --verbose --timeout 900
122158
123-
- name: ccache-clear
124-
uses: ./.github/actions/ccache-clear
125-
env:
126-
GH_TOKEN: ${{ github.token }}
127-
with:
128-
key: apple-x64
129-
older: 5m
130-
min: 1
131-
dry-run: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' }}
132-
133159
macos-latest-ios-xcode:
134160
runs-on: macos-latest
135161

‎.github/workflows/build-cpu.yml‎

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ jobs:
6262
uses: actions/checkout@v6
6363

6464
- name: ccache
65-
uses: ggml-org/ccache-action@v1.2.21
65+
uses: ggml-org/ccache-action@v1.2.24
6666
with:
6767
key: cpu-${{ matrix.os }}
68-
evict-old-files: 1d
69-
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
68+
save: false
7069

7170
- name: Build Dependencies
7271
id: build_depends
@@ -91,6 +90,15 @@ jobs:
9190
python3 -m pip install --upgrade pip setuptools
9291
pip3 install ./gguf-py
9392
93+
- name: ccache-buckets-restore
94+
uses: ./.github/actions/ccache-buckets
95+
env:
96+
HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
97+
with:
98+
key: cpu-${{ matrix.os }}
99+
folder: llama.cpp
100+
hf_bucket: ggml-org/cache
101+
94102
- name: Build
95103
id: cmake_build
96104
run: |
@@ -100,6 +108,18 @@ jobs:
100108
-DGGML_RPC=ON
101109
time cmake --build build --config Release -j $(nproc)
102110
111+
- name: ccache-buckets-save
112+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
113+
uses: ./.github/actions/ccache-buckets
114+
env:
115+
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
116+
with:
117+
key: cpu-${{ matrix.os }}
118+
folder: llama.cpp
119+
evict-old-files: 1d
120+
hf_bucket: ggml-org/cache
121+
save: true
122+
103123
- name: Test
104124
id: cmake_test
105125
run: |
@@ -117,18 +137,6 @@ jobs:
117137
./bin/llama-convert-llama2c-to-ggml --copy-vocab-from-model ./tok512.bin --llama2c-model stories260K.bin --llama2c-output-model stories260K.gguf
118138
./bin/llama-completion -m stories260K.gguf -p "One day, Lily met a Shoggoth" -n 500 -c 256
119139
120-
# note: real deletion only on push to master (same condition as the ccache save),
121-
# dry-run otherwise (the token is read-only on PRs from forks)
122-
- name: ccache-clear
123-
uses: ./.github/actions/ccache-clear
124-
env:
125-
GH_TOKEN: ${{ github.token }}
126-
with:
127-
key: cpu-${{ matrix.os }}
128-
older: 5m
129-
min: 1
130-
dry-run: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' }}
131-
132140
windows:
133141
name: windows / ${{ matrix.build }}
134142
runs-on: windows-2025
@@ -156,7 +164,7 @@ jobs:
156164
uses: actions/checkout@v6
157165

158166
- name: ccache
159-
uses: ggml-org/ccache-action@v1.2.21
167+
uses: ggml-org/ccache-action@v1.2.24
160168
with:
161169
key: cpu-windows-2025-${{ matrix.build }}
162170
variant: ccache

‎.github/workflows/build-cuda-ubuntu.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ jobs:
5353
apt install -y cmake build-essential ninja-build libgomp1 git libssl-dev jq python3 python3-venv python3-pip
5454
5555
- name: ccache
56-
uses: ggml-org/ccache-action@v1.2.21
56+
uses: ggml-org/ccache-action@v1.2.24
5757
with:
5858
key: cuda-ubuntu-24.04-cuda
5959
save: false
6060

6161
- name: ccache-buckets-restore
6262
uses: ./.github/actions/ccache-buckets
6363
env:
64-
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
64+
HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
6565
with:
6666
key: cuda-ubuntu-24.04-cuda
6767
folder: llama.cpp
@@ -108,15 +108,15 @@ jobs:
108108
sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev libssl-dev rocwmma-dev jq python3-venv
109109
110110
- name: ccache
111-
uses: ggml-org/ccache-action@v1.2.21
111+
uses: ggml-org/ccache-action@v1.2.24
112112
with:
113113
key: cuda-ubuntu-22.04-hip
114114
save: false
115115

116116
- name: ccache-buckets-restore
117117
uses: ./.github/actions/ccache-buckets
118118
env:
119-
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
119+
HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
120120
with:
121121
key: cuda-ubuntu-22.04-hip
122122
folder: llama.cpp
@@ -159,15 +159,15 @@ jobs:
159159
apt-get install -y build-essential git cmake libssl-dev jq
160160
161161
- name: ccache
162-
uses: ggml-org/ccache-action@v1.2.21
162+
uses: ggml-org/ccache-action@v1.2.24
163163
with:
164164
key: cuda-ubuntu-22.04-musa
165165
save: false
166166

167167
- name: ccache-buckets-restore
168168
uses: ./.github/actions/ccache-buckets
169169
env:
170-
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
170+
HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
171171
with:
172172
key: cuda-ubuntu-22.04-musa
173173
folder: llama.cpp

‎.github/workflows/build-cuda-windows.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/checkout@v6
4848

4949
- name: ccache
50-
uses: ggml-org/ccache-action@v1.2.21
50+
uses: ggml-org/ccache-action@v1.2.24
5151
with:
5252
key: release-windows-2022-${{ matrix.arch }}-cuda-${{ matrix.cuda }}
5353

@@ -152,7 +152,7 @@ jobs:
152152
& "${env:HIP_PATH}\lib\llvm\bin\clang.exe" --version
153153
154154
- name: ccache
155-
uses: ggml-org/ccache-action@v1.2.21
155+
uses: ggml-org/ccache-action@v1.2.24
156156
with:
157157
# TODO: this build does not match the build in release.yml, so we use a different cache key
158158
# ideally, the builds should match, similar to the CUDA build above so that we would be able

‎.github/workflows/build-msys.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/checkout@v6
3636

3737
#- name: ccache
38-
# uses: ggml-org/ccache-action@v1.2.16
38+
# uses: ggml-org/ccache-action@v1.2.24
3939
# with:
4040
# key: msys-windows-2025-x64
4141
# variant: ccache

‎.github/workflows/build-opencl.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/checkout@v6
4545

4646
- name: ccache
47-
uses: ggml-org/ccache-action@v1.2.21
47+
uses: ggml-org/ccache-action@v1.2.24
4848
with:
4949
key: opencl-windows-2025-x64
5050
variant: ccache

‎.github/workflows/build-openvino.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ env:
3232
LLAMA_ARG_LOG_COLORS: 1
3333
LLAMA_ARG_LOG_PREFIX: 1
3434
LLAMA_ARG_LOG_TIMESTAMPS: 1
35-
# TODO: fix and re-enable the `test-llama-archs` and `test-recurrent-state-rollback`
36-
CTEST_EXCLUDE: "test-llama-archs|^test-recurrent-state-rollback"
35+
# TODO: fix failing tests on OpenVINO backend
36+
CTEST_EXCLUDE: "test-llama-archs|^test-recurrent-state-|test-backend-ops|test-save-load-state"
3737

3838
jobs:
3939
ubuntu-24-openvino:
@@ -105,7 +105,7 @@ jobs:
105105
uses: actions/checkout@v6
106106

107107
- name: ccache
108-
uses: ggml-org/ccache-action@v1.2.21
108+
uses: ggml-org/ccache-action@v1.2.24
109109
with:
110110
key: openvino-windows-2022
111111
variant: ccache

0 commit comments

Comments
 (0)