Skip to main content

select_checkpoint

Function select_checkpoint 

Source
pub fn select_checkpoint(
    evals: &[(usize, f64, Vec<f64>)],
    baseline: &[f64],
    threshold: f64,
    slack: f64,
) -> Option<usize>
Expand description

Checkpoint selection: lowest val ppl AMONG GATE-PASSING checkpoints (ties → earliest). None = nothing passed → the caller must restore the zero-shot state (identity polish): the stage must never make generation worse than conversion alone. (Patent 16 draft, claim 13.)