Skip to content

Commit

Permalink
fix(llama.cpp)
Browse files Browse the repository at this point in the history
 closes #8273
  • Loading branch information
jhheider committed Dec 24, 2024
1 parent fbed090 commit e6df5b3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions projects/github.com/ggerganov/llama.cpp/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributable:
url: https://github.com/ggerganov/llama.cpp/archive/refs/tags/b{{version.raw}}.tar.gz
url: https://github.com/ggerganov/llama.cpp/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1

versions:
Expand All @@ -11,8 +11,7 @@ display-name: LLaMA.cpp
provides:
- bin/llama-cli
- bin/llama.cpp
# NOTE! we do not “provide” convert.py. ∵ it’s too generic
# do `pkgx +github.com∕ggerganov∕llama.cpp convert.py`
- bin/convert.py

platforms:
- linux
Expand All @@ -22,7 +21,7 @@ platforms:
dependencies:
pkgx.sh: ^1
linux:
gnu.org/gcc: '*' # clang doesn't provide omp.h, and we need libstdc++
gnu.org/gcc/libstdcxx: '*' # clang doesn't provide omp.h, and we need libstdc++

build:
dependencies:
Expand All @@ -31,6 +30,8 @@ build:
curl.se: '*'
python.org: ~3.11
cmake.org: 3
linux:
gnu.org/gcc: '*'
linux/aarch64:
kernel.org/linux-headers: '*' # hwcap.h
env:
Expand Down Expand Up @@ -118,6 +119,11 @@ build:
- bkpyvenv stage {{prefix}} {{version}}
- $VIRTUAL_ENV/bin/pip install -r requirements.txt
- bkpyvenv seal {{prefix}} convert.py
# match the other binaries' shebangs
- run:
- SHEBANG=$(head -n1 tqdm)
- sed -i "1s|^.*$|#!$SHEBANG|" convert.py
working-directory: ${{prefix}}/venv/bin

test:
# broke in v2453
Expand Down

0 comments on commit e6df5b3

Please sign in to comment.