pub fn sample(
logits: &[f32],
config: &SamplerConfig,
past_tokens: &[u32],
rng: &mut SplitMix64,
) -> u32Expand description
Sample next token from logits. Chain order is fixed: rep-penalty → temperature → softmax → min-p → top-k → top-p → sample.