From 97009a2d8e6ac6eca9bf6f5aa1c69afe89531814 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 30 May 2024 12:08:21 -0400 Subject: [PATCH] fix(llama.cpp) closes #6273 --- projects/github.com/ggerganov/llama.cpp/package.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/projects/github.com/ggerganov/llama.cpp/package.yml b/projects/github.com/ggerganov/llama.cpp/package.yml index 460232cc..b4abdc62 100644 --- a/projects/github.com/ggerganov/llama.cpp/package.yml +++ b/projects/github.com/ggerganov/llama.cpp/package.yml @@ -54,7 +54,15 @@ build: mkdir -p {{prefix}}/share mv prompts {{prefix}}/share - - install -D convert.py $VIRTUAL_ENV/bin/convert.py + - | + if test -f convert.py; then + install -D convert.py $VIRTUAL_ENV/bin/convert.py + elif test -f examples/convert-legacy-llama.py; then + install -D examples/convert-legacy-llama.py $VIRTUAL_ENV/bin/convert.py + else + echo "No convert.py found" + false + fi - | bkpyvenv stage {{prefix}} {{version}}