Skip to content

Commit 5ecd9ee

Browse files
authored
Merge branch 'main' into dependabot/github_actions/docker/setup-buildx-action-4
2 parents 57f0085 + aa944e4 commit 5ecd9ee

3 files changed

Lines changed: 19 additions & 14 deletions

File tree

.github/workflows/build-and-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
shell: cmd
4343

4444
- name: Build wheels
45-
uses: pypa/cibuildwheel@v2.22.0
45+
uses: pypa/cibuildwheel@v3.4.1
4646
env:
4747
# Keep repair disabled by default for non-Linux platforms in this job.
4848
CIBW_REPAIR_WHEEL_COMMAND: ""
@@ -80,7 +80,7 @@ jobs:
8080
submodules: "recursive"
8181

8282
- name: Build wheels
83-
uses: pypa/cibuildwheel@v2.22.0
83+
uses: pypa/cibuildwheel@v3.4.1
8484
env:
8585
CIBW_SKIP: "pp*"
8686
CIBW_REPAIR_WHEEL_COMMAND: "LD_LIBRARY_PATH=$PWD/llama_cpp/lib auditwheel repair -w {dest_dir} {wheel}"
@@ -133,7 +133,7 @@ jobs:
133133
platforms: linux/riscv64
134134

135135
- name: Build wheels
136-
uses: pypa/cibuildwheel@v3.1.2
136+
uses: pypa/cibuildwheel@v3.4.1
137137
env:
138138
CIBW_SKIP: "*musllinux* pp*"
139139
CIBW_REPAIR_WHEEL_COMMAND: ""

.github/workflows/build-wheels-metal.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
shell: bash
3333

3434
- name: Build wheels
35-
uses: pypa/cibuildwheel@v2.22.0
35+
uses: pypa/cibuildwheel@v3.4.1
3636
env:
3737
# disable repair
3838
CIBW_REPAIR_WHEEL_COMMAND: ""

.github/workflows/test.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ env:
1414
RECURRENT_MODEL_FILE: mamba-130m-hf.Q2_K.gguf
1515
HYBRID_REPO_ID: tiiuae/Falcon-H1-Tiny-90M-Instruct-GGUF
1616
HYBRID_MODEL_FILE: Falcon-H1-Tiny-90M-Instruct-Q2_K.gguf
17-
MODEL_CACHE_KEY: qwen35-q8-mamba130m-q2-falconh1tiny-q2
17+
EMBEDDING_REPO_ID: CompendiumLabs/bge-small-en-v1.5-gguf
18+
EMBEDDING_MODEL_FILE: bge-small-en-v1.5-q4_k_m.gguf
19+
MODEL_CACHE_KEY: qwen35-q8-mamba130m-q2-falconh1tiny-q2-bge-small-q4
1820

1921
jobs:
2022
download-model:
@@ -26,16 +28,19 @@ jobs:
2628
python-version: "3.9"
2729
- name: Install huggingface-hub
2830
run: pip install huggingface-hub
31+
- name: Restore model cache
32+
uses: actions/cache@v5
33+
with:
34+
path: ~/.cache/huggingface/hub
35+
key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
36+
restore-keys: |
37+
${{ runner.os }}-model-qwen35-q8-mamba130m-q2-falconh1tiny-q2
2938
- name: Download model
3039
run: |
3140
hf download ${{ env.REPO_ID }} ${{ env.MODEL_FILE }}
3241
hf download ${{ env.RECURRENT_REPO_ID }} ${{ env.RECURRENT_MODEL_FILE }}
3342
hf download ${{ env.HYBRID_REPO_ID }} ${{ env.HYBRID_MODEL_FILE }}
34-
- name: Cache model
35-
uses: actions/cache@v4
36-
with:
37-
path: ~/.cache/huggingface/hub
38-
key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
43+
hf download ${{ env.EMBEDDING_REPO_ID }} ${{ env.EMBEDDING_MODEL_FILE }}
3944
4045
build-linux:
4146
needs: download-model
@@ -54,7 +59,7 @@ jobs:
5459
python-version: ${{ matrix.python-version }}
5560
cache: 'pip'
5661
- name: Restore model cache
57-
uses: actions/cache@v4
62+
uses: actions/cache@v5
5863
with:
5964
path: ~/.cache/huggingface/hub
6065
key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
@@ -86,7 +91,7 @@ jobs:
8691
cache: 'pip'
8792

8893
- name: Restore model cache
89-
uses: actions/cache@v4
94+
uses: actions/cache@v5
9095
with:
9196
path: ~/.cache/huggingface/hub
9297
key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
@@ -126,7 +131,7 @@ jobs:
126131
python3 -c "import platform; print(platform.machine(), platform.architecture())"
127132
128133
- name: Restore model cache
129-
uses: actions/cache@v4
134+
uses: actions/cache@v5
130135
with:
131136
path: ~/.cache/huggingface/hub
132137
key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}
@@ -162,7 +167,7 @@ jobs:
162167
python3 -c "import platform; print(platform.machine(), platform.architecture())"
163168
164169
- name: Restore model cache
165-
uses: actions/cache@v4
170+
uses: actions/cache@v5
166171
with:
167172
path: ~/.cache/huggingface/hub
168173
key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }}

0 commit comments

Comments
 (0)