Spaces:
Running
Running
files : rename ./extra to ./scripts
Browse files- README.md +3 -3
- {extra β scripts}/bench-all.sh +0 -0
- {extra β scripts}/bench-wts.sh +0 -0
- {extra β scripts}/bench.py +0 -0
- {extra β scripts}/convert-all.sh +0 -0
- {extra β scripts}/deploy-wasm.sh +1 -1
- {extra β scripts}/quantize-all.sh +0 -0
- {extra β scripts}/sha-all.sh +0 -0
- {extra β scripts}/sync-ggml-am.sh +3 -3
- {extra β scripts}/sync-ggml.last +0 -0
- {extra β scripts}/sync-ggml.sh +0 -0
- {extra β scripts}/sync-llama.sh +0 -0
README.md
CHANGED
|
@@ -744,10 +744,10 @@ https://user-images.githubusercontent.com/1991296/199337538-b7b0c7a3-2753-4a88-a
|
|
| 744 |
|
| 745 |
## Video comparison of different models
|
| 746 |
|
| 747 |
-
Use the [
|
| 748 |
|
| 749 |
```bash
|
| 750 |
-
./
|
| 751 |
ffplay ./samples/jfk.wav.all.mp4
|
| 752 |
```
|
| 753 |
|
|
@@ -768,7 +768,7 @@ Additionally a script to run whisper.cpp with different models and audio files i
|
|
| 768 |
You can run it with the following command, by default it will run against any standard model in the models folder.
|
| 769 |
|
| 770 |
```bash
|
| 771 |
-
python3
|
| 772 |
```
|
| 773 |
|
| 774 |
It is written in python with the intention of being easy to modify and extend for your benchmarking use case.
|
|
|
|
| 744 |
|
| 745 |
## Video comparison of different models
|
| 746 |
|
| 747 |
+
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:
|
| 748 |
|
| 749 |
```bash
|
| 750 |
+
./scripts/bench-wts.sh samples/jfk.wav
|
| 751 |
ffplay ./samples/jfk.wav.all.mp4
|
| 752 |
```
|
| 753 |
|
|
|
|
| 768 |
You can run it with the following command, by default it will run against any standard model in the models folder.
|
| 769 |
|
| 770 |
```bash
|
| 771 |
+
python3 scripts/bench.py -f samples/jfk.wav -t 2,4,8 -p 1,2
|
| 772 |
```
|
| 773 |
|
| 774 |
It is written in python with the intention of being easy to modify and extend for your benchmarking use case.
|
{extra β scripts}/bench-all.sh
RENAMED
|
File without changes
|
{extra β scripts}/bench-wts.sh
RENAMED
|
File without changes
|
{extra β scripts}/bench.py
RENAMED
|
File without changes
|
{extra β scripts}/convert-all.sh
RENAMED
|
File without changes
|
{extra β scripts}/deploy-wasm.sh
RENAMED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
# Run from the build directory:
|
| 5 |
#
|
| 6 |
# cd build-em
|
| 7 |
-
# ../
|
| 8 |
#
|
| 9 |
|
| 10 |
# check if emcmake is available
|
|
|
|
| 4 |
# Run from the build directory:
|
| 5 |
#
|
| 6 |
# cd build-em
|
| 7 |
+
# ../scripts/deploy-wasm.sh
|
| 8 |
#
|
| 9 |
|
| 10 |
# check if emcmake is available
|
{extra β scripts}/quantize-all.sh
RENAMED
|
File without changes
|
{extra β scripts}/sha-all.sh
RENAMED
|
File without changes
|
{extra β scripts}/sync-ggml-am.sh
RENAMED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
# Usage:
|
| 6 |
#
|
| 7 |
# $ cd /path/to/whisper.cpp
|
| 8 |
-
# $ ./
|
| 9 |
#
|
| 10 |
|
| 11 |
set -e
|
|
@@ -21,7 +21,7 @@ if [ ! -d $SRC_GGML ]; then
|
|
| 21 |
exit 1
|
| 22 |
fi
|
| 23 |
|
| 24 |
-
lc=$(cat $SRC_WHISPER/
|
| 25 |
echo "Syncing ggml changes since commit $lc"
|
| 26 |
|
| 27 |
to_skip=""
|
|
@@ -182,7 +182,7 @@ fi
|
|
| 182 |
|
| 183 |
# update last commit
|
| 184 |
cd $SRC_GGML
|
| 185 |
-
git log -1 --format=%H > $SRC_WHISPER/
|
| 186 |
|
| 187 |
echo "Done"
|
| 188 |
|
|
|
|
| 5 |
# Usage:
|
| 6 |
#
|
| 7 |
# $ cd /path/to/whisper.cpp
|
| 8 |
+
# $ ./scripts/sync-ggml-am.sh -skip hash0,hash1,hash2...
|
| 9 |
#
|
| 10 |
|
| 11 |
set -e
|
|
|
|
| 21 |
exit 1
|
| 22 |
fi
|
| 23 |
|
| 24 |
+
lc=$(cat $SRC_WHISPER/scripts/sync-ggml.last)
|
| 25 |
echo "Syncing ggml changes since commit $lc"
|
| 26 |
|
| 27 |
to_skip=""
|
|
|
|
| 182 |
|
| 183 |
# update last commit
|
| 184 |
cd $SRC_GGML
|
| 185 |
+
git log -1 --format=%H > $SRC_WHISPER/scripts/sync-ggml.last
|
| 186 |
|
| 187 |
echo "Done"
|
| 188 |
|
{extra β scripts}/sync-ggml.last
RENAMED
|
File without changes
|
{extra β scripts}/sync-ggml.sh
RENAMED
|
File without changes
|
{extra β scripts}/sync-llama.sh
RENAMED
|
File without changes
|