llama_sampler_init_temp function

  1. @Native<Pointer<llama_sampler> Function(Float)>(ffi.Float)>()
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.Native<ffi.Pointer<llama_sampler> Function(ffi.Float)>()
external ffi.Pointer<llama_sampler> llama_sampler_init_temp(
  double t,
);