Skip to content

Commit adfec80

Browse files
committed
Merge branch 'master' into iq2_nl-iq3_nl-cpu
2 parents 2c08292 + 8ea2902 commit adfec80

128 files changed

Lines changed: 6578 additions & 3409 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/actions/windows-setup-cuda/action.yml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,19 @@ runs:
137137
run: |
138138
mkdir -p "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4"
139139
choco install unzip -y
140-
curl -O "https://packages.nvidia.com/bin-archive/pool/windows-x86_64/5B515474-7E78-11F1-8656-C51E4F4B317F/cccl-windows-x86_64-13.3.4.1.2-archive.zip"
141-
curl -O "https://packages.nvidia.com/bin-archive/pool/windows-x86_64/5B515474-7E78-11F1-8656-C51E4F4B317F/cuda_crt-windows-x86_64-13.4.46-archive.zip"
142-
curl -O "https://packages.nvidia.com/bin-archive/pool/windows-x86_64/5B515474-7E78-11F1-8656-C51E4F4B317F/cuda_nvcc-windows-x86_64-13.4.46-archive.zip"
143-
curl -O "https://packages.nvidia.com/bin-archive/pool/windows-x86_64/5B515474-7E78-11F1-8656-C51E4F4B317F/libnvvm-windows-x86_64-13.4.46-archive.zip"
144-
curl -O "https://packages.nvidia.com/bin-archive/pool/windows-arm64/5B515474-7E78-11F1-8656-C51E4F4B317F/cuda_cudart-windows-arm64-13.4.46-archive.zip"
145-
curl -O "https://packages.nvidia.com/bin-archive/pool/windows-arm64/5B515474-7E78-11F1-8656-C51E4F4B317F/libcublas-windows-arm64-13.7.0.10-archive.zip"
140+
curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cccl/windows-x86_64/cccl-windows-x86_64-13.3.4.2.1-archive.zip"
141+
curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_crt/windows-x86_64/cuda_crt-windows-x86_64-13.4.59-archive.zip"
142+
curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/windows-x86_64/cuda_nvcc-windows-x86_64-13.4.59-archive.zip"
143+
curl -O "https://developer.download.nvidia.com/compute/cuda/redist/libnvvm/windows-x86_64/libnvvm-windows-x86_64-13.4.59-archive.zip"
144+
curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_cudart/windows-arm64/cuda_cudart-windows-arm64-13.4.49-archive.zip"
145+
curl -O "https://developer.download.nvidia.com/compute/cuda/redist/libcublas/windows-arm64/libcublas-windows-arm64-13.7.0.27-archive.zip"
146146
unzip '*.zip' -d "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4"
147-
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\cccl-windows-x86_64-13.3.4.1.2-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
148-
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\cuda_crt-windows-x86_64-13.4.46-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
149-
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\cuda_nvcc-windows-x86_64-13.4.46-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
150-
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\libnvvm-windows-x86_64-13.4.46-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
151-
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\cuda_cudart-windows-arm64-13.4.46-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
152-
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\libcublas-windows-arm64-13.7.0.10-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
147+
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\cccl-windows-x86_64-13.3.4.2.1-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
148+
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\cuda_crt-windows-x86_64-13.4.59-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
149+
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\cuda_nvcc-windows-x86_64-13.4.59-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
150+
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\libnvvm-windows-x86_64-13.4.59-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
151+
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\cuda_cudart-windows-arm64-13.4.49-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
152+
xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\libcublas-windows-arm64-13.7.0.27-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" /E /I /H /Y
153153
echo "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
154154
echo "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
155155
echo "CUDA_PATH_V13_4=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.4" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333
LLAMA_ARG_LOG_PREFIX: 1
3434
LLAMA_ARG_LOG_TIMESTAMPS: 1
3535
# TODO: fix failing tests on OpenVINO backend
36-
CTEST_EXCLUDE: "test-llama-archs|^test-recurrent-state-|test-backend-ops|test-save-load-state"
36+
CTEST_EXCLUDE: "test-llama-archs|^test-recurrent-state-|test-save-load-state"
3737

3838
jobs:
3939
ubuntu-24-openvino:

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

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -106,83 +106,3 @@ jobs:
106106
wget https://huggingface.co/karpathy/tinyllamas/resolve/main/stories260K/stories260K.bin
107107
./bin/llama-convert-llama2c-to-ggml --copy-vocab-from-model ./tok512.bin --llama2c-model stories260K.bin --llama2c-output-model stories260K.gguf
108108
./bin/llama-completion -m stories260K.gguf -p "One day, Lily met a Shoggoth" -n 500 -c 256
109-
110-
ubuntu-riscv64-native-sanitizer:
111-
runs-on: ubuntu-24.04-riscv
112-
113-
continue-on-error: true
114-
115-
strategy:
116-
matrix:
117-
sanitizer: [ADDRESS, THREAD, UNDEFINED]
118-
build_type: [Debug]
119-
120-
steps:
121-
- name: Install dependencies
122-
run: |
123-
# Set gcc-14 and g++-14 as the default compilers
124-
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100
125-
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100
126-
127-
git lfs install
128-
129-
- name: GCC version check
130-
run: |
131-
gcc --version
132-
g++ --version
133-
134-
- name: Clone
135-
id: checkout
136-
uses: actions/checkout@v6
137-
138-
# note: sparing some ccache since these jobs run on dedicated runners that are not part of the organitzation
139-
#- name: ccache
140-
# uses: ggml-org/ccache-action@v1.2.24
141-
# with:
142-
# key: riscv-ubuntu-native-sanitizer-${{ matrix.sanitizer }}-${{ matrix.build_type }}
143-
# evict-old-files: 1d
144-
# save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
145-
146-
- name: Build
147-
id: cmake_build
148-
if: ${{ matrix.sanitizer != 'THREAD' }}
149-
run: |
150-
cmake -B build \
151-
-DLLAMA_OPENSSL=OFF \
152-
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
153-
-DGGML_OPENMP=ON \
154-
-DLLAMA_BUILD_EXAMPLES=ON \
155-
-DLLAMA_BUILD_TOOLS=ON \
156-
-DLLAMA_BUILD_TESTS=OFF \
157-
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
158-
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
159-
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
160-
-DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
161-
-DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14
162-
163-
cmake --build build --config ${{ matrix.build_type }} -j $(nproc)
164-
165-
- name: Build (no OpenMP)
166-
id: cmake_build_no_openmp
167-
if: ${{ matrix.sanitizer == 'THREAD' }}
168-
run: |
169-
cmake -B build \
170-
-DLLAMA_OPENSSL=OFF \
171-
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
172-
-DGGML_OPENMP=OFF \
173-
-DLLAMA_BUILD_EXAMPLES=ON \
174-
-DLLAMA_BUILD_TOOLS=ON \
175-
-DLLAMA_BUILD_TESTS=OFF \
176-
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
177-
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
178-
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
179-
-DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
180-
-DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14
181-
182-
cmake --build build --config ${{ matrix.build_type }} -j $(nproc)
183-
184-
- name: Test
185-
id: cmake_test
186-
run: |
187-
cd build
188-
ctest -L main --verbose --timeout 900

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ jobs:
101101
102102
- name: Test
103103
id: cmake_test
104-
# skip run in Debug - very slow
105-
if: ${{ matrix.sanitizer != 'UNDEFINED' }}
106104
run: |
107105
cd build
108106
ctest -L main -E tokenizer --verbose --timeout 900

‎.github/workflows/build-self-hosted.yml‎

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,48 @@ env:
5858

5959
jobs:
6060
gpu-cuda:
61-
runs-on: [self-hosted, Linux, NVIDIA]
61+
runs-on: "hf-jobs-t4-small:cuda13"
6262

6363
steps:
6464
- name: Clone
6565
id: checkout
6666
uses: actions/checkout@v6
6767

68+
- name: Install dependencies
69+
run: |
70+
sudo apt update
71+
sudo apt install -y cmake libssl-dev time unzip wget python3 python3-venv python3-pip
72+
73+
- name: ccache
74+
uses: ggml-org/ccache-action@v1.2.24
75+
with:
76+
restore: false
77+
save: false
78+
79+
- name: ccache-buckets-restore
80+
uses: ./.github/actions/ccache-buckets
81+
with:
82+
key: self-hosted-gpu-cuda
83+
folder: llama.cpp
84+
hf_bucket: ggml-org/cache
85+
6886
- name: Test
6987
id: ggml-ci
7088
run: |
7189
nvidia-smi
72-
GG_BUILD_CUDA=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
90+
GG_BUILD_CUDA=1 CUDACXX=/usr/local/cuda/bin/nvcc bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
91+
92+
- name: ccache-buckets-save
93+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
94+
uses: ./.github/actions/ccache-buckets
95+
env:
96+
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
97+
with:
98+
key: self-hosted-gpu-cuda
99+
folder: llama.cpp
100+
evict-old-files: 1d
101+
hf_bucket: ggml-org/cache
102+
save: true
73103

74104
gpu-rocm:
75105
runs-on: [self-hosted, Linux, AMD]
@@ -365,7 +395,11 @@ jobs:
365395
- name: Test
366396
id: ggml-ci
367397
run: |
368-
LLAMA_ARG_THREADS=$(nproc) GG_BUILD_HIGH_PERF=1 GG_BUILD_NO_BF16=1 GG_BUILD_EXTRA_TESTS_0=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
398+
LLAMA_ARG_THREADS=$(nproc) \
399+
GG_BUILD_HIGH_PERF=1 \
400+
GG_BUILD_NO_BF16=1 \
401+
GG_BUILD_EXTRA_TESTS_0=1 \
402+
bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
369403
370404
cpu-arm64-graviton4-kleidiai:
371405
runs-on: ah-ubuntu_22_04-c8g_8x
@@ -404,6 +438,8 @@ jobs:
404438
- name: Test
405439
id: ggml-ci
406440
run: |
441+
LLAMA_ARG_THREADS=$(nproc) \
407442
GG_BUILD_KLEIDIAI=1 \
408443
GG_BUILD_EXTRA_TESTS_0=1 \
409-
bash ./ci/run.sh ./tmp/results ./tmp/mnt
444+
GG_BUILD_HIGH_PERF=1 \
445+
bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,7 @@ jobs:
164164
export GGML_VK_VISIBLE_DEVICES=0
165165
export GGML_VK_DISABLE_F16=1
166166
export GGML_VK_DISABLE_COOPMAT=1
167-
# This is using llvmpipe and runs slower than other backends
168-
# test-backend-ops is too slow on llvmpipe, skip it
169-
ctest -L main -E test-backend-ops --verbose --timeout 900
167+
ctest -L main --verbose --timeout 900
170168
171169
windows:
172170
runs-on: windows-2025

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,4 @@ jobs:
190190
id: cmake_test
191191
run: |
192192
cd build
193-
# This is using llvmpipe and runs slower than other backends
194-
# test-backend-ops is too slow on llvmpipe, skip it
195-
ctest -L main -E test-backend-ops --verbose --timeout 900
193+
ctest -L main --verbose --timeout 900

‎.github/workflows/fusion.yml‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Fusion
2+
3+
on:
4+
workflow_dispatch: # allows manual triggering
5+
push:
6+
branches:
7+
- master
8+
paths: [
9+
'.github/workflows/fusion.yml',
10+
'ggml/**',
11+
'tests/fusion/**',
12+
'tests/test-fusion.cpp'
13+
]
14+
15+
pull_request:
16+
types: [opened, synchronize, reopened]
17+
paths: [
18+
'.github/workflows/fusion.yml',
19+
'ggml/**',
20+
'tests/fusion/**',
21+
'tests/test-fusion.cpp'
22+
]
23+
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
26+
cancel-in-progress: true
27+
28+
env:
29+
GGML_NLOOP: 3
30+
GGML_N_THREADS: 1
31+
LLAMA_ARG_LOG_COLORS: 1
32+
LLAMA_ARG_LOG_PREFIX: 1
33+
LLAMA_ARG_LOG_TIMESTAMPS: 1
34+
35+
jobs:
36+
# TODO: add jobs for other backends as they adopt the fusion debug API
37+
metal:
38+
runs-on: [self-hosted, macOS, ARM64]
39+
40+
steps:
41+
- name: Clone
42+
id: checkout
43+
uses: actions/checkout@v6
44+
45+
- name: Build
46+
id: cmake_build
47+
run: |
48+
cmake -B build \
49+
-DCMAKE_BUILD_TYPE=Release \
50+
-DLLAMA_FATAL_WARNINGS=ON \
51+
-DLLAMA_OPENSSL=OFF \
52+
-DGGML_SCHED_NO_REALLOC=ON \
53+
-DGGML_BLAS=OFF \
54+
-DGGML_METAL=ON
55+
time cmake --build build --config Release --target test-llama-archs -j $(sysctl -n hw.logicalcpu)
56+
time cmake --build build --config Release --target test-fusion -j $(sysctl -n hw.logicalcpu)
57+
58+
- name: Generate models
59+
id: generate_models
60+
run: |
61+
rm -rf build-ci-models && mkdir -p build-ci-models
62+
./build/bin/test-llama-archs -o build-ci-models
63+
64+
- name: Test fusion
65+
id: test_fusion
66+
run: |
67+
./build/bin/test-fusion --models build-ci-models --device MTL0 --check tests/fusion/MTL.csv

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ jobs:
17171717
- [Windows arm64 (OpenCL Adreno)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-opencl-adreno-arm64.zip)
17181718
- [Windows x64 (CUDA 12)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-cuda-12.4-x64.zip) - [CUDA 12.4 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/cudart-llama-bin-win-cuda-12.4-x64.zip)
17191719
- [Windows x64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-cuda-13.3-x64.zip) - [CUDA 13.3 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/cudart-llama-bin-win-cuda-13.3-x64.zip)
1720-
- [Windows arm64 (CUDA 13) (preview)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-cuda-13.4-arm64.zip) - [CUDA 13.4 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/cudart-llama-bin-win-cuda-13.4-arm64.zip)
1720+
- [Windows arm64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-cuda-13.4-arm64.zip) - [CUDA 13.4 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/cudart-llama-bin-win-cuda-13.4-arm64.zip)
17211721
- [Windows x64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-vulkan-x64.zip)
17221722
- [Windows x64 (OpenVINO)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-openvino-${{ needs.windows-openvino.outputs.openvino_version }}-x64.zip)
17231723
- [Windows x64 (SYCL)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip)

‎.github/workflows/server-sanitize.yml‎

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ on:
3232
]
3333

3434
env:
35+
# note: this is dud token to avoid rate limiting (https://github.com/ggml-org/llama.cpp/pull/25706#issuecomment-4979941302)
36+
HF_TOKEN: ${{ secrets.HF_TOKEN_CI }}
3537
LLAMA_ARG_LOG_COLORS: 1
3638
LLAMA_ARG_LOG_PREFIX: 1
3739
LLAMA_ARG_LOG_TIMESTAMPS: 1
@@ -43,7 +45,7 @@ concurrency:
4345

4446
jobs:
4547
server:
46-
runs-on: [self-hosted, CPU, Linux, llama-server]
48+
runs-on: hf-jobs-cpu-upgrade
4749

4850
strategy:
4951
matrix:
@@ -52,27 +54,31 @@ jobs:
5254
fail-fast: false
5355

5456
steps:
55-
#- name: Dependencies
56-
# id: depends
57-
# run: |
58-
# sudo apt-get update
59-
# sudo apt-get -y install \
60-
# build-essential \
61-
# xxd \
62-
# git \
63-
# cmake \
64-
# curl \
65-
# wget \
66-
# language-pack-en \
67-
# libssl-dev
68-
6957
- name: Clone
7058
id: checkout
7159
uses: actions/checkout@v6
7260
with:
7361
fetch-depth: 0
7462
ref: ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }}
7563

64+
- name: Install dependencies
65+
run: |
66+
sudo apt update
67+
sudo apt install -y build-essential cmake python3-full
68+
69+
- name: ccache
70+
uses: ggml-org/ccache-action@v1.2.24
71+
with:
72+
restore: false
73+
save: false
74+
75+
- name: ccache-buckets-restore
76+
uses: ./.github/actions/ccache-buckets
77+
with:
78+
key: server-sanitize-${{ matrix.sanitizer }}
79+
folder: llama.cpp
80+
hf_bucket: ggml-org/cache
81+
7682
- name: Build
7783
id: cmake_build
7884
run: |
@@ -87,9 +93,17 @@ jobs:
8793
-DLLAMA_SANITIZE_UNDEFINED=${{ matrix.sanitizer == 'UNDEFINED' }}
8894
cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
8995
90-
- name: Python setup
91-
id: setup_python
92-
uses: actions/setup-python@v7
96+
- name: ccache-buckets-save
97+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
98+
uses: ./.github/actions/ccache-buckets
99+
env:
100+
HF_TOKEN: ${{ secrets.HF_TOKEN_CACHE_OUTPUT }}
101+
with:
102+
key: server-sanitize-${{ matrix.sanitizer }}
103+
folder: llama.cpp
104+
evict-old-files: 1d
105+
hf_bucket: ggml-org/cache
106+
save: true
93107

94108
- name: Install Python dependencies
95109
run: |

0 commit comments

Comments
 (0)