]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Adding helper script for converting the PT models
authorGeorgi Gerganov <redacted>
Mon, 17 Oct 2022 15:37:06 +0000 (18:37 +0300)
committerGeorgi Gerganov <redacted>
Mon, 17 Oct 2022 21:12:51 +0000 (00:12 +0300)
extra/convert-all.sh [new file with mode: 0755]

diff --git a/extra/convert-all.sh b/extra/convert-all.sh
new file mode 100755 (executable)
index 0000000..37a8721
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+models=( "tiny.en" "tiny" "base.en" "base" "small.en" "small" "medium.en" "medium" "large" )
+
+for model in "${models[@]}"; do
+    python3 convert-pt-to-ggml.py ~/.cache/whisper/$model.pt ../whisper models/
+    mv -v models/ggml-model.bin models/ggml-$model.bin
+done