Skip to content

Commit a8fc018

Browse files
updated cpu build
1 parent a39144a commit a8fc018

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
name: Build Stable CPU Release (v0.3.16)
22

33
on:
4-
workflow_dispatch: # Allows you to manually trigger the build
4+
workflow_dispatch:
55

66
permissions:
7-
contents: write # Needed to upload the release
7+
contents: write
88

99
jobs:
1010
build_cpu_wheel:
1111
name: Build CPU Wheel for Hugging Face
12-
runs-on: ubuntu-latest # Matches Hugging Face's OS
12+
runs-on: ubuntu-latest
1313

1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
17-
# ⚡ TIME TRAVEL ⚡
18-
# We explicitly fetch the latest stable v0.3.16 tag.
17+
# ⚡ FIX: FETCH FROM UPSTREAM ⚡
18+
# We grab the code from the original author (abetlen) because
19+
# your fork might be missing the tags.
20+
repository: abetlen/llama-cpp-python
1921
ref: v0.3.16
2022
submodules: recursive
2123

2224
- name: Set up Python 3.11
2325
uses: actions/setup-python@v5
2426
with:
25-
python-version: '3.11' # Matches your Dockerfile
27+
python-version: '3.11'
2628

2729
- name: Install Build Tools
2830
run: |
2931
pip install build wheel scikit-build-core cmake
3032
3133
- name: ⚡ Compile Optimized CPU Wheel (v0.3.16) ⚡
3234
env:
33-
# Force CPU-only build.
34-
# We use "pthread" to fix the linker error you saw earlier.
35+
# Force CPU-only build with pthread support
3536
CMAKE_ARGS: "-DLLAMA_BLAS=OFF -DLLAMA_CUBLAS=OFF -DLLAMA_METAL=OFF -DCMAKE_C_FLAGS='-pthread' -DCMAKE_CXX_FLAGS='-pthread'"
3637
FORCE_CMAKE: "1"
3738
run: |
38-
# Build the wheel
3939
python -m build --wheel
4040
4141
- name: Create Release

0 commit comments

Comments
 (0)