Function llama_cpp_sys_2::llama_sample_token

source ยท
pub unsafe extern "C" fn llama_sample_token(
    ctx: *mut llama_context,
    candidates: *mut llama_token_data_array,
) -> llama_token
Expand description

@details Randomly selects a token from the candidates based on their probabilities using the RNG of ctx.