llama_sample_entropy method
void
llama_sample_entropy(
- Pointer<
llama_context> ctx, - Pointer<
llama_token_data_array> candidates_p, - double min_temp,
- double max_temp,
- double exponent_val,
@details Dynamic temperature implementation described in the paper https://arxiv.org/abs/2309.02772.
Implementation
void llama_sample_entropy(
ffi.Pointer<llama_context> ctx,
ffi.Pointer<llama_token_data_array> candidates_p,
double min_temp,
double max_temp,
double exponent_val,
) {
return _llama_sample_entropy(
ctx,
candidates_p,
min_temp,
max_temp,
exponent_val,
);
}