File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build Stable CPU Release (v0.3.16)
22
33on :
4- workflow_dispatch : # Allows you to manually trigger the build
4+ workflow_dispatch :
55
66permissions :
7- contents : write # Needed to upload the release
7+ contents : write
88
99jobs :
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
You can’t perform that action at this time.
0 commit comments