pub fn resolve_model_name(
gguf: Option<&GgufMetadata>,
file_path: &Path,
source: NameSource<'_>,
) -> StringExpand description
Resolve the models.name for a model being added.
The first non-blank rung wins:
general.namefrom the GGUF header- the
HuggingFacerepo’s short name, with the owner prefix and a trailing-GGUFstripped (only whensourcecarries a repo id) - the file stem
UNKNOWN_MODEL_NAME