spec_dispatch_eligible

Function spec_dispatch_eligible 

Source
pub fn spec_dispatch_eligible(
    inside_thinking: bool,
    post_think_emitted: u32,
    output_len: u32,
    suppress_tool_call: bool,
    disable_mtp: bool,
    spec_think: bool,
    resume_guard: u32,
    dflash_raw_argmax: bool,
) -> bool
Expand description

2026-09-25: Whether one sequence may take the speculative path this step. Never with suppress_tool_call or disable_mtp, and never inside <think> unless spec_think (METRALE_DFLASH_SPEC_THINK=1), for MTP and DFlash alike. Otherwise it needs resume_guard emitted tokens: counted after </think>, except inside <think> (reachable only with spec_think), where the whole output counts.