Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion llama_cpp/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,8 @@ def embed(

# get pooling information
pooling_type = self.pooling_type()
logits_all = pooling_type == llama_cpp.LLAMA_POOLING_TYPE_NONE
# All tokens need outputs for embeddings; llama.cpp otherwise logs an "overriding" warning per input.
logits_all = True

if self.context_params.embeddings is False:
raise RuntimeError(
Expand Down
Loading