Skip to content

Koboldcpp Mac

Koboldcpp Mac #11

name: Koboldcpp OSX
on: workflow_dispatch
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
NOAVX2: 1
jobs:
osx:
runs-on: macos-latest
steps:
- name: Clone
id: checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}
- name: Dependencies
id: depends
run: |
pip install customtkinter pyinstaller tk
- name: Build
id: make_build
run: |
make LLAMA_METAL=1
pyinstaller --noconfirm --onefile --collect-all customtkinter --collect-all psutil --add-data './koboldcpp_default.so:.' --add-data './kcpp_adapters:./kcpp_adapters' --add-data './klite.embd:.' --add-data './kcpp_docs.embd:.' --add-data './kcpp_sdui.embd:.' --add-data './taesd.embd:.' --add-data './taesd_xl.embd:.' --add-data './rwkv_vocab.embd:.' --add-data './rwkv_world_vocab.embd:.' --clean --console koboldcpp.py -n "koboldcpp-osx-arm64"
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: kcpp_linux_binary
path: dist/