]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
scripts : stop sync whisper example from ggml
authorGeorgi Gerganov <redacted>
Sun, 16 Jun 2024 15:38:46 +0000 (18:38 +0300)
committerGeorgi Gerganov <redacted>
Tue, 18 Jun 2024 06:39:40 +0000 (09:39 +0300)
scripts/sync-ggml-am.sh
scripts/sync-ggml.sh

index 8dcf067319e0f41dc2349ffa4bd082958f8e3fef..4614b45919a8e29554f971f3dceedbc3f141ba4a 100755 (executable)
@@ -65,12 +65,6 @@ while read c; do
         examples/common.cpp \
         examples/common-ggml.h \
         examples/common-ggml.cpp \
-        examples/whisper/grammar-parser.h \
-        examples/whisper/grammar-parser.cpp \
-        examples/whisper/whisper.h \
-        examples/whisper/whisper.cpp \
-        examples/whisper/main.cpp \
-        examples/whisper/quantize.cpp \
         LICENSE \
         scripts/gen-authors.sh \
         >> $SRC_WHISPER/ggml-src.patch
@@ -128,13 +122,6 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
     # examples/common.cpp                 -> examples/common.cpp
     # examples/common-ggml.h              -> examples/common-ggml.h
     # examples/common-ggml.cpp            -> examples/common-ggml.cpp
-    # examples/whisper/grammar-parser.h   -> examples/grammar-parser.h
-    # examples/whisper/grammar-parser.cpp -> examples/grammar-parser.cpp
-    #
-    # examples/whisper/whisper.h    -> whisper.h
-    # examples/whisper/whisper.cpp  -> whisper.cpp
-    # examples/whisper/main.cpp     -> examples/main/main.cpp
-    # examples/whisper/quantize.cpp -> examples/quantize/quantize.cpp
     #
     # LICENSE                     -> LICENSE
     # ggml/scripts/gen-authors.sh -> scripts/gen-authors.sh
@@ -169,12 +156,6 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
         -e 's/examples\/common\.cpp/examples\/common.cpp/g' \
         -e 's/examples\/common-ggml\.h/examples\/common-ggml.h/g' \
         -e 's/examples\/common-ggml\.cpp/examples\/common-ggml.cpp/g' \
-        -e 's/examples\/whisper\/grammar-parser\.h/examples\/grammar-parser.h/g' \
-        -e 's/examples\/whisper\/grammar-parser\.cpp/examples\/grammar-parser.cpp/g' \
-        -e 's/examples\/whisper\/whisper\.h/whisper.h/g' \
-        -e 's/examples\/whisper\/whisper\.cpp/whisper.cpp/g' \
-        -e 's/examples\/whisper\/main\.cpp/examples\/main\/main.cpp/g' \
-        -e 's/examples\/whisper\/quantize\.cpp/examples\/quantize\/quantize.cpp/g' \
         -e 's/LICENSE/LICENSE/g' \
         -e 's/ggml\/scripts\/gen-authors\.sh/scripts\/gen-authors.sh/g' \
         > ggml-src.patch.tmp
index 18187b059df1289cb7108d46a418d1dabac224b6..c718a07bb619a9be2658c2f17ae2e152b7a9a849 100755 (executable)
@@ -32,13 +32,6 @@ cp -rpv ../ggml/examples/common.h                   ./examples/common.h
 cp -rpv ../ggml/examples/common.cpp                 ./examples/common.cpp
 cp -rpv ../ggml/examples/common-ggml.h              ./examples/common-ggml.h
 cp -rpv ../ggml/examples/common-ggml.cpp            ./examples/common-ggml.cpp
-cp -rpv ../ggml/examples/whisper/grammar-parser.h   ./examples/grammar-parser.h
-cp -rpv ../ggml/examples/whisper/grammar-parser.cpp ./examples/grammar-parser.cpp
-
-cp -rpv ../ggml/examples/whisper/whisper.h    ./whisper.h
-cp -rpv ../ggml/examples/whisper/whisper.cpp  ./whisper.cpp
-cp -rpv ../ggml/examples/whisper/main.cpp     ./examples/main/main.cpp
-cp -rpv ../ggml/examples/whisper/quantize.cpp ./examples/quantize/quantize.cpp
 
 cp -rpv ../LICENSE                     ./LICENSE
 cp -rpv ../ggml/scripts/gen-authors.sh ./scripts/gen-authors.sh