Skip to content

Commit a4f3f5d

Browse files
committed
scripts : sync gguf (cont)
1 parent 48e1ae0 commit a4f3f5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/sync-ggml-am.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ while read c; do
7373
src/ggml*.h \
7474
src/ggml*.c \
7575
src/ggml*.cpp \
76+
src/gguf*.cpp \
7677
src/ggml-blas/* \
7778
src/ggml-cann/* \
7879
src/ggml-cpu/* \
@@ -86,6 +87,7 @@ while read c; do
8687
src/ggml-sycl/* \
8788
src/ggml-vulkan/* \
8889
include/ggml*.h \
90+
include/gguf*.h \
8991
tests/test-opt.cpp \
9092
tests/test-quantize-fns.cpp \
9193
tests/test-quantize-perf.cpp \
@@ -124,6 +126,7 @@ if [ -f $SRC_LLAMA/ggml-src.patch ]; then
124126
# src/ggml*.c -> ggml/src/ggml*.c
125127
# src/ggml*.cpp -> ggml/src/ggml*.cpp
126128
# src/ggml*.h -> ggml/src/ggml*.h
129+
# src/gguf*.cpp -> ggml/src/gguf*.cpp
127130
# src/ggml-blas/* -> ggml/src/ggml-blas/*
128131
# src/ggml-cann/* -> ggml/src/ggml-cann/*
129132
# src/ggml-cpu/* -> ggml/src/ggml-cpu/*
@@ -138,6 +141,7 @@ if [ -f $SRC_LLAMA/ggml-src.patch ]; then
138141
# src/ggml-vulkan/* -> ggml/src/ggml-vulkan/*
139142
#
140143
# include/ggml*.h -> ggml/include/ggml*.h
144+
# include/gguf*.h -> ggml/include/gguf*.h
141145
#
142146
# tests/test*.cpp -> tests/
143147
#
@@ -151,6 +155,7 @@ if [ -f $SRC_LLAMA/ggml-src.patch ]; then
151155
-e 's/([[:space:]]|[ab]\/)src\/ggml(.*)\.c/\1ggml\/src\/ggml\2.c/g' \
152156
-e 's/([[:space:]]|[ab]\/)src\/ggml(.*)\.cpp/\1ggml\/src\/ggml\2.cpp/g' \
153157
-e 's/([[:space:]]|[ab]\/)src\/ggml(.*)\.h/\1ggml\/src\/ggml\2.h/g' \
158+
-e 's/([[:space:]]|[ab]\/)src\/gguf(.*)\.cpp/\1ggml\/src\/gguf\2.cpp/g' \
154159
-e 's/([[:space:]]|[ab]\/)src\/ggml-blas\//\1ggml\/src\/ggml-blas\//g' \
155160
-e 's/([[:space:]]|[ab]\/)src\/ggml-cann\//\1ggml\/src\/ggml-cann\//g' \
156161
-e 's/([[:space:]]|[ab]\/)src\/ggml-cpu\//\1ggml\/src\/ggml-cpu\//g' \
@@ -163,6 +168,7 @@ if [ -f $SRC_LLAMA/ggml-src.patch ]; then
163168
-e 's/([[:space:]]|[ab]\/)src\/ggml-sycl\//\1ggml\/src\/ggml-sycl\//g' \
164169
-e 's/([[:space:]]|[ab]\/)src\/ggml-vulkan\//\1ggml\/src\/ggml-vulkan\//g' \
165170
-e 's/([[:space:]]|[ab]\/)include\/ggml(.*)\.h/\1ggml\/include\/ggml\2.h/g' \
171+
-e 's/([[:space:]]|[ab]\/)include\/gguf(.*)\.h/\1ggml\/include\/gguf\2.h/g' \
166172
-e 's/([[:space:]]|[ab]\/)tests\/(.*)\.cpp/\1tests\/\2.cpp/g' \
167173
-e 's/([[:space:]]|[ab]\/)LICENSE/\1LICENSE/g' \
168174
-e 's/([[:space:]]|[ab]\/)scripts\/gen-authors\.sh/\1scripts\/gen-authors.sh/g' \

0 commit comments

Comments
 (0)