]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
kv-cache : skip alignment of n_stream in kv-cache log msg [no ci] (#15040)
authorDaniel Bevenius <redacted>
Sat, 2 Aug 2025 14:14:57 +0000 (16:14 +0200)
committerGitHub <redacted>
Sat, 2 Aug 2025 14:14:57 +0000 (17:14 +0300)
commit4fdea540bda4648f98b85e8ee9dc66db4bfb5945
treec38c9dd62465d9ea3b39b4a3e5d844c3ca4b2e6e
parenta4569c41fd2253c89ef52fc2378687bdbf42f61a
kv-cache : skip alignment of n_stream in kv-cache log msg [no ci] (#15040)

This commit removes the right alignment the `n_stream` value in the
log message in the `llama_kv_cache_unified` constructor.

The motivation for this change is to enhance the readability of log
message. Currently the output looks like this:
```console
llama_kv_cache_unified: size = 2048.00 MiB (  4096 cells,  32 layers,  1/ 1 seqs), K (f16): 1024.00 MiB, V (f16): 1024.00 MiB
```
Notice that the `n_stream` value is right aligned, which makes it a
little harder to read.

With the change in this commit the output will look like
```console
llama_kv_cache_unified: size = 2048.00 MiB (  4096 cells,  32 layers, 1/1 seqs), K (f16): 1024.00 MiB, V (f16): 1024.00 MiB
```
src/llama-kv-cache-unified.cpp