]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
scripts : sync gguf
authorGeorgi Gerganov <redacted>
Tue, 14 Jan 2025 07:29:27 +0000 (09:29 +0200)
committerGeorgi Gerganov <redacted>
Tue, 14 Jan 2025 07:36:36 +0000 (09:36 +0200)
scripts/sync-llama-am.sh
scripts/sync-llama.sh
scripts/sync-whisper-am.sh
scripts/sync-whisper.sh

index 60261b13d4448ec0dceaec3ac2e1a3c8dc4dd558..155914a9c5b85f33b486773e3fe0ba055a5cbf8d 100755 (executable)
@@ -72,6 +72,7 @@ while read c; do
         ggml/src/ggml*.h \
         ggml/src/ggml*.c \
         ggml/src/ggml*.cpp \
+        ggml/src/gguf*.cpp \
         ggml/src/ggml-blas/* \
         ggml/src/ggml-cann/* \
         ggml/src/ggml-cpu/* \
@@ -122,6 +123,7 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
     # ggml/src/ggml*.c          -> src/ggml*.c
     # ggml/src/ggml*.cpp        -> src/ggml*.cpp
     # ggml/src/ggml*.h          -> src/ggml*.h
+    # ggml/src/gguf*.cpp        -> src/gguf*.h
     # ggml/src/ggml-blas/*      -> src/ggml-blas/*
     # ggml/src/ggml-cann/*      -> src/ggml-cann/*
     # ggml/src/ggml-cpu/*       -> src/ggml-cpu/*
@@ -136,6 +138,7 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
     # ggml/src/ggml-vulkan/*    -> src/ggml-vulkan/*
     #
     # ggml/include/ggml*.h -> include/ggml*.h
+    # ggml/include/gguf*.h -> include/gguf*.h
     #
     # tests/test-opt.cpp           -> tests/test-opt.cpp
     # tests/test-quantize-fns.cpp  -> tests/test-quantize-fns.cpp
@@ -151,6 +154,7 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
         -e 's/\/ggml\/src\/ggml(.*)\.c/\/src\/ggml\1.c/g' \
         -e 's/\/ggml\/src\/ggml(.*)\.cpp/\/src\/ggml\1.cpp/g' \
         -e 's/\/ggml\/src\/ggml(.*)\.h/\/src\/ggml\1.h/g' \
+        -e 's/\/ggml\/src\/gguf(.*)\.cpp/\/src\/gguf\1.cpp/g' \
         -e 's/\/ggml\/src\/ggml-blas\//\/src\/ggml-blas\//g' \
         -e 's/\/ggml\/src\/ggml-cann\//\/src\/ggml-cann\//g' \
         -e 's/\/ggml\/src\/ggml-cpu\//\/src\/ggml-cpu\//g' \
@@ -164,6 +168,7 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
         -e 's/\/ggml\/src\/ggml-sycl\//\/src\/ggml-sycl\//g' \
         -e 's/\/ggml\/src\/ggml-vulkan\//\/src\/ggml-vulkan\//g' \
         -e 's/\/ggml\/include\/ggml(.*)\.h/\/include\/ggml\1.h/g' \
+        -e 's/\/ggml\/include\/gguf(.*)\.h/\/include\/gguf\1.h/g' \
         -e 's/\/tests\/test-opt\.cpp/\/tests\/test-opt.cpp/g' \
         -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' \
index 92d094b392f566ea17545a0d8aeeb1bfb05f067f..dba29c90b280cbed13df2b025f05e7071243bed8 100755 (executable)
@@ -7,6 +7,7 @@ cp -rpv ../llama.cpp/ggml/cmake/FindSIMD.cmake cmake/FindSIMD.cmake
 cp -rpv ../llama.cpp/ggml/src/ggml*.c          src/
 cp -rpv ../llama.cpp/ggml/src/ggml*.cpp        src/
 cp -rpv ../llama.cpp/ggml/src/ggml*.h          src/
+cp -rpv ../llama.cpp/ggml/src/gguf*.cpp        src/
 cp -rpv ../llama.cpp/ggml/src/ggml-blas/*      src/ggml-blas/
 cp -rpv ../llama.cpp/ggml/src/ggml-cann/*      src/ggml-cann/
 cp -rpv ../llama.cpp/ggml/src/ggml-cpu/*       src/ggml-cpu/
@@ -21,6 +22,7 @@ cp -rpv ../llama.cpp/ggml/src/ggml-sycl/*      src/ggml-sycl/
 cp -rpv ../llama.cpp/ggml/src/ggml-vulkan/*    src/ggml-vulkan/
 
 cp -rpv ../llama.cpp/ggml/include/ggml*.h include/
+cp -rpv ../llama.cpp/ggml/include/gguf*.h include/
 
 cp -rpv ../llama.cpp/tests/test-opt.cpp           tests/test-opt.cpp
 cp -rpv ../llama.cpp/tests/test-quantize-fns.cpp  tests/test-quantize-fns.cpp
index 8e21dbebfda6bc8679b0f9cf71fbbe00a9398d01..a83914e137e97942359bf77b89625f7ed25ac071 100755 (executable)
@@ -59,6 +59,7 @@ while read c; do
         ggml/src/ggml*.h \
         ggml/src/ggml*.c \
         ggml/src/ggml*.cpp \
+        ggml/src/gguf*.cpp \
         ggml/src/ggml-blas/* \
         ggml/src/ggml-cann/* \
         ggml/src/ggml-cpu/* \
@@ -72,6 +73,7 @@ while read c; do
         ggml/src/ggml-sycl/* \
         ggml/src/ggml-vulkan/* \
         ggml/include/ggml*.h \
+        ggml/include/gguf*.h \
         examples/common.h \
         examples/common.cpp \
         examples/common-ggml.h \
@@ -110,6 +112,7 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
     # ggml/src/ggml*.c          -> src/ggml*.c
     # ggml/src/ggml*.cpp        -> src/ggml*.cpp
     # ggml/src/ggml*.h          -> src/ggml*.h
+    # ggml/src/gguf*.cpp        -> src/gguf*.cpp
     # ggml/src/ggml-blas/*      -> src/ggml-blas/*
     # ggml/src/ggml-cann/*      -> src/ggml-cann/*
     # ggml/src/ggml-cpu/*       -> src/ggml-cpu/*
@@ -124,6 +127,7 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
     # ggml/src/ggml-vulkan/*    -> src/ggml-vulkan/*
     #
     # ggml/include/ggml*.h -> include/ggml*.h
+    # ggml/include/gguf*.h -> include/gguf*.h
     #
     # examples/common.h        -> examples/common.h
     # examples/common.cpp      -> examples/common.cpp
@@ -140,6 +144,7 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
         -e 's/\/ggml\/src\/ggml(.*)\.c/\/src\/ggml\1.c/g' \
         -e 's/\/ggml\/src\/ggml(.*)\.cpp/\/src\/ggml\1.cpp/g' \
         -e 's/\/ggml\/src\/ggml(.*)\.h/\/src\/ggml\1.h/g' \
+        -e 's/\/ggml\/src\/gguf(.*)\.cpp/\/src\/gguf\1.cpp/g' \
         -e 's/\/ggml\/src\/ggml-blas\//\/src\/ggml-blas\//g' \
         -e 's/\/ggml\/src\/ggml-cann\//\/src\/ggml-cann\//g' \
         -e 's/\/ggml\/src\/ggml-cpu\//\/src\/ggml-cpu\//g' \
@@ -153,6 +158,7 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
         -e 's/\/ggml\/src\/ggml-sycl\//\/src\/ggml-sycl\//g' \
         -e 's/\/ggml\/src\/ggml-vulkan\//\/src\/ggml-vulkan\//g' \
         -e 's/\/ggml\/include\/ggml(.*)\.h/\/include\/ggml\1.h/g' \
+        -e 's/\/ggml\/include\/gguf(.*)\.h/\/include\/gguf\1.h/g' \
         -e 's/\/examples\/common\.h/\/examples\/common.h/g' \
         -e 's/\/examples\/common\.cpp/\/examples\/common.cpp/g' \
         -e 's/\/examples\/common-ggml\.h/\/examples\/common-ggml.h/g' \
index 57dee2b2b820955f2b4fefea1ef538b05076a092..2f63dfc88cbcae25829280df61b6ae7b7c195d70 100755 (executable)
@@ -7,6 +7,7 @@ cp -rpv ../whisper.cpp/ggml/cmake/FindSIMD.cmake cmake/FindSIMD.cmake
 cp -rpv ../whisper.cpp/ggml/src/ggml*.c          src/
 cp -rpv ../whisper.cpp/ggml/src/ggml*.cpp        src/
 cp -rpv ../whisper.cpp/ggml/src/ggml*.h          src/
+cp -rpv ../whisper.cpp/ggml/src/gguf*.cpp        src/
 cp -rpv ../whisper.cpp/ggml/src/ggml-blas/*      src/ggml-blas/
 cp -rpv ../whisper.cpp/ggml/src/ggml-cann/*      src/ggml-cann/
 cp -rpv ../whisper.cpp/ggml/src/ggml-cpu/*       src/ggml-cpu/
@@ -21,6 +22,7 @@ cp -rpv ../whisper.cpp/ggml/src/ggml-sycl/*      src/ggml-sycl/
 cp -rpv ../whisper.cpp/ggml/src/ggml-vulkan/*    src/ggml-vulkan/
 
 cp -rpv ../whisper.cpp/ggml/include/ggml*.h include/
+cp -rpv ../whisper.cpp/ggml/include/gguf*.h include/
 
 cp -rpv ../whisper.cpp/examples/common.h        examples/common.h
 cp -rpv ../whisper.cpp/examples/common.cpp      examples/common.cpp