llama_sample_top_p method
void
llama_sample_top_p(
- Pointer<
llama_context> ctx, - Pointer<
llama_token_data_array> candidates, - double p,
- int min_keep,
@details Nucleus sampling described in academic paper "The Curious Case of Neural Text Degeneration" https://arxiv.org/abs/1904.09751
Implementation
void llama_sample_top_p(
ffi.Pointer<llama_context> ctx,
ffi.Pointer<llama_token_data_array> candidates,
double p,
int min_keep,
) {
return _llama_sample_top_p(
ctx,
candidates,
p,
min_keep,
);
}