find_gguf

Function find_gguf 

Source
pub fn find_gguf(dir: &Path) -> Option<PathBuf>
Expand description

Locate the backbone GGUF weight file in dir. Returns the lexicographically-first non-mmproj *.gguf (also the first shard, *-00001-of-*, of a split file). The mmproj vision sidecar is excluded here and loaded separately (see sidecar::find_mmproj); a dir that is only an mmproj falls back to the first file so the caller still gets a path to error on.