From 52ccd4a3a8efb2e346b5db0dc01cababd825b186 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 9 Apr 2024 20:12:17 +0300 Subject: [PATCH] files : rename ./extra to ./scripts --- README.md | 6 +++--- {extra => scripts}/bench-all.sh | 0 {extra => scripts}/bench-wts.sh | 0 {extra => scripts}/bench.py | 0 {extra => scripts}/convert-all.sh | 0 {extra => scripts}/deploy-wasm.sh | 2 +- {extra => scripts}/quantize-all.sh | 0 {extra => scripts}/sha-all.sh | 0 {extra => scripts}/sync-ggml-am.sh | 6 +++--- {extra => scripts}/sync-ggml.last | 0 {extra => scripts}/sync-ggml.sh | 0 {extra => scripts}/sync-llama.sh | 0 12 files changed, 7 insertions(+), 7 deletions(-) rename {extra => scripts}/bench-all.sh (100%) rename {extra => scripts}/bench-wts.sh (100%) rename {extra => scripts}/bench.py (100%) rename {extra => scripts}/convert-all.sh (100%) rename {extra => scripts}/deploy-wasm.sh (97%) rename {extra => scripts}/quantize-all.sh (100%) rename {extra => scripts}/sha-all.sh (100%) rename {extra => scripts}/sync-ggml-am.sh (97%) rename {extra => scripts}/sync-ggml.last (100%) rename {extra => scripts}/sync-ggml.sh (100%) rename {extra => scripts}/sync-llama.sh (100%) diff --git a/README.md b/README.md index 6b6ea673..1499e107 100644 --- a/README.md +++ b/README.md @@ -744,10 +744,10 @@ https://user-images.githubusercontent.com/1991296/199337538-b7b0c7a3-2753-4a88-a ## Video comparison of different models -Use the [extra/bench-wts.sh](https://github.com/ggerganov/whisper.cpp/blob/master/extra/bench-wts.sh) script to generate a video in the following format: +Use the [scripts/bench-wts.sh](https://github.com/ggerganov/whisper.cpp/blob/master/scripts/bench-wts.sh) script to generate a video in the following format: ```bash -./extra/bench-wts.sh samples/jfk.wav +./scripts/bench-wts.sh samples/jfk.wav ffplay ./samples/jfk.wav.all.mp4 ``` @@ -768,7 +768,7 @@ Additionally a script to run whisper.cpp with different models and audio files i You can run it with the following command, by default it will run against any standard model in the models folder. ```bash -python3 extra/bench.py -f samples/jfk.wav -t 2,4,8 -p 1,2 +python3 scripts/bench.py -f samples/jfk.wav -t 2,4,8 -p 1,2 ``` It is written in python with the intention of being easy to modify and extend for your benchmarking use case. diff --git a/extra/bench-all.sh b/scripts/bench-all.sh similarity index 100% rename from extra/bench-all.sh rename to scripts/bench-all.sh diff --git a/extra/bench-wts.sh b/scripts/bench-wts.sh similarity index 100% rename from extra/bench-wts.sh rename to scripts/bench-wts.sh diff --git a/extra/bench.py b/scripts/bench.py similarity index 100% rename from extra/bench.py rename to scripts/bench.py diff --git a/extra/convert-all.sh b/scripts/convert-all.sh similarity index 100% rename from extra/convert-all.sh rename to scripts/convert-all.sh diff --git a/extra/deploy-wasm.sh b/scripts/deploy-wasm.sh similarity index 97% rename from extra/deploy-wasm.sh rename to scripts/deploy-wasm.sh index f6569c72..1271c398 100755 --- a/extra/deploy-wasm.sh +++ b/scripts/deploy-wasm.sh @@ -4,7 +4,7 @@ # Run from the build directory: # # cd build-em -# ../extra/deploy-wasm.sh +# ../scripts/deploy-wasm.sh # # check if emcmake is available diff --git a/extra/quantize-all.sh b/scripts/quantize-all.sh similarity index 100% rename from extra/quantize-all.sh rename to scripts/quantize-all.sh diff --git a/extra/sha-all.sh b/scripts/sha-all.sh similarity index 100% rename from extra/sha-all.sh rename to scripts/sha-all.sh diff --git a/extra/sync-ggml-am.sh b/scripts/sync-ggml-am.sh similarity index 97% rename from extra/sync-ggml-am.sh rename to scripts/sync-ggml-am.sh index dc4be9bd..00149931 100755 --- a/extra/sync-ggml-am.sh +++ b/scripts/sync-ggml-am.sh @@ -5,7 +5,7 @@ # Usage: # # $ cd /path/to/whisper.cpp -# $ ./extra/sync-ggml-am.sh -skip hash0,hash1,hash2... +# $ ./scripts/sync-ggml-am.sh -skip hash0,hash1,hash2... # set -e @@ -21,7 +21,7 @@ if [ ! -d $SRC_GGML ]; then exit 1 fi -lc=$(cat $SRC_WHISPER/extra/sync-ggml.last) +lc=$(cat $SRC_WHISPER/scripts/sync-ggml.last) echo "Syncing ggml changes since commit $lc" to_skip="" @@ -182,7 +182,7 @@ fi # update last commit cd $SRC_GGML -git log -1 --format=%H > $SRC_WHISPER/extra/sync-ggml.last +git log -1 --format=%H > $SRC_WHISPER/scripts/sync-ggml.last echo "Done" diff --git a/extra/sync-ggml.last b/scripts/sync-ggml.last similarity index 100% rename from extra/sync-ggml.last rename to scripts/sync-ggml.last diff --git a/extra/sync-ggml.sh b/scripts/sync-ggml.sh similarity index 100% rename from extra/sync-ggml.sh rename to scripts/sync-ggml.sh diff --git a/extra/sync-llama.sh b/scripts/sync-llama.sh similarity index 100% rename from extra/sync-llama.sh rename to scripts/sync-llama.sh