fix(llama.cpp)

closes #4606
This commit is contained in:
Jacob Heider 2023-12-27 10:12:17 -05:00 committed by Jacob Heider
parent c137ff6003
commit c0973b0a46

View file

@ -6,8 +6,7 @@ versions:
github: ggerganov/llama.cpp/tags github: ggerganov/llama.cpp/tags
strip: /^b/ strip: /^b/
display-name: display-name: LLaMA.cpp
LLaMA.cpp
provides: provides:
- bin/llama.cpp - bin/llama.cpp
@ -27,6 +26,7 @@ build:
dependencies: dependencies:
gnu.org/coreutils: '*' gnu.org/coreutils: '*'
git-scm.org: '*' git-scm.org: '*'
curl.se: '*'
env: env:
VIRTUAL_ENV: ${{prefix}}/venv VIRTUAL_ENV: ${{prefix}}/venv
CC: clang CC: clang
@ -38,6 +38,11 @@ build:
sed -i.bak -e's/\(MK_.* -march=native -mtune=native\)/#\1/g' Makefile sed -i.bak -e's/\(MK_.* -march=native -mtune=native\)/#\1/g' Makefile
rm Makefile.bak rm Makefile.bak
if: linux/x86-64 if: linux/x86-64
# this commit breaks linux/aarch64 - remove once fixed
- run: curl -LSs 'https://github.com/ggerganov/llama.cpp/pull/4630/commits/42f5246effafddcf87d67656b58e95030f4bc454.patch' | patch -p1 -R
if: '>=1705'
- make --jobs {{hw.concurrency}} - make --jobs {{hw.concurrency}}
- | - |