mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 15:52:08 +00:00
Output real logprobs
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
parent
161280f313
commit
2a51e415ff
@ -364,7 +364,7 @@ impl LlamacppSampler {
|
||||
bindings::llama_sampler_apply(self.chain, &mut view);
|
||||
let logprob = *view.data.offset(view.selected as _);
|
||||
bindings::llama_sampler_accept(self.chain, logprob.id);
|
||||
(logprob.id, logprob.logit) // maybe p.ln() ?
|
||||
(logprob.id, logprob.p.ln())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user