]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
scripts : do not sync commits from this repo
authorGeorgi Gerganov <redacted>
Fri, 29 Dec 2023 12:32:00 +0000 (14:32 +0200)
committerGeorgi Gerganov <redacted>
Fri, 29 Dec 2023 12:39:22 +0000 (14:39 +0200)
scripts/sync-llama-am.sh
scripts/sync-llama.last
scripts/sync-whisper-am.sh
scripts/sync-whisper.last

index 3d402131c9c6639cba61089da42110a3759ecd97..f5c5fb18758fd751583888634d6ef56cf11e1c6d 100755 (executable)
@@ -26,21 +26,35 @@ echo "Syncing llama.cpp changes since commit $lc"
 
 cd $SRC_LLAMA
 
-git log --oneline $lc..HEAD
-
-git format-patch $lc --stdout -- \
-    ggml*.h \
-    ggml*.c \
-    ggml*.cpp \
-    ggml*.m \
-    ggml*.metal \
-    ggml*.cu \
-    tests/test-opt.cpp \
-    tests/test-grad0.cpp \
-    tests/test-quantize-fns.cpp \
-    tests/test-quantize-perf.cpp \
-    tests/test-backend-ops.cpp \
-    > $SRC_GGML/llama-src.patch
+git log --oneline $lc..HEAD | grep -v "(ggml/[0-9]*)" | cut -d' ' -f1 > $SRC_GGML/llama-commits
+
+if [ ! -s $SRC_GGML/llama-commits ]; then
+    rm -v $SRC_GGML/llama-commits
+    echo "No new commits"
+    exit 0
+fi
+
+if [ -f $SRC_GGML/llama-src.patch ]; then
+    rm -v $SRC_GGML/llama-src.patch
+fi
+
+while read c; do
+    git format-patch -k $c..$c --stdout -- \
+        ggml*.h \
+        ggml*.c \
+        ggml*.cpp \
+        ggml*.m \
+        ggml*.metal \
+        ggml*.cu \
+        tests/test-opt.cpp \
+        tests/test-grad0.cpp \
+        tests/test-quantize-fns.cpp \
+        tests/test-quantize-perf.cpp \
+        tests/test-backend-ops.cpp \
+        >> $SRC_GGML/llama-src.patch
+done < $SRC_GGML/llama-commits
+
+rm -v $SRC_GGML/llama-commits
 
 # delete files if empty
 if [ ! -s $SRC_GGML/llama-src.patch ]; then
index ee73032276be6560a6900f941c97a0c5bc6e341f..e7db4c0ee6f218ef310466d926bee616ec4081c7 100644 (file)
@@ -1 +1 @@
-951010fa53a0ffe81b7d2e87c4349e0d3cb3d19d
+65e5f6dadbba4b496bba27f573e473c66b446496
index 3232300398eb8919c2f5456e1bcfd74eae1801f9..57fb9c4b963c352b0bf6e19a1a4b0d76e647d3a4 100755 (executable)
@@ -26,9 +26,20 @@ echo "Syncing whisper.cpp changes since commit $lc"
 
 cd $SRC_WHISPER
 
-git log --oneline $lc..HEAD
+git log --oneline $lc..HEAD | grep -v "(ggml/[0-9]*)" | cut -d' ' -f1 > $SRC_GGML/whisper-commits
 
-git format-patch $lc --stdout -- \
+if [ ! -s $SRC_GGML/whisper-commits ]; then
+    rm -v $SRC_GGML/whisper-commits
+    echo "No new commits"
+    exit 0
+fi
+
+if [ -f $SRC_GGML/whisper-src.patch ]; then
+    rm -v $SRC_GGML/whisper-src.patch
+fi
+
+while read c; do
+    git format-patch -k $c..$c --stdout -- \
     ggml*.h \
     ggml*.c \
     ggml*.cpp \
@@ -43,7 +54,10 @@ git format-patch $lc --stdout -- \
     examples/common-ggml.cpp \
     examples/main/main.cpp \
     examples/quantize/quantize.cpp \
-    > $SRC_GGML/whisper-src.patch
+    >> $SRC_GGML/whisper-src.patch
+done < $SRC_GGML/whisper-commits
+
+rm -v $SRC_GGML/whisper-commits
 
 # delete files if empty
 if [ ! -s $SRC_GGML/whisper-src.patch ]; then
index e78e4dcdadcd68a669f7fe1ade35761d54b91aee..ec18eb9c1e17a5000a30abb809ab8222912da568 100644 (file)
@@ -1 +1 @@
-37a709f6558c6d9783199e2b8cbb136e1c41d346
+45f050efb176466c378530b06643fdc6a7905206