Is there anyway to disable log file writing? #3672
-
The server was start by:
The log file records too much content, and as the number of requests increases, the log file becomes larger and larger. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can compile with ( |
Beta Was this translation helpful? Give feedback.
-
The compilation flags can also be given via the CFLAGS and CXXFLAGS environment variables, just add something like |
Beta Was this translation helpful? Give feedback.
You can compile with
LLAMA_DISABLE_LOGS=1
if you're using theMakefile
(apparently there's no support when using cmake). Also, though it's not documented (which isn't ideal) there are some log-file related commandline options: https://github.com/ggerganov/llama.cpp/blob/f3b25e40438b3c8383caabf4e7b89863145a9f0e/common/log.h#L501-L525(
--log-disable
is the one you're looking for.)