Spaces:
Running
Running
scripts : do not sync commits from this repo
Browse files- extra/sync-ggml-am.sh +29 -14
- extra/sync-ggml.last +1 -1
extra/sync-ggml-am.sh
CHANGED
|
@@ -27,21 +27,36 @@ echo "Syncing ggml changes since commit $lc"
|
|
| 27 |
cd $SRC_GGML
|
| 28 |
|
| 29 |
git log --oneline $lc..HEAD
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
# delete files if empty
|
| 47 |
if [ ! -s $SRC_WHISPER/ggml-src.patch ]; then
|
|
|
|
| 27 |
cd $SRC_GGML
|
| 28 |
|
| 29 |
git log --oneline $lc..HEAD
|
| 30 |
+
git log --oneline $lc..HEAD | grep -v "(whisper/[0-9]*)" | cut -d' ' -f1 > $SRC_WHISPER/ggml-commits
|
| 31 |
|
| 32 |
+
if [ ! -s $SRC_WHISPER/ggml-commits ]; then
|
| 33 |
+
rm -v $SRC_WHISPER/ggml-commits
|
| 34 |
+
echo "No new commits"
|
| 35 |
+
exit 0
|
| 36 |
+
fi
|
| 37 |
+
|
| 38 |
+
if [ -f $SRC_WHISPER/ggml-src.patch ]; then
|
| 39 |
+
rm -v $SRC_WHISPER/ggml-src.patch
|
| 40 |
+
fi
|
| 41 |
+
|
| 42 |
+
while read c; do
|
| 43 |
+
git format-patch -k $c~1..$c --stdout -- \
|
| 44 |
+
include/ggml/ggml*.h \
|
| 45 |
+
src/ggml*.h \
|
| 46 |
+
src/ggml*.c \
|
| 47 |
+
src/ggml*.cpp \
|
| 48 |
+
src/ggml*.m \
|
| 49 |
+
src/ggml*.metal \
|
| 50 |
+
src/ggml*.cu \
|
| 51 |
+
tests/test-opt.cpp \
|
| 52 |
+
tests/test-grad0.cpp \
|
| 53 |
+
tests/test-quantize-fns.cpp \
|
| 54 |
+
tests/test-quantize-perf.cpp \
|
| 55 |
+
tests/test-backend-ops.cpp \
|
| 56 |
+
>> $SRC_WHISPER/ggml-src.patch
|
| 57 |
+
done < $SRC_WHISPER/ggml-commits
|
| 58 |
+
|
| 59 |
+
rm -v $SRC_WHISPER/ggml-commits
|
| 60 |
|
| 61 |
# delete files if empty
|
| 62 |
if [ ! -s $SRC_WHISPER/ggml-src.patch ]; then
|
extra/sync-ggml.last
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
965137f49917768959679a9e860dc414e170fd55
|