pub fn discovered_models(
files: &[(PathBuf, i64)],
kind: &SourceKind,
repo: impl Fn(&Path) -> Option<String>,
) -> (Vec<DiscoveredModel>, Vec<String>)Expand description
Build discovered models from files (each a GGUF path and its byte size).
repo derives the repository label from a file’s path (e.g. a relative
<org>/<model> prefix), or None. Returns the models and any per-shard-set
issues (a shard set missing its first part is skipped, not emitted).