Commit 527b67126 for llama.cpp
commit 527b67126edabbaec810786ef4ffa98046f6e7b0
Author: Johannes Gäßler <johannesg@5d6.de>
Date: Sun Dec 6 14:21:40 2026 +0100
Docker: use absolute paths for tools.sh (#33563)
diff --git a/.devops/tools.sh b/.devops/tools.sh
index cc5ee17df..b960ca882 100755
--- a/.devops/tools.sh
+++ b/.devops/tools.sh
@@ -8,17 +8,17 @@ arg1="$1"
shift
if [[ "$arg1" == '--convert' || "$arg1" == '-c' ]]; then
- exec python3 ./convert_hf_to_gguf.py "$@"
+ exec python3 /app/convert_hf_to_gguf.py "$@"
elif [[ "$arg1" == '--quantize' || "$arg1" == '-q' ]]; then
- exec ./llama-quantize "$@"
+ exec /app/llama-quantize "$@"
elif [[ "$arg1" == '--run' || "$arg1" == '-r' ]]; then
- exec ./llama-cli "$@"
+ exec /app/llama-cli "$@"
elif [[ "$arg1" == '--run-legacy' || "$arg1" == '-l' ]]; then
- exec ./llama-completion "$@"
+ exec /app/llama-completion "$@"
elif [[ "$arg1" == '--bench' || "$arg1" == '-b' ]]; then
- exec ./llama-bench "$@"
+ exec /app/llama-bench "$@"
elif [[ "$arg1" == '--perplexity' || "$arg1" == '-p' ]]; then
- exec ./llama-perplexity "$@"
+ exec /app/llama-perplexity "$@"
elif [[ "$arg1" == '--all-in-one' || "$arg1" == '-a' ]]; then
echo "Converting PTH to GGML..."
for i in $(ls $1/$2/ggml-model-f16.bin*); do
@@ -26,11 +26,11 @@ elif [[ "$arg1" == '--all-in-one' || "$arg1" == '-a' ]]; then
echo "Skip model quantization, it already exists: ${i/f16/q4_0}"
else
echo "Converting PTH to GGML: $i into ${i/f16/q4_0}..."
- exec ./llama-quantize "$i" "${i/f16/q4_0}" q4_0
+ exec /app/llama-quantize "$i" "${i/f16/q4_0}" q4_0
fi
done
elif [[ "$arg1" == '--server' || "$arg1" == '-s' ]]; then
- exec ./llama-server "$@"
+ exec /app/llama-server "$@"
else
echo "Unknown command: $arg1"
echo "Available commands: "