llama_sample_entropy method

void llama_sample_entropy(
  1. Pointer<llama_context> ctx,
  2. Pointer<llama_token_data_array> candidates_p,
  3. double min_temp,
  4. double max_temp,
  5. 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,
  );
}