Skip to main content

MAX_TOP_K

Constant MAX_TOP_K 

Source
pub const MAX_TOP_K: usize = 10;
Expand description

Hard cap on top_k regardless of what the model requests — keeps a single call bounded even if the model asks for an unreasonable count.