2024-08-21 22:08:15 +00:00
|
|
|
#!/bin/bash
|
2024-08-21 06:55:05 +00:00
|
|
|
|
|
|
|
# Input variables
|
|
|
|
LLAMA_CPP_VERSION=${LLAMA_CPP_VERSION:-b3571}
|
|
|
|
LLAMA_CPP_PLATFORM=${LLAMA_CPP_PLATFORM:-cuda-cu11.7.1-x64}
|
|
|
|
OUTPUT_NAME=${OUTPUT_NAME:-tabby_x86_64-windows-msvc-cuda117}
|
|
|
|
|
|
|
|
NAME=llama-${LLAMA_CPP_VERSION}-bin-win-${LLAMA_CPP_PLATFORM}
|
|
|
|
ZIP_FILE=${NAME}.zip
|
|
|
|
|
|
|
|
curl https://github.com/ggerganov/llama.cpp/releases/download/${LLAMA_CPP_VERSION}/${ZIP_FILE} -L -o ${ZIP_FILE}
|
|
|
|
unzip ${ZIP_FILE} -d ${OUTPUT_NAME}
|
|
|
|
|
|
|
|
pushd ${OUTPUT_NAME}
|
|
|
|
rm $(ls *.exe | grep -v "llama-server")
|
2024-08-21 22:08:15 +00:00
|
|
|
cp ../tabby_x86_64-windows-msvc.exe/tabby_x86_64-windows-msvc.exe tabby.exe
|
2024-08-21 06:55:05 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
zip -r ${OUTPUT_NAME}.zip ${OUTPUT_NAME}
|
|
|
|
rm -rf ${OUTPUT_NAME}
|
|
|
|
|
|
|
|
mkdir -p dist
|
|
|
|
mv ${OUTPUT_NAME}.zip dist/
|