resolve_pinned

Function resolve_pinned 

Source
pub fn resolve_pinned(
    candidates: &[ResolveCandidate<'_>],
    pin: &str,
    model_type: &str,
    hidden_size: usize,
) -> Result<usize, TargetResolveError>
Expand description

2026-09-25: Resolve a --kernel-target pin, matched case-insensitively against target names. The first same-named candidate that declares the checkpoint’s model_type with this hidden_size or a wildcard wins; the tie-break is not consulted.