pub fn sample_with_params_seeded(
data: &[u8],
params: &SamplingParams,
token_history: &[u32],
seed: Option<u64>,
) -> u32Expand description
2026-09-25: Samples one token id from the little-endian f32 logits in
data. temperature <= 0.0 returns the greedy argmax. Otherwise
Some(seed) draws from StdRng::seed_from_u64(seed) and None from
rand::random.