]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
scripts : helper convert script
authorGeorgi Gerganov <redacted>
Sun, 27 Aug 2023 12:24:40 +0000 (15:24 +0300)
committerGeorgi Gerganov <redacted>
Sun, 27 Aug 2023 12:24:58 +0000 (15:24 +0300)
scripts/convert-gg.sh [new file with mode: 0755]
scripts/qnt-all.sh
scripts/run-all-perf.sh
scripts/run-all-ppl.sh

diff --git a/scripts/convert-gg.sh b/scripts/convert-gg.sh
new file mode 100755 (executable)
index 0000000..01fda16
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+set -e
+
+# LLaMA v1
+python3 convert.py ../llama1/7B  --outfile models/llama-7b/ggml-model-f16.gguf  --outtype f16
+python3 convert.py ../llama1/13B --outfile models/llama-13b/ggml-model-f16.gguf --outtype f16
+python3 convert.py ../llama1/30B --outfile models/llama-30b/ggml-model-f16.gguf --outtype f16
+python3 convert.py ../llama1/65B --outfile models/llama-65b/ggml-model-f16.gguf --outtype f16
+
+# LLaMA v2
+python3 convert.py ../llama2/llama-2-7b  --outfile models/llama-7b-v2/ggml-model-f16.gguf  --outtype f16
+python3 convert.py ../llama2/llama-2-13b --outfile models/llama-13b-v2/ggml-model-f16.gguf --outtype f16
+python3 convert.py ../llama2/llama-2-70b --outfile models/llama-70b-v2/ggml-model-f16.gguf --outtype f16
+
+# Code Llama
+python3 convert.py ../codellama/CodeLlama-7b/  --outfile models/codellama-7b/ggml-model-f16.gguf  --outtype f16
+python3 convert.py ../codellama/CodeLlama-13b/ --outfile models/codellama-13b/ggml-model-f16.gguf --outtype f16
+python3 convert.py ../codellama/CodeLlama-34b/ --outfile models/codellama-34b/ggml-model-f16.gguf --outtype f16
+
+# Falcon
+python3 convert-falcon-hf-to-gguf.py ../falcon/falcon-7b  1
+mv -v ../falcon/falcon-7b/ggml-model-f16.gguf models/falcon-7b/ggml-model-f16.gguf
+
+python3 convert-falcon-hf-to-gguf.py ../falcon/falcon-40b 1
+mv -v ../falcon/falcon-40b/ggml-model-f16.gguf models/falcon-40b/ggml-model-f16.gguf
index 1b3d07da5484382dc778cdb53179db1e5d438f25..1376e4194f3053be5b9b44122e8714121f6ca3d7 100755 (executable)
@@ -20,6 +20,8 @@ fi
 model="$1"
 out="../tmp/results-${model}"
 
+set -e
+
 mkdir -p ${out}
 
 for q in ${qnt[@]}; do
index 91a6d853fea889e77b0182ab5dea2c83af28a856..7391e3dd560752edd05ec7effeb676b1a310f75d 100755 (executable)
@@ -20,6 +20,8 @@ fi
 model="$1"
 out="../tmp/results-${model}"
 
+set -e
+
 mkdir -p ${out}
 
 mstr=""
index 366d0866cb280e6ad3a1c0fa48d65168aeefa9e5..f643ca3ae3c12048f59eb4d7b59491276e6177bb 100755 (executable)
@@ -17,6 +17,8 @@ if [ ! -z "$3" ]; then
     args="$3"
 fi
 
+set -e
+
 model="$1"
 out="../tmp/results-${model}"