Skip to main content

Module model_naming

Module model_naming 

Source
Expand description

Shared model-naming policy.

Both the local-file import path and the HuggingFace download path must resolve the same models.name for the same underlying GGUF file. This module is the single place that decision is made.

Enums§

NameSource
Which naming signals are available for a model being added.

Constants§

UNKNOWN_MODEL_NAME
Stored when no naming signal is available at all.

Functions§

declared_name
The general.name declared in the GGUF header, or None if absent or blank.
file_stem_name 🔒
repo_short_name
Strip a HuggingFace repo id down to its final path segment.
resolve_model_name
Resolve the models.name for a model being added.
strip_gguf_suffix
Strip a trailing -GGUF marker, case-insensitively.