pantry/projects/github.com/ggerganov/llama.cpp/package.yml
Max Howell d8a3e7c646
+llama.cpp (#844)
llama.cpp -p "Getting paid to write open source can be accomplished in 3 simple steps:"
2023-03-24 17:53:39 -04:00

40 lines
967 B
YAML

distributable:
url: https://github.com/ggerganov/llama.cpp/archive/refs/tags/master-3cd8dde.tar.gz
strip-components: 1
versions:
- 2023.03.23
dependencies:
python.org: ^3.11
provides:
- bin/llama.cpp
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
freedesktop.org/pkg-config: ~0.29
gnu.org/wget: '*'
script: |
mkdir -p {{prefix}}/bin {{prefix}}/tbin {{prefix}}/share
make
mv main {{prefix}}/tbin/llama.cpp
mv props/llama.cpp {{prefix}}/bin
mv props/llama-fetch {{prefix}}/tbin
mv $SRCROOT/prompts {{prefix}}/share
wget \
--no-check-certificate \
'https://gist.githubusercontent.com/eiz/828bddec6162a023114ce19146cb2b82/raw/6b1d2b192815e6d61386a9a8853f2c3293b3f568/gistfile1.txt' \
-O {{prefix}}/tbin/upgrade-model.py
chmod +x {{prefix}}/tbin/upgrade-model.py
test: |
{{prefix}}/tbin/llama.cpp --help
# testing more than this requires downloading the models 😬