llama : move sampling code into llama-sampling

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-07-19 18:15:36 +03:00
parent 081fe431aa
commit 0ddc8e361c
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
7 changed files with 758 additions and 699 deletions

View file

@ -876,6 +876,7 @@ OBJ_GGML += \
OBJ_LLAMA = \
src/llama.o \
src/llama-sampling.o \
src/unicode.o \
src/unicode-data.o
@ -1055,6 +1056,7 @@ src/unicode-data.o: \
src/llama.o: \
src/llama.cpp \
src/llama-impl.h \
src/unicode.h \
include/llama.h \
ggml/include/ggml-cuda.h \
@ -1064,6 +1066,13 @@ src/llama.o: \
ggml/include/ggml-backend.h
$(CXX) $(CXXFLAGS) -c $< -o $@
src/llama-sampling.o: \
src/llama-sampling.cpp \
src/llama-sampling.h \
src/llama-impl.h \
include/llama.h
$(CXX) $(CXXFLAGS) -c $< -o $@
$(LIB_LLAMA): \
$(OBJ_LLAMA) \
$(LIB_GGML)