1
0
mirror of https://github.com/ggerganov/whisper.cpp.git synced 2025-08-15 12:22:35 +02:00
Files
.devops
.github
bindings
ci
cmake
examples
ggml
grammars
include
models
samples
scripts
apple
bench-all-gg.txt
bench-all.sh
bench-wts.sh
bench.py
build-info.sh
convert-all.sh
deploy-wasm.sh
gen-authors.sh
get-flags.mk
quantize-all.sh
sha-all.sh
sync-ggml-am.sh
sync-ggml.last
sync-ggml.sh
sync-llama.sh
src
tests
.gitignore
.gitmodules
AUTHORS
CMakeLists.txt
LICENSE
Makefile
README.md
README_sycl.md
build-xcframework.sh
close-issue.yml
whisper.cpp/scripts/quantize-all.sh
Georgi Gerganov 2e59dced12 whisper : rename binaries + fix install ()
* whisper : rename binaries + fix install

* cont : try to fix ci

* cont : fix emscripten builds
2024-12-21 09:43:49 +02:00

38 lines
879 B
Bash
Executable File

#!/bin/bash
printf "Usage: $0 <upload>"
if [ $# -ne 1 ]; then
printf "\nError: Invalid number of arguments\n"
exit 1
fi
qtype0="q5_0"
qtype1="q5_1"
upload="$1"
declare -a filedex
cd `dirname $0`
cd ../
for i in `ls ./models | grep ^ggml-.*.bin | grep -v "\-q"`; do
m="models/$i"
if [ -f "$m" ]; then
if [ "${m##*.}" == "bin" ]; then
./build/bin/whisper-quantize "${m}" "${m::${#m}-4}-${qtype1}.bin" ${qtype1};
./build/bin/whisper-quantize "${m}" "${m::${#m}-4}-${qtype0}.bin" ${qtype0};
filedex+=( "${m::${#m}-4}-${qtype1}.bin" "${m::${#m}-4}-${qtype0}.bin" )
fi
fi
done
if [ "$upload" == "1" ]; then
for i in ${!filedex[@]}; do
if [ "${filedex[$i]:9:8}" != "for-test" ]; then
scp ${filedex[$i]} root@linode0:/mnt/Data/ggml/ggml-model-${filedex[$i]:9}
fi
done
fi