Skip to content

Commit 22058f2

Browse files
committed
talk-llama : sync llama.cpp
1 parent 5b7979a commit 22058f2

14 files changed

+4963
-4320
lines changed

Diff for: Makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,8 @@ OBJ_GGML += \
785785
ggml/src/ggml.o \
786786
ggml/src/ggml-alloc.o \
787787
ggml/src/ggml-backend.o \
788-
ggml/src/ggml-quants.o
788+
ggml/src/ggml-quants.o \
789+
ggml/src/ggml-aarch64.o
789790

790791
OBJ_WHISPER += \
791792
src/whisper.o
@@ -916,6 +917,13 @@ ggml/src/ggml-quants.o: \
916917
ggml/src/ggml-common.h
917918
$(CC) $(CFLAGS) -c $< -o $@
918919

920+
ggml/src/ggml-aarch64.o: \
921+
ggml/src/ggml-aarch64.c \
922+
ggml/include/ggml.h \
923+
ggml/src/ggml-aarch64.h \
924+
ggml/src/ggml-common.h
925+
$(CC) $(CFLAGS) -c $< -o $@
926+
919927
ggml/src/ggml-blas.o: \
920928
ggml/src/ggml-blas.cpp \
921929
ggml/include/ggml-blas.h
@@ -1076,7 +1084,7 @@ talk: examples/talk/talk.cpp examples/talk/gpt-2.cpp \
10761084
$(CXX) $(CXXFLAGS) $(CFLAGS_SDL) -c $< -o $(call GET_OBJ_FILE, $<)
10771085
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) $(LDFLAGS_SDL)
10781086

1079-
talk-llama: examples/talk-llama/talk-llama.cpp examples/talk-llama/llama.cpp examples/talk-llama/unicode.cpp examples/talk-llama/unicode-data.cpp \
1087+
talk-llama: examples/talk-llama/talk-llama.cpp examples/talk-llama/llama.cpp examples/talk-llama/llama-vocab.cpp examples/talk-llama/llama-grammar.cpp examples/talk-llama/llama-sampling.cpp examples/talk-llama/unicode.cpp examples/talk-llama/unicode-data.cpp \
10801088
$(OBJ_GGML) $(OBJ_WHISPER) $(OBJ_COMMON) $(OBJ_SDL)
10811089
$(CXX) $(CXXFLAGS) $(CFLAGS_SDL) -c $< -o $(call GET_OBJ_FILE, $<)
10821090
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) $(LDFLAGS_SDL)

Diff for: examples/talk-llama/CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
if (WHISPER_SDL2)
22
# talk-llama
33
set(TARGET talk-llama)
4-
add_executable(${TARGET} talk-llama.cpp llama.cpp unicode.cpp unicode-data.cpp)
4+
add_executable(${TARGET} talk-llama.cpp
5+
llama.cpp
6+
llama-vocab.cpp
7+
llama-grammar.cpp
8+
llama-sampling.cpp
9+
unicode.cpp
10+
unicode-data.cpp)
511
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
612

713
if (WHISPER_CLBLAST)

0 commit comments

Comments
 (0)