llama_sampler_init_temp method

Pointer<llama_sampler> llama_sampler_init_temp(
  1. double t
)

#details Updates the logits l_i` = l_i/t. When t <= 0.0f, the maximum logit is kept at it's original value, the rest are set to -inf

Implementation

ffi.Pointer<llama_sampler> llama_sampler_init_temp(
  double t,
) {
  return _llama_sampler_init_temp(
    t,
  );
}