Fix file list on Mac OS

This commit is contained in:
Georgi Gerganov 2023-03-13 18:14:22 +02:00
parent 23d334b660
commit acf35ec45a
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -7,7 +7,7 @@ if ! [[ "$1" =~ ^[0-9]{1,2}B$ ]]; then
exit 1
fi
for i in "models/$1/ggml-model-f16.bin*"; do
for i in `ls models/$1/ggml-model-f16.bin*`; do
./quantize "$i" "${i/f16/q4_0}" 2
if [[ "$2" == "--remove-f16" ]]; then
rm "$i"