]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
debug : include LLAMA_POOLING_TYPE_UNSPECIFIED in pooling check (#18692)
authorDaniel Bevenius <redacted>
Sun, 11 Jan 2026 15:34:41 +0000 (16:34 +0100)
committerGitHub <redacted>
Sun, 11 Jan 2026 15:34:41 +0000 (16:34 +0100)
commit9789e28459a231bed38859edbdcb10bd058c66d4
tree56eb00373ec56b2feabfd1a3a9704d1daf77d446
parent84ae04f163140f24eb7d1fae9c1893edbec5ca05
debug : include LLAMA_POOLING_TYPE_UNSPECIFIED in pooling check (#18692)

* debug : include LLAMA_POOLING_TYPE_UNSPECIFIED in pooling check

This commit updates the pooling check in the debug example to
also include LLAMA_POOLING_TYPE_UNSPECIFIED and not just
LLAMA_POOLING_TYPE_NONE.

* debug : normalize both pooled and token embeddings

This commit updates debug.cpp to normalize embeddings for both pooled
and non-pooled outputs. For pooled embeddings, normalization is applied
to the single vector, and for non-pooled embeddings, normalization is
applied to each token embedding vector individually.

The motivation for this is to enable non-pooled embeddings to be
normalized which was not possible previously.
examples/debug/debug.cpp