Skip to content

Commit

Permalink
fix: pack llama-server
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Jan 13, 2025
1 parent 1903170 commit ba7e5af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/template-quality-gate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:
name: "arm64"
runs-on: "ubuntu-2004-arm64"
cmake-flags: "-DCORTEXLLAMA_VERSION=${{github.event.pull_request.head.sha}} -DLLAMA_BUILD_EXAMPLES=ON -DLLAMA_BUILD_SERVER=ON -DGGML_NATIVE=OFF -DBUILD_SHARED_LIBS=OFF -DLLAMA_BUILD_COMMON=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE='Release' -GNinja"
run-e2e: true
run-e2e: false
vulkan: false
ccache: true
ccache-dir: "/home/runner/.ccache"
- os: "linux"
name: "amd64-avx2"
runs-on: "ubuntu-20-04"
cmake-flags: "-DCORTEXLLAMA_VERSION=${{github.event.pull_request.head.sha}} -DLLAMA_BUILD_EXAMPLES=ON -DLLAMA_BUILD_SERVER=ON -DGGML_NATIVE=OFF -DBUILD_SHARED_LIBS=OFF -DLLAMA_BUILD_COMMON=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE='Release' -GNinja"
run-e2e: true
run-e2e: false
vulkan: false
ccache: true
ccache-dir: "/home/runner/.ccache"
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
name: "amd64-avx2"
runs-on: "windows-cuda-11-7"
cmake-flags: "-DCORTEXLLAMA_VERSION=${{github.event.pull_request.head.sha}} -DLLAMA_BUILD_EXAMPLES=ON -DLLAMA_BUILD_SERVER=ON -DGGML_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DBUILD_SHARED_LIBS=OFF -DLLAMA_BUILD_COMMON=ON -DCMAKE_BUILD_TYPE='Release' -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -GNinja"
run-e2e: true
run-e2e: false
vulkan: false
ccache: false
ccache-dir: 'C:\Users\ContainerAdministrator\AppData\Local\ccache'
Expand All @@ -176,7 +176,7 @@ jobs:
name: "amd64-avx"
runs-on: "windows-cuda-12-0"
cmake-flags: "-DCORTEXLLAMA_VERSION=${{github.event.pull_request.head.sha}} -DLLAMA_BUILD_EXAMPLES=ON -DLLAMA_BUILD_SERVER=ON -DGGML_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DGGML_AVX2=OFF -DBUILD_SHARED_LIBS=OFF -DLLAMA_BUILD_COMMON=ON -DCMAKE_BUILD_TYPE='Release' -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -GNinja"
run-e2e: true
run-e2e: false
vulkan: false
ccache: false
ccache-dir: 'C:\Users\ContainerAdministrator\AppData\Local\ccache'
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,18 @@ endif
pre-package:
ifeq ($(OS),Windows_NT)
@powershell -Command "mkdir -p cortex.llamacpp; cp build\engine.dll cortex.llamacpp\;"
@powershell -Command "cp build\bin\llama-server.exe cortex.llamacpp\;"
@powershell -Command "cp .\.github\patches\windows\msvcp140.dll cortex.llamacpp\;"
@powershell -Command "cp .\.github\patches\windows\vcruntime140_1.dll cortex.llamacpp\;"
@powershell -Command "cp .\.github\patches\windows\vcruntime140.dll cortex.llamacpp\;"
@powershell -Command "cp .\.github\patches\windows\vcomp140.dll cortex.llamacpp\;"
else ifeq ($(shell uname -s),Linux)
@mkdir -p cortex.llamacpp; \
cp build/bin/llama-server cortex.llamacpp/; \
cp build/libengine.so cortex.llamacpp/;
else
@mkdir -p cortex.llamacpp; \
cp build/bin/llama-server cortex.llamacpp/; \
cp build/libengine.dylib cortex.llamacpp/;
endif

Expand Down

0 comments on commit ba7e5af

Please sign in to comment.