Skip to main content

sparse_ok

Function sparse_ok 

Source
pub fn sparse_ok(config: &SamplerConfig) -> bool
Expand description

Whether config can go through the sparse chain: a real temperature and a top-k in 1..=256. Qwen’s recommended instruct settings (0.7 / top-p 0.8 / top-k 20 / presence 1.5) do.