Spaces:
Running
Running
extra : sync grammar-parser
Browse files- extra/sync-ggml-am.sh +10 -4
- extra/sync-ggml.sh +6 -4
extra/sync-ggml-am.sh
CHANGED
|
@@ -65,6 +65,8 @@ while read c; do
|
|
| 65 |
examples/common.cpp \
|
| 66 |
examples/common-ggml.h \
|
| 67 |
examples/common-ggml.cpp \
|
|
|
|
|
|
|
| 68 |
examples/whisper/whisper.h \
|
| 69 |
examples/whisper/whisper.cpp \
|
| 70 |
examples/whisper/main.cpp \
|
|
@@ -121,10 +123,12 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
|
|
| 121 |
# include/ggml/ggml-alloc.h -> ggml-alloc.h
|
| 122 |
# include/ggml/ggml-backend.h -> ggml-backend.h
|
| 123 |
#
|
| 124 |
-
# examples/common.h
|
| 125 |
-
# examples/common.cpp
|
| 126 |
-
# examples/common-ggml.h
|
| 127 |
-
# examples/common-ggml.cpp
|
|
|
|
|
|
|
| 128 |
#
|
| 129 |
# examples/whisper/whisper.h -> whisper.h
|
| 130 |
# examples/whisper/whisper.cpp -> whisper.cpp
|
|
@@ -162,6 +166,8 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
|
|
| 162 |
-e 's/examples\/common\.cpp/examples\/common.cpp/g' \
|
| 163 |
-e 's/examples\/common-ggml\.h/examples\/common-ggml.h/g' \
|
| 164 |
-e 's/examples\/common-ggml\.cpp/examples\/common-ggml.cpp/g' \
|
|
|
|
|
|
|
| 165 |
-e 's/examples\/whisper\/whisper\.h/whisper.h/g' \
|
| 166 |
-e 's/examples\/whisper\/whisper\.cpp/whisper.cpp/g' \
|
| 167 |
-e 's/examples\/whisper\/main\.cpp/examples\/main\/main.cpp/g' \
|
|
|
|
| 65 |
examples/common.cpp \
|
| 66 |
examples/common-ggml.h \
|
| 67 |
examples/common-ggml.cpp \
|
| 68 |
+
examples/whisper/grammar-parser.h \
|
| 69 |
+
examples/whisper/grammar-parser.cpp \
|
| 70 |
examples/whisper/whisper.h \
|
| 71 |
examples/whisper/whisper.cpp \
|
| 72 |
examples/whisper/main.cpp \
|
|
|
|
| 123 |
# include/ggml/ggml-alloc.h -> ggml-alloc.h
|
| 124 |
# include/ggml/ggml-backend.h -> ggml-backend.h
|
| 125 |
#
|
| 126 |
+
# examples/common.h -> examples/common.h
|
| 127 |
+
# examples/common.cpp -> examples/common.cpp
|
| 128 |
+
# examples/common-ggml.h -> examples/common-ggml.h
|
| 129 |
+
# examples/common-ggml.cpp -> examples/common-ggml.cpp
|
| 130 |
+
# examples/whisper/grammar-parser.h -> examples/grammar-parser.h
|
| 131 |
+
# examples/whisper/grammar-parser.cpp -> examples/grammar-parser.cpp
|
| 132 |
#
|
| 133 |
# examples/whisper/whisper.h -> whisper.h
|
| 134 |
# examples/whisper/whisper.cpp -> whisper.cpp
|
|
|
|
| 166 |
-e 's/examples\/common\.cpp/examples\/common.cpp/g' \
|
| 167 |
-e 's/examples\/common-ggml\.h/examples\/common-ggml.h/g' \
|
| 168 |
-e 's/examples\/common-ggml\.cpp/examples\/common-ggml.cpp/g' \
|
| 169 |
+
-e 's/examples\/whisper\/grammar-parser\.h/examples\/grammar-parser.h/g' \
|
| 170 |
+
-e 's/examples\/whisper\/grammar-parser\.cpp/examples\/grammar-parser.cpp/g' \
|
| 171 |
-e 's/examples\/whisper\/whisper\.h/whisper.h/g' \
|
| 172 |
-e 's/examples\/whisper\/whisper\.cpp/whisper.cpp/g' \
|
| 173 |
-e 's/examples\/whisper\/main\.cpp/examples\/main\/main.cpp/g' \
|
extra/sync-ggml.sh
CHANGED
|
@@ -29,10 +29,12 @@ cp -rpv ../ggml/include/ggml/ggml.h ./ggml.h
|
|
| 29 |
cp -rpv ../ggml/include/ggml/ggml-alloc.h ./ggml-alloc.h
|
| 30 |
cp -rpv ../ggml/include/ggml/ggml-backend.h ./ggml-backend.h
|
| 31 |
|
| 32 |
-
cp -rpv ../ggml/examples/common.h
|
| 33 |
-
cp -rpv ../ggml/examples/common.cpp
|
| 34 |
-
cp -rpv ../ggml/examples/common-ggml.h
|
| 35 |
-
cp -rpv ../ggml/examples/common-ggml.cpp
|
|
|
|
|
|
|
| 36 |
|
| 37 |
cp -rpv ../ggml/examples/whisper/whisper.h ./whisper.h
|
| 38 |
cp -rpv ../ggml/examples/whisper/whisper.cpp ./whisper.cpp
|
|
|
|
| 29 |
cp -rpv ../ggml/include/ggml/ggml-alloc.h ./ggml-alloc.h
|
| 30 |
cp -rpv ../ggml/include/ggml/ggml-backend.h ./ggml-backend.h
|
| 31 |
|
| 32 |
+
cp -rpv ../ggml/examples/common.h ./examples/common.h
|
| 33 |
+
cp -rpv ../ggml/examples/common.cpp ./examples/common.cpp
|
| 34 |
+
cp -rpv ../ggml/examples/common-ggml.h ./examples/common-ggml.h
|
| 35 |
+
cp -rpv ../ggml/examples/common-ggml.cpp ./examples/common-ggml.cpp
|
| 36 |
+
cp -rpv ../ggml/examples/whisper/grammar-parser.h ./examples/grammar-parser.h
|
| 37 |
+
cp -rpv ../ggml/examples/whisper/grammar-parser.cpp ./examples/grammar-parser.cpp
|
| 38 |
|
| 39 |
cp -rpv ../ggml/examples/whisper/whisper.h ./whisper.h
|
| 40 |
cp -rpv ../ggml/examples/whisper/whisper.cpp ./whisper.cpp
|