llama_sample_typical method
void
llama_sample_typical(
- Pointer<
llama_context> ctx, - Pointer<
llama_token_data_array> candidates, - double p,
- int min_keep,
@details Locally Typical Sampling implementation described in the paper https://arxiv.org/abs/2202.00666.
Implementation
void llama_sample_typical(
ffi.Pointer<llama_context> ctx,
ffi.Pointer<llama_token_data_array> candidates,
double p,
int min_keep,
) {
return _llama_sample_typical(
ctx,
candidates,
p,
min_keep,
);
}