Skip to main content

sample_token

Function sample_token 

Source
pub fn sample_token(logits: &[f32], params: &SampleParams, rng: &mut Rng) -> u32
Expand description

Sample a token from logits using temperature + top-k + top-p.