fix paths and mkdir (workflow)

This commit is contained in:
Mathieu Broillet 2024-08-28 14:14:40 +02:00
parent 8d8560dd72
commit 0d96ae2df3
Signed by: mathieu
GPG Key ID: A08E484FE95074C1
2 changed files with 5 additions and 2 deletions

View File

@ -62,11 +62,14 @@ jobs:
# Step 5: Copy bitsandbytes wheel artifact to host # Step 5: Copy bitsandbytes wheel artifact to host
- name: Copy bitsandbytes wheel to host - name: Copy bitsandbytes wheel to host
run: | run: |
mkdir -p /tmp/bitsandbytes/dist
docker cp prebuilt-container:/tmp/bitsandbytes/dist /tmp/bitsandbytes/dist docker cp prebuilt-container:/tmp/bitsandbytes/dist /tmp/bitsandbytes/dist
# Step 6: Copy llama-cpp-python wheel artifact to host # Step 6: Copy llama-cpp-python wheel artifact to host
- name: Copy llama-cpp-python wheel to host - name: Copy llama-cpp-python wheel to host
run: | run: |
mkdir -p /tmp/llama-cpp-python/dist
docker cp prebuilt-container:/tmp/llama-cpp-python/dist /tmp/llama-cpp-python/dist docker cp prebuilt-container:/tmp/llama-cpp-python/dist /tmp/llama-cpp-python/dist
# Step 7: Upload bitsandbytes wheel artifact # Step 7: Upload bitsandbytes wheel artifact

View File

@ -2,7 +2,7 @@
# ROCM bitsandbytes # ROCM bitsandbytes
## Clone repo and install python requirements ## Clone repo and install python requirements
git clone --depth 1 -b multi-backend-refactor https://github.com/bitsandbytes-foundation/bitsandbytes.git git clone --depth 1 -b multi-backend-refactor https://github.com/bitsandbytes-foundation/bitsandbytes.git /tmp/bitsandbytes
cd /tmp/bitsandbytes cd /tmp/bitsandbytes
pip3 install -r requirements-dev.txt pip3 install -r requirements-dev.txt
## Build ## Build
@ -13,6 +13,6 @@ python3.10 setup.py bdist_wheel --universal
# ROCM llama-cpp-python # ROCM llama-cpp-python
## Clone repo and install python requirements ## Clone repo and install python requirements
git clone --recurse-submodules https://github.com/abetlen/llama-cpp-python.git git clone --recurse-submodules https://github.com/abetlen/llama-cpp-python.git /tmp/llama-cpp-python
cd /tmp/llama-cpp-python cd /tmp/llama-cpp-python
CMAKE_ARGS="-DGGML_HIPBLAS=on" python3.10 -m build --wheel CMAKE_ARGS="-DGGML_HIPBLAS=on" python3.10 -m build --wheel