Skip to content

Commit

Permalink
scripts : sync ggml-rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed May 14, 2024
1 parent fafd5e7 commit acc32bb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions scripts/sync-llama-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
# ggml-opencl.h -> src/ggml-opencl.h
# ggml-quants.c -> src/ggml-quants.c
# ggml-quants.h -> src/ggml-quants.h
# ggml-rpc.cpp -> src/ggml-rpc.cpp
# ggml-rpc.h -> src/ggml-rpc.h
# ggml-sycl.cpp -> src/ggml-sycl.cpp
# ggml-sycl.h -> src/ggml-sycl.h
# ggml-vulkan.cpp -> src/ggml-vulkan.cpp
Expand Down Expand Up @@ -148,6 +150,8 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
-e 's/\/ggml-opencl\.h/\/src\/ggml-opencl.h/g' \
-e 's/\/ggml-quants\.c/\/src\/ggml-quants.c/g' \
-e 's/\/ggml-quants\.h/\/src\/ggml-quants.h/g' \
-e 's/\/ggml-rpc\.cpp/\/src\/ggml-rpc.cpp/g' \
-e 's/\/ggml-rpc\.h/\/src\/ggml-rpc.h/g' \
-e 's/\/ggml-sycl\.cpp/\/src\/ggml-sycl.cpp/g' \
-e 's/\/ggml-sycl\.h/\/src\/ggml-sycl.h/g' \
-e 's/\/ggml-vulkan\.cpp/\/src\/ggml-vulkan.cpp/g' \
Expand Down
2 changes: 2 additions & 0 deletions scripts/sync-llama.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cp -rpv ../llama.cpp/ggml-opencl.cpp src/ggml-opencl.cpp
cp -rpv ../llama.cpp/ggml-opencl.h src/ggml-opencl.h
cp -rpv ../llama.cpp/ggml-quants.c src/ggml-quants.c
cp -rpv ../llama.cpp/ggml-quants.h src/ggml-quants.h
cp -rpv ../llama.cpp/ggml-rpc.cpp src/ggml-rpc.cpp
cp -rpv ../llama.cpp/ggml-rpc.h src/ggml-rpc.h
cp -rpv ../llama.cpp/ggml-sycl.cpp src/ggml-sycl.cpp
cp -rpv ../llama.cpp/ggml-sycl.h src/ggml-sycl.h
cp -rpv ../llama.cpp/ggml-vulkan.cpp src/ggml-vulkan.cpp
Expand Down
8 changes: 6 additions & 2 deletions scripts/sync-whisper-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
# ggml-opencl.h -> src/ggml-opencl.h
# ggml-quants.c -> src/ggml-quants.c
# ggml-quants.h -> src/ggml-quants.h
# ggml-rpc.cpp -> src/ggml-rpc.cpp
# ggml-rpc.h -> src/ggml-rpc.h
# ggml-sycl.cpp -> src/ggml-sycl.cpp
# ggml-sycl.h -> src/ggml-sycl.h
# ggml-vulkan.cpp -> src/ggml-vulkan.cpp
# ggml-vulkan.h -> src/ggml-vulkan.h
# ggml-vulkan.cpp -> src/ggml-vulkan.cpp
# ggml-vulkan.h -> src/ggml-vulkan.h
# ggml.h -> include/ggml/ggml.h
# ggml-alloc.h -> include/ggml/ggml-alloc.h
# ggml-backend.h -> include/ggml/ggml-backend.h
Expand Down Expand Up @@ -159,6 +161,8 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
-e 's/\/ggml-opencl\.h/\/src\/ggml-opencl.h/g' \
-e 's/\/ggml-quants\.c/\/src\/ggml-quants.c/g' \
-e 's/\/ggml-quants\.h/\/src\/ggml-quants.h/g' \
-e 's/\/ggml-rpc\.cpp/\/src\/ggml-rpc.cpp/g' \
-e 's/\/ggml-rpc\.h/\/src\/ggml-rpc.h/g' \
-e 's/\/ggml-sycl\.cpp/\/src\/ggml-sycl.cpp/g' \
-e 's/\/ggml-sycl\.h/\/src\/ggml-sycl.h/g' \
-e 's/\/ggml-vulkan\.cpp/\/src\/ggml-vulkan.cpp/g' \
Expand Down
2 changes: 2 additions & 0 deletions scripts/sync-whisper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cp -rpv ../whisper.cpp/ggml-opencl.cpp src/ggml-opencl.cpp
cp -rpv ../whisper.cpp/ggml-opencl.h src/ggml-opencl.h
cp -rpv ../whisper.cpp/ggml-quants.c src/ggml-quants.c
cp -rpv ../whisper.cpp/ggml-quants.h src/ggml-quants.h
cp -rpv ../whisper.cpp/ggml-rpc.cpp src/ggml-rpc.cpp
cp -rpv ../whisper.cpp/ggml-rpc.h src/ggml-rpc.h
cp -rpv ../whisper.cpp/ggml-sycl.cpp src/ggml-sycl.cpp
cp -rpv ../whisper.cpp/ggml-sycl.h src/ggml-sycl.h
cp -rpv ../whisper.cpp/ggml-vulkan.cpp src/ggml-vulkan.cpp
Expand Down

0 comments on commit acc32bb

Please sign in to comment.