-
Reading int main(int argc, char ** argv) {
...
params.n_ctx = 512;
params.logits_all = true;
...
} But I can’t understand The option
Perhaps someone can help answer my question? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To measure the perplexity, you need to know the logits of all tokens. Without The reason why llama.cpp/examples/perplexity/perplexity.cpp Line 604 in cfac111
|
Beta Was this translation helpful? Give feedback.
To measure the perplexity, you need to know the logits of all tokens. Without
logits_all
, you can only receive the logits of last token in sequence (which is useful in generation mode).The reason why
params.logits_all
does not have any effect inllama-perplexity
is because the logits it set in batch:llama.cpp/examples/perplexity/perplexity.cpp
Line 604 in cfac111
params.logits_all
maybe used in another example so it's being kept, but marked as deprecated incommon.h