Update tools.sh
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.
This commit is contained in:
parent
ee8a788786
commit
ae1519f681
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ elif [[ $arg1 == '--all-in-one' || $arg1 == '-a' ]]; then
|
||||||
echo "Downloading model..."
|
echo "Downloading model..."
|
||||||
python3 ./download-pth.py "$1" "$2"
|
python3 ./download-pth.py "$1" "$2"
|
||||||
echo "Converting PTH to GGML..."
|
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
|
if [ -f "${i/f16/q4_0}" ]; then
|
||||||
echo "Skip model quantization, it already exists: ${i/f16/q4_0}"
|
echo "Skip model quantization, it already exists: ${i/f16/q4_0}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue