mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-24 10:24:35 +00:00
scripts : sync update
This commit is contained in:
parent
97404c4a03
commit
a2c6fd747c
@ -114,46 +114,22 @@ if [ -f $SRC_LLAMA/ggml-src.patch ]; then
|
|||||||
|
|
||||||
# replace filenames:
|
# replace filenames:
|
||||||
#
|
#
|
||||||
# CMakelists.txt -> ggml/CMakeLists.txt
|
# CMakelists.txt -> ggml/CMakeLists.txt
|
||||||
# src/CMakeLists.txt -> ggml/src/CMakeLists.txt
|
# src/CMakeLists.txt -> ggml/src/CMakeLists.txt
|
||||||
# cmake/FindSIMD.cmake -> ggml/cmake/FindSIMD.cmake
|
# cmake/FindSIMD.cmake -> ggml/cmake/FindSIMD.cmake
|
||||||
#
|
#
|
||||||
# src/ggml.c -> ggml/src/ggml.c
|
# src/ggml*.c -> ggml/src/ggml*.c
|
||||||
# src/ggml-aarch64.c -> ggml/src/ggml-aarch64.c
|
# src/ggml*.cpp -> ggml/src/ggml*.cpp
|
||||||
# src/ggml-aarch64.h -> ggml/src/ggml-aarch64.h
|
# src/ggml*.h -> ggml/src/ggml*.h
|
||||||
# src/ggml-alloc.c -> ggml/src/ggml-alloc.c
|
# src/ggml*.cu -> ggml/src/ggml*.cu
|
||||||
# src/ggml-amx/* -> ggml/src/ggml-amx/
|
# src/ggml*.m -> ggml/src/ggml*.m
|
||||||
# src/ggml-amx.cpp -> ggml/src/ggml-amx.cpp
|
# src/ggml-amx/* -> ggml/src/ggml-amx/
|
||||||
# src/ggml-backend-impl.h -> ggml/src/ggml-backend-impl.h
|
# src/ggml-cann/* -> ggml/src/ggml-cann/
|
||||||
# src/ggml-backend.cpp -> ggml/src/ggml-backend.cpp
|
# src/ggml-cuda/* -> ggml/src/ggml-cuda/
|
||||||
# src/ggml-cann/* -> ggml/src/ggml-cann/
|
# src/ggml-sycl/* -> ggml/src/ggml-sycl/
|
||||||
# src/ggml-cann.cpp -> ggml/src/ggml-cann.cpp
|
# src/vulkan-shaders/* -> ggml/src/vulkan-shaders/
|
||||||
# src/ggml-common.h -> ggml/src/ggml-common.h
|
|
||||||
# src/ggml-cuda/* -> ggml/src/ggml-cuda/
|
|
||||||
# src/ggml-cuda.cu -> ggml/src/ggml-cuda.cu
|
|
||||||
# src/ggml-impl.h -> ggml/src/ggml-impl.h
|
|
||||||
# src/ggml-kompute.cpp -> ggml/src/ggml-kompute.cpp
|
|
||||||
# src/ggml-metal.m -> ggml/src/ggml-metal.m
|
|
||||||
# src/ggml-quants.c -> ggml/src/ggml-quants.c
|
|
||||||
# src/ggml-quants.h -> ggml/src/ggml-quants.h
|
|
||||||
# src/ggml-rpc.cpp -> ggml/src/ggml-rpc.cpp
|
|
||||||
# src/ggml-sycl/* -> ggml/src/ggml-sycl/
|
|
||||||
# src/ggml-sycl.cpp -> ggml/src/ggml-sycl.cpp
|
|
||||||
# src/ggml-vulkan.cpp -> ggml/src/ggml-vulkan.cpp
|
|
||||||
# src/vulkan-shaders/* -> ggml/src/vulkan-shaders/
|
|
||||||
#
|
#
|
||||||
# include/ggml.h -> ggml/include/ggml.h
|
# include/ggml*.h -> ggml/include/ggml*.h
|
||||||
# include/ggml-alloc.h -> ggml/include/ggml-alloc.h
|
|
||||||
# include/ggml-amx.h -> ggml/include/ggml-amx.h
|
|
||||||
# include/ggml-backend.h -> ggml/include/ggml-backend.h
|
|
||||||
# include/ggml-blas.h -> ggml/include/ggml-blas.h
|
|
||||||
# include/ggml-cann.h -> ggml/include/ggml-cann.h
|
|
||||||
# include/ggml-cuda.h -> ggml/include/ggml-cuda.h
|
|
||||||
# include/ggml-kompute.h -> ggml/include/ggml-kompute.h
|
|
||||||
# include/ggml-metal.h -> ggml/include/ggml-metal.h
|
|
||||||
# include/ggml-rpc.h -> ggml/include/ggml-rpc.h
|
|
||||||
# include/ggml-sycl.h -> ggml/include/ggml-sycl.h
|
|
||||||
# include/ggml-vulkan.h -> ggml/include/ggml-vulkan.h
|
|
||||||
#
|
#
|
||||||
# tests/test-opt.cpp -> tests/test-opt.cpp
|
# tests/test-opt.cpp -> tests/test-opt.cpp
|
||||||
# tests/test-grad0.cpp -> tests/test-grad0.cpp
|
# tests/test-grad0.cpp -> tests/test-grad0.cpp
|
||||||
@ -168,41 +144,17 @@ if [ -f $SRC_LLAMA/ggml-src.patch ]; then
|
|||||||
-e 's/([[:space:]]|[ab]\/)CMakeLists.txt/\1ggml\/CMakeLists.txt/g' \
|
-e 's/([[:space:]]|[ab]\/)CMakeLists.txt/\1ggml\/CMakeLists.txt/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/CMakeLists.txt/\1ggml\/src\/CMakeLists.txt/g' \
|
-e 's/([[:space:]]|[ab]\/)src\/CMakeLists.txt/\1ggml\/src\/CMakeLists.txt/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)cmake\/FindSIMD.cmake/\1ggml\/cmake\/FindSIMD.cmake/g' \
|
-e 's/([[:space:]]|[ab]\/)cmake\/FindSIMD.cmake/\1ggml\/cmake\/FindSIMD.cmake/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml\.c/\1ggml\/src\/ggml.c/g' \
|
-e 's/([[:space:]]|[ab]\/)src\/ggml(.*)\.c/\1ggml\/src\/ggml\1.c/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-aarch64\.c/\1ggml\/src\/ggml-aarch64.c/g' \
|
-e 's/([[:space:]]|[ab]\/)src\/ggml(.*)\.cpp/\1ggml\/src\/ggml\1.cpp/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-aarch64\.h/\1ggml\/src\/ggml-aarch64.h/g' \
|
-e 's/([[:space:]]|[ab]\/)src\/ggml(.*)\.h/\1ggml\/src\/ggml\1.h/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-alloc\.c/\1ggml\/src\/ggml-alloc.c/g' \
|
-e 's/([[:space:]]|[ab]\/)src\/ggml(.*)\.cu/\1ggml\/src\/ggml\1.cu/g' \
|
||||||
|
-e 's/([[:space:]]|[ab]\/)src\/ggml(.*)\.m/\1ggml\/src\/ggml\1.m/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-amx\//\1ggml\/src\/ggml-amx\//g' \
|
-e 's/([[:space:]]|[ab]\/)src\/ggml-amx\//\1ggml\/src\/ggml-amx\//g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-amx\.cpp/\1ggml\/src\/ggml-amx.cpp/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-backend-impl\.h/\1ggml\/src\/ggml-backend-impl.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-backend\.cpp/\1ggml\/src\/ggml-backend.cpp/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-cann\//\1ggml\/src\/ggml-cann\//g' \
|
-e 's/([[:space:]]|[ab]\/)src\/ggml-cann\//\1ggml\/src\/ggml-cann\//g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-cann\.cpp/\1ggml\/src\/ggml-cann.cpp/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-common\.h/\1ggml\/src\/ggml-common.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-cuda\//\1ggml\/src\/ggml-cuda\//g' \
|
-e 's/([[:space:]]|[ab]\/)src\/ggml-cuda\//\1ggml\/src\/ggml-cuda\//g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-cuda\.cu/\1ggml\/src\/ggml-cuda.cu/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-impl\.h/\1ggml\/src\/ggml-impl.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-kompute\.cpp/\1ggml\/src\/ggml-kompute.cpp/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-metal\.m/\1ggml\/src\/ggml-metal.m/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-quants\.c/\1ggml\/src\/ggml-quants.c/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-quants\.h/\1ggml\/src\/ggml-quants.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-rpc\.cpp/\1ggml\/src\/ggml-rpc.cpp/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-sycl\//\1ggml\/src\/ggml-sycl\//g' \
|
-e 's/([[:space:]]|[ab]\/)src\/ggml-sycl\//\1ggml\/src\/ggml-sycl\//g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-sycl\.cpp/\1ggml\/src\/ggml-sycl.cpp/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/ggml-vulkan\.cpp/\1ggml\/src\/ggml-vulkan.cpp/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)src\/vulkan-shaders\//\1ggml\/src\/vulkan-shaders\//g' \
|
-e 's/([[:space:]]|[ab]\/)src\/vulkan-shaders\//\1ggml\/src\/vulkan-shaders\//g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml\.h/\1ggml\/include\/ggml.h/g' \
|
-e 's/([[:space:]]|[ab]\/)include\/ggml(.*)\.h/\1ggml\/include\/ggml\1.h/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-alloc\.h/\1ggml\/include\/ggml-alloc.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-amx\.h/\1ggml\/include\/ggml-amx.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-backend\.h/\1ggml\/include\/ggml-backend.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-blas\.h/\1ggml\/include\/ggml-blas.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-cann\.h/\1ggml\/include\/ggml-cann.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-cuda\.h/\1ggml\/include\/ggml-cuda.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-kompute\.h/\1ggml\/include\/ggml-kompute.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-metal\.h/\1ggml\/include\/ggml-metal.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-rpc\.h/\1ggml\/include\/ggml-rpc.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-sycl\.h/\1ggml\/include\/ggml-sycl.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)include\/ggml-vulkan\.h/\1ggml\/include\/ggml-vulkan.h/g' \
|
|
||||||
-e 's/([[:space:]]|[ab]\/)examples\/common\.h/\1examples\/common.h/g' \
|
-e 's/([[:space:]]|[ab]\/)examples\/common\.h/\1examples\/common.h/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)examples\/common\.cpp/\1examples\/common.cpp/g' \
|
-e 's/([[:space:]]|[ab]\/)examples\/common\.cpp/\1examples\/common.cpp/g' \
|
||||||
-e 's/([[:space:]]|[ab]\/)examples\/common-ggml\.h/\1examples\/common-ggml.h/g' \
|
-e 's/([[:space:]]|[ab]\/)examples\/common-ggml\.h/\1examples\/common-ggml.h/g' \
|
||||||
|
@ -4,43 +4,17 @@ cp -rpv ../ggml/CMakeLists.txt ./ggml/CMakeLists.txt
|
|||||||
cp -rpv ../ggml/src/CMakeLists.txt ./ggml/src/CMakeLists.txt
|
cp -rpv ../ggml/src/CMakeLists.txt ./ggml/src/CMakeLists.txt
|
||||||
cp -rpv ../ggml/cmake/FindSIMD.cmake ./ggml/cmake/FindSIMD.cmake
|
cp -rpv ../ggml/cmake/FindSIMD.cmake ./ggml/cmake/FindSIMD.cmake
|
||||||
|
|
||||||
cp -rpv ../ggml/src/ggml.c ./ggml/src/ggml.c
|
cp -rpv ../ggml/src/ggml*.c ./ggml/src/
|
||||||
cp -rpv ../ggml/src/ggml-aarch64.c ./ggml/src/ggml-aarch64.c
|
cp -rpv ../ggml/src/ggml*.cpp ./ggml/src/
|
||||||
cp -rpv ../ggml/src/ggml-aarch64.h ./ggml/src/ggml-aarch64.h
|
cp -rpv ../ggml/src/ggml*.h ./ggml/src/
|
||||||
cp -rpv ../ggml/src/ggml-alloc.c ./ggml/src/ggml-alloc.c
|
cp -rpv ../ggml/src/ggml*.cu ./ggml/src/
|
||||||
cp -rpv ../ggml/src/ggml-amx/* ./ggml/src/ggml-amx/
|
cp -rpv ../ggml/src/ggml*.m ./ggml/src/
|
||||||
cp -rpv ../ggml/src/ggml-amx.cpp ./ggml/src/ggml-amx.cpp
|
cp -rpv ../ggml/src/ggml-cann/* ./ggml/src/ggml-cann/
|
||||||
cp -rpv ../ggml/src/ggml-backend-impl.h ./ggml/src/ggml-backend-impl.h
|
cp -rpv ../ggml/src/ggml-cuda/* ./ggml/src/ggml-cuda/
|
||||||
cp -rpv ../ggml/src/ggml-backend.cpp ./ggml/src/ggml-backend.cpp
|
cp -rpv ../ggml/src/ggml-sycl/* ./ggml/src/ggml-sycl/
|
||||||
cp -rpv ../ggml/src/ggml-cann/* ./ggml/src/ggml-cann/
|
cp -rpv ../ggml/src/vulkan-shaders/* ./ggml/src/vulkan-shaders/
|
||||||
cp -rpv ../ggml/src/ggml-cann.cpp ./ggml/src/ggml-cann.cpp
|
|
||||||
cp -rpv ../ggml/src/ggml-common.h ./ggml/src/ggml-common.h
|
|
||||||
cp -rpv ../ggml/src/ggml-cuda/* ./ggml/src/ggml-cuda/
|
|
||||||
cp -rpv ../ggml/src/ggml-cuda.cu ./ggml/src/ggml-cuda.cu
|
|
||||||
cp -rpv ../ggml/src/ggml-impl.h ./ggml/src/ggml-impl.h
|
|
||||||
cp -rpv ../ggml/src/ggml-kompute.cpp ./ggml/src/ggml-kompute.cpp
|
|
||||||
cp -rpv ../ggml/src/ggml-metal.m ./ggml/src/ggml-metal.m
|
|
||||||
cp -rpv ../ggml/src/ggml-metal.metal ./ggml/src/ggml-metal.metal
|
|
||||||
cp -rpv ../ggml/src/ggml-quants.c ./ggml/src/ggml-quants.c
|
|
||||||
cp -rpv ../ggml/src/ggml-quants.h ./ggml/src/ggml-quants.h
|
|
||||||
cp -rpv ../ggml/src/ggml-rpc.cpp ./ggml/src/ggml-rpc.cpp
|
|
||||||
cp -rpv ../ggml/src/ggml-sycl/* ./ggml/src/ggml-sycl/
|
|
||||||
cp -rpv ../ggml/src/ggml-sycl.cpp ./ggml/src/ggml-sycl.cpp
|
|
||||||
cp -rpv ../ggml/src/ggml-vulkan.cpp ./ggml/src/ggml-vulkan.cpp
|
|
||||||
cp -rpv ../ggml/src/vulkan-shaders/* ./ggml/src/vulkan-shaders/
|
|
||||||
|
|
||||||
cp -rpv ../ggml/include/ggml.h ./ggml/include/ggml.h
|
cp -rpv ../ggml/include/ggml*.h ./ggml/include/
|
||||||
cp -rpv ../ggml/include/ggml-alloc.h ./ggml/include/ggml-alloc.h
|
|
||||||
cp -rpv ../ggml/include/ggml-amx.h ./ggml/include/ggml-amx.h
|
|
||||||
cp -rpv ../ggml/include/ggml-backend.h ./ggml/include/ggml-backend.h
|
|
||||||
cp -rpv ../ggml/include/ggml-blas.h ./ggml/include/ggml-blas.h
|
|
||||||
cp -rpv ../ggml/include/ggml-cann.h ./ggml/include/ggml-cann.h
|
|
||||||
cp -rpv ../ggml/include/ggml-cuda.h ./ggml/include/ggml-cuda.h
|
|
||||||
cp -rpv ../ggml/include/ggml-kompute.h ./ggml/include/ggml-kompute.h
|
|
||||||
cp -rpv ../ggml/include/ggml-metal.h ./ggml/include/ggml-metal.h
|
|
||||||
cp -rpv ../ggml/include/ggml-rpc.h ./ggml/include/ggml-rpc.h
|
|
||||||
cp -rpv ../ggml/include/ggml-sycl.h ./ggml/include/ggml-sycl.h
|
|
||||||
cp -rpv ../ggml/include/ggml-vulkan.h ./ggml/include/ggml-vulkan.h
|
|
||||||
|
|
||||||
cp -rpv ../ggml/tests/test-opt.cpp ./tests/test-opt.cpp
|
cp -rpv ../ggml/tests/test-opt.cpp ./tests/test-opt.cpp
|
||||||
cp -rpv ../ggml/tests/test-grad0.cpp ./tests/test-grad0.cpp
|
cp -rpv ../ggml/tests/test-grad0.cpp ./tests/test-grad0.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user