File tree Expand file tree Collapse file tree 4 files changed +214
-223
lines changed Expand file tree Collapse file tree 4 files changed +214
-223
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ models/*
34
34
/embedding
35
35
/benchmark-matmult
36
36
/vdot
37
+ /server
37
38
/Pipfile
38
39
/libllama.so
39
40
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot
3
3
4
4
ifdef LLAMA_BUILD_SERVER
5
5
BUILD_TARGETS += server
6
+ LLAMA_SERVER_VERBOSE ?= 1
7
+ server : CXXFLAGS += -DSERVER_VERBOSE=$(LLAMA_SERVER_VERBOSE )
6
8
endif
7
9
8
10
default : $(BUILD_TARGETS )
Original file line number Diff line number Diff line change 1
1
set (TARGET server)
2
+ option (LLAMA_SERVER_VERBOSE "Build verbose logging option for Server" ON )
2
3
include_directories (${CMAKE_CURRENT_SOURCE_DIR} )
3
4
add_executable (${TARGET} server.cpp json.hpp httplib.h)
4
5
target_compile_definitions (${TARGET} PRIVATE
@@ -8,6 +9,8 @@ target_compile_definitions(${TARGET} PRIVATE
8
9
$<$<CONFIG:Debug>:
9
10
CPPHTTPLIB_NO_EXCEPTIONS=1
10
11
>
12
+
13
+ SERVER_VERBOSE=$<BOOL :${LLAMA_SERVER_VERBOSE} >
11
14
)
12
15
target_link_libraries (${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} )
13
16
target_compile_features (${TARGET} PRIVATE cxx_std_11)
You can’t perform that action at this time.
0 commit comments