Expand description
Shared model construction for the local-file and HuggingFace add paths.
build_new_model is the single place that turns a parsed GGUF file
into a NewModel row — naming, parameter count, capability detection,
and tag generation all happen here exactly once, regardless of how the
model was added.
Structs§
- HfOrigin
HuggingFace-specific inputs toModelOrigin::HuggingFace.
Enums§
- Model
Origin - Provenance-specific inputs for
build_new_model.
Constants§
- MAX_
GENERATION_ CONFIG_ LOOKUPS - How many repos to ask for a
generation_config.jsonbefore giving up.
Functions§
- build_
new_ model - Build the
NewModelrow for a model being added, from either the local-file orHuggingFacepath. - fetch_
published_ sampling - Fetch the model author’s published sampling recipe, if one can be found.
- filter_
hf_ 🔒tags - Filter
HuggingFacetags using a blocklist. - merge_
tags 🔒 - Merge GGUF-derived tags with filtered HF tags, removing duplicates.