llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Misc. bug: Logging parameters do not work as expected

Open karambaso opened this issue 6 months ago • 2 comments

Name and Version

b9209

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

llama-cli

Command line

llama-cli --no-log-timestamps --no-slots -m model/path/here ...

Problem description & steps to reproduce

When tokens are generated in the token stream at some intervals timing markers are inserted. There is the logging parameter --no-log-timestamps, when it is present nothing changes, timings still are printed. Also there is the --slots parameter, which, it was hypothesized, possibly influences the timings. But when its variant --no-slots is present llama-cli otputs the error: invalid argument: --no-slots. If its argument is changed to "disabled" the same error is printed. It seems this parameter just not works at all. After looking at the source code it is found that the timing printing is unconditional. It depends only on the logging level. Then what for is the --no-log-timestamps parameter?

First Bad Commit

No response

Relevant log output

Logs
error: invalid argument: --no-slots

karambaso avatar May 18 '26 18:05 karambaso

The logging seems to be broken in llama-server as well. When leaving verbosity to the default (or explicitly setting it to 3 - INFO), the logging output is very reduced. However, when running with verbosity to 4 (DEBUG), it shows a lot more info-level logging entries which are suppressed when running on INFO level.

Te-eMster avatar May 19 '26 14:05 Te-eMster

The logging seems to be broken in llama-server as well. When leaving verbosity to the default (or explicitly setting it to 3 - INFO), the logging output is very reduced. However, when running with verbosity to 4 (DEBUG), it shows a lot more info-level logging entries which are suppressed when running on INFO level.

I can confirm this, --verbosity 3 does not show INFO level messages such as tensor offload and (V)RAM usage:

0.30.914.871 I load_tensors: offloading output layer to GPU
0.30.914.878 I load_tensors: offloading 61 repeating layers to GPU
0.30.914.878 I load_tensors: offloaded 63/63 layers to GPU
0.30.914.883 I load_tensors:          CPU model buffer size =   480.81 MiB
0.30.914.885 I load_tensors:        CUDA0 model buffer size = 41551.12 MiB
0.30.914.886 I load_tensors:    CUDA_Host model buffer size = 137025.00 MiB

- these messages appear only together with DEBUG level messages.

vbooka1 avatar May 20 '26 07:05 vbooka1

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 05 '26 01:07 github-actions[bot]