File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,23 +8,23 @@ arg1="$1"
8
8
shift
9
9
10
10
if [[ " $arg1 " == ' --convert' || " $arg1 " == ' -c' ]]; then
11
- python3 ./convert_hf_to_gguf.py " $@ "
11
+ exec python3 ./convert_hf_to_gguf.py " $@ "
12
12
elif [[ " $arg1 " == ' --quantize' || " $arg1 " == ' -q' ]]; then
13
- ./llama-quantize " $@ "
13
+ exec ./llama-quantize " $@ "
14
14
elif [[ " $arg1 " == ' --run' || " $arg1 " == ' -r' ]]; then
15
- ./llama-cli " $@ "
15
+ exec ./llama-cli " $@ "
16
16
elif [[ " $arg1 " == ' --all-in-one' || " $arg1 " == ' -a' ]]; then
17
17
echo " Converting PTH to GGML..."
18
18
for i in ` ls $1 /$2 /ggml-model-f16.bin* ` ; do
19
19
if [ -f " ${i/ f16/ q4_0} " ]; then
20
20
echo " Skip model quantization, it already exists: ${i/ f16/ q4_0} "
21
21
else
22
22
echo " Converting PTH to GGML: $i into ${i/ f16/ q4_0} ..."
23
- ./llama-quantize " $i " " ${i/ f16/ q4_0} " q4_0
23
+ exec ./llama-quantize " $i " " ${i/ f16/ q4_0} " q4_0
24
24
fi
25
25
done
26
26
elif [[ " $arg1 " == ' --server' || " $arg1 " == ' -s' ]]; then
27
- ./llama-server " $@ "
27
+ exec ./llama-server " $@ "
28
28
else
29
29
echo " Unknown command: $arg1 "
30
30
echo " Available commands: "
You can’t perform that action at this time.
0 commit comments