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.
Functionsยง
- build_
new_ model - Build the
NewModelrow for a model being added, from either the local-file orHuggingFacepath. - filter_
hf_ ๐tags - Filter
HuggingFacetags using a blocklist. - merge_
tags ๐ - Merge GGUF-derived tags with filtered HF tags, removing duplicates.