Indentation
This commit is contained in:
parent
daedf7ce97
commit
d328973aa1
1 changed files with 8 additions and 8 deletions
16
quantize.sh
16
quantize.sh
|
@ -1,15 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if ! [[ "$1" =~ ^[0-9]{1,2}B$ ]]; then
|
if ! [[ "$1" =~ ^[0-9]{1,2}B$ ]]; then
|
||||||
echo
|
echo
|
||||||
echo "Usage: quantize.sh 7B|13B|30B|65B [--remove-f16]"
|
echo "Usage: quantize.sh 7B|13B|30B|65B [--remove-f16]"
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in "models/$1/ggml-model-f16.bin*"; do
|
for i in "models/$1/ggml-model-f16.bin*"; do
|
||||||
./quantize "$i" "${i/f16/q4_0}" 2
|
./quantize "$i" "${i/f16/q4_0}" 2
|
||||||
if [[ "$2" == "--remove-f16" ]]; then
|
if [[ "$2" == "--remove-f16" ]]; then
|
||||||
rm "$i"
|
rm "$i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue