From ae1519f6818e78defef82e302fc44ad75033e5d6 Mon Sep 17 00:00:00 2001 From: RSereno Date: Wed, 22 Mar 2023 20:29:20 +0000 Subject: [PATCH] Update tools.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update to use the correct file name "consolidated.*.pth". tools.sh is still looking for "ggml-model-f16.bin*` " skipping the file convertions. I wasn´t able to test this change because for some reason when building the docker image in windows it can find the shell. --- .devops/tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devops/tools.sh b/.devops/tools.sh index 352e04942..acbc27e24 100755 --- a/.devops/tools.sh +++ b/.devops/tools.sh @@ -22,7 +22,7 @@ elif [[ $arg1 == '--all-in-one' || $arg1 == '-a' ]]; then echo "Downloading model..." python3 ./download-pth.py "$1" "$2" echo "Converting PTH to GGML..." - for i in `ls $1/$2/ggml-model-f16.bin*`; do + for i in `ls $1/$2/consolidated.*.pth`; do if [ -f "${i/f16/q4_0}" ]; then echo "Skip model quantization, it already exists: ${i/f16/q4_0}" else