fix wheel creation + bump llama.cpp version again

This commit is contained in:
Alex O'Connell
2024-08-17 00:00:41 -04:00
parent 9d0295b4f5
commit 1d50c3f589
4 changed files with 10 additions and 3 deletions

View File

@@ -87,6 +87,9 @@ jobs:
git clone --quiet --recurse-submodules https://github.com/abetlen/llama-cpp-python --branch "v${{ env.EMBEDDED_LLAMA_CPP_PYTHON_VERSION }}"
cd llama-cpp-python
# for some reason, scikit-build-core v0.9.7+ doesn't produce properly tagged musllinux wheels
sed -i -e 's/scikit-build-core\[pyproject\]>=0.9.2/scikit-build-core\[pyproject\]==0.9.6/g' pyproject.toml
export CMAKE_ARGS="-DLLAVA_BUILD=OFF -DGGML_NATIVE=OFF ${{ matrix.extra_defines }}"
python3 -m build --wheel

View File

@@ -384,4 +384,4 @@ OPTIONS_OVERRIDES = {
}
INTEGRATION_VERSION = "0.3.4"
EMBEDDED_LLAMA_CPP_PYTHON_VERSION = "0.2.87"
EMBEDDED_LLAMA_CPP_PYTHON_VERSION = "0.2.88"

View File

@@ -2,11 +2,15 @@
# Don't run this. This is executed inside of the home assistant container to build the wheel
apk update
apk add build-base python3-dev
apk add build-base python3-dev cmake
cd /tmp
git clone --recurse-submodules https://github.com/abetlen/llama-cpp-python --branch $1
cd llama-cpp-python
pip3 install build
# for some reason, scikit-build-core v0.9.7+ doesn't produce properly tagged musllinux wheels
sed -i -e 's/scikit-build-core\[pyproject\]>=0.9.2/scikit-build-core\[pyproject\]==0.9.6/g' pyproject.toml
python3 -m build --wheel
cp -f ./dist/*.whl /tmp/dist/

View File

@@ -1,6 +1,6 @@
#!/bin/bash
VERSION_TO_BUILD="v0.2.87"
VERSION_TO_BUILD="v0.2.88"
# make python11 wheels
# docker run -it --rm \