From 9c24ff40d90c08fc5c03914377aa0d5479d2ffca Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 17 Oct 2022 18:37:06 +0300 Subject: [PATCH] Adding helper script for converting the PT models --- extra/convert-all.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 extra/convert-all.sh diff --git a/extra/convert-all.sh b/extra/convert-all.sh new file mode 100755 index 0000000..37a8721 --- /dev/null +++ b/extra/convert-all.sh @@ -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