Skip to content

Conversation

danbev
Copy link
Member

@danbev danbev commented Aug 25, 2025

This commit explicitly sets the pooling type to 'none' in the logits.cpp to support models that have a pooling type specified.

The motivation for this is that some models may have a pooling type set in the model file (.gguf file) and for this specific case where we only want to extract logits, we need to ensure that no pooling is used to so that we are comparing raw logits and not pooled embeddings.

This commit explicitly sets the pooling type to 'none' in the logits.cpp
to support models that have a pooling type specified.

The motivation for this is that some models may have a pooling type set
in the model file (.gguf file) and for this specific case where we only
want to extract logits, we need to ensure that no pooling is used to
so that we are comparing raw logits and not pooled embeddings.
@danbev danbev merged commit dfd9b5f into ggml-org:master Aug 25, 2025
48 checks passed
Minh141120 pushed a commit to menloresearch/llama.cpp that referenced this pull request Aug 26, 2025
…5564)

This commit explicitly sets the pooling type to 'none' in the logits.cpp
to support models that have a pooling type specified.

The motivation for this is that some models may have a pooling type set
in the model file (.gguf file) and for this specific case where we only
want to extract logits, we need to ensure that no pooling is used to
so that we are comparing raw logits and not pooled embeddings.
Minh141120 pushed a commit to menloresearch/llama.cpp that referenced this pull request Aug 27, 2025
…5564)

This commit explicitly sets the pooling type to 'none' in the logits.cpp
to support models that have a pooling type specified.

The motivation for this is that some models may have a pooling type set
in the model file (.gguf file) and for this specific case where we only
want to extract logits, we need to ensure that no pooling is used to
so that we are comparing raw logits and not pooled embeddings.
@danbev danbev deleted the model-conversion-logits-pooling-none branch August 27, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants