adaptive p: collect probability before logit bias (#1314)

This commit is contained in:
dungquixote42
2026-02-24 09:39:17 -05:00
committed by GitHub
parent 38ca19d828
commit aaa545c3dc
5 changed files with 13 additions and 14 deletions

View File

@@ -1390,7 +1390,7 @@ LLAMA_API struct llama_grammar* llama_sampler_init_grammar_lazy_patterns(
const uint32_t seed);
void llama_prep_adaptive_p(struct llama_context * ctx,
llama_token_data_array * candidates,
float * logits,
struct llama_sampler_adaptive_p * adapt_p_ctx);
/// @details Adaptive p sampler described in https://github.com/MrJackSpade/adaptive-p-docs/blob/main/README.md