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§
- Name
Source - 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.namedeclared in the GGUF header, orNoneif absent or blank. - file_
stem_ 🔒name - repo_
short_ name - Strip a
HuggingFacerepo id down to its final path segment. - resolve_
model_ name - Resolve the
models.namefor a model being added. - strip_
gguf_ suffix - Strip a trailing
-GGUFmarker, case-insensitively.