]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
scripts : sync LICENSE and gen-authors.sh
authorGeorgi Gerganov <redacted>
Tue, 9 Apr 2024 17:15:04 +0000 (20:15 +0300)
committerGeorgi Gerganov <redacted>
Tue, 9 Apr 2024 17:15:04 +0000 (20:15 +0300)
scripts/sync-llama-am.sh
scripts/sync-llama.sh
scripts/sync-whisper-am.sh
scripts/sync-whisper.sh

index a113e0b972e42ca460d0fb68332d1eafbeafe6e6..6393bdf75f396f4147b5c965afa28f384098b8d6 100755 (executable)
@@ -65,6 +65,8 @@ while read c; do
         tests/test-quantize-fns.cpp \
         tests/test-quantize-perf.cpp \
         tests/test-backend-ops.cpp \
+        LICENSE \
+        scripts/gen-authors.sh \
         >> $SRC_GGML/llama-src.patch
 done < $SRC_GGML/llama-commits
 
@@ -122,6 +124,9 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
     # tests/test-quantize-fns.cpp  -> tests/test-quantize-fns.cpp
     # tests/test-quantize-perf.cpp -> tests/test-quantize-perf.cpp
     # tests/test-backend-ops.cpp   -> tests/test-backend-ops.cpp
+    #
+    # LICENSE                -> LICENSE
+    # scripts/gen-authors.sh -> scripts/gen-authors.sh
 
     cat llama-src.patch | sed \
         -e 's/\/ggml\.c/\/src\/ggml.c/g' \
@@ -155,6 +160,8 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
         -e 's/\/tests\/test-quantize-fns\.cpp/\/tests\/test-quantize-fns.cpp/g' \
         -e 's/\/tests\/test-quantize-perf\.cpp/\/tests\/test-quantize-perf.cpp/g' \
         -e 's/\/tests\/test-backend-ops\.cpp/\/tests\/test-backend-ops.cpp/g' \
+        -e 's/\/LICENSE/\/LICENSE/g' \
+        -e 's/\/scripts\/gen-authors\.sh/\/scripts\/gen-authors.sh/g' \
         > llama-src.patch.tmp
     mv llama-src.patch.tmp llama-src.patch
 
index 3696633fc70b905e87bb51292582505e243f3a51..ca74370082290ebf3634fdd851e324c1791701c3 100755 (executable)
@@ -33,3 +33,6 @@ cp -rpv ../llama.cpp/tests/test-grad0.cpp         tests/test-grad0.cpp
 cp -rpv ../llama.cpp/tests/test-quantize-fns.cpp  tests/test-quantize-fns.cpp
 cp -rpv ../llama.cpp/tests/test-quantize-perf.cpp tests/test-quantize-perf.cpp
 cp -rpv ../llama.cpp/tests/test-backend-ops.cpp   tests/test-backend-ops.cpp
+
+cp -rpv ../llama.cpp/LICENSE                ./LICENSE
+cp -rpv ../llama.cpp/scripts/gen-authors.sh ./scripts/gen-authors.sh
index c19da23aa8283cc5ba6dc3a83bec69bb24186884..201877e7d17ea5b4b6981a9da3bce2d7d18b6eee 100755 (executable)
@@ -70,6 +70,8 @@ while read c; do
     examples/grammar-parser.cpp \
     examples/main/main.cpp \
     examples/quantize/quantize.cpp \
+    LICENSE \
+    scripts/gen-authors.sh \
     >> $SRC_GGML/whisper-src.patch
 done < $SRC_GGML/whisper-commits
 
@@ -133,6 +135,9 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
     # examples/grammar-parser.cpp    -> examples/whisper/grammar-parser.cpp
     # examples/main/main.cpp         -> examples/whisper/main.cpp
     # examples/quantize/quantize.cpp -> examples/whisper/quantize.cpp
+    #
+    # LICENSE                -> LICENSE
+    # scripts/gen-authors.sh -> scripts/gen-authors.sh
 
     cat whisper-src.patch | sed \
         -e 's/\/ggml\.c/\/src\/ggml.c/g' \
@@ -171,6 +176,8 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
         -e 's/\/examples\/grammar-parser\.cpp/\/examples\/whisper\/grammar-parser.cpp/g' \
         -e 's/\/examples\/main\/main\.cpp/\/examples\/whisper\/main.cpp/g' \
         -e 's/\/examples\/quantize\/quantize\.cpp/\/examples\/whisper\/quantize.cpp/g' \
+        -e 's/\/LICENSE/\/LICENSE/g' \
+        -e 's/\/scripts\/gen-authors\.sh/\/scripts\/gen-authors.sh/g' \
         > whisper-src.patch.tmp
     mv whisper-src.patch.tmp whisper-src.patch
 
index b6cbac81e107bce19904d650f239ce5c50209c63..a703ced1691edd8358fc12d4e8670835ff7b9feb 100755 (executable)
@@ -40,3 +40,6 @@ cp -rpv ../whisper.cpp/whisper.h                      examples/whisper/whisper.h
 cp -rpv ../whisper.cpp/whisper.cpp                    examples/whisper/whisper.cpp
 cp -rpv ../whisper.cpp/examples/main/main.cpp         examples/whisper/main.cpp
 cp -rpv ../whisper.cpp/examples/quantize/quantize.cpp examples/whisper/quantize.cpp
+
+cp -rpv ../whisper.cpp/LICENSE                        ./LICENSE
+cp -rpv ../whisper.cpp/scripts/gen-authors.sh         ./scripts/gen-authors.sh