Skip to main content

Module model_import

Module model_import 

Source
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 to ModelOrigin::HuggingFace.

Enumsยง

ModelOrigin
Provenance-specific inputs for build_new_model.

Functionsยง

build_new_model
Build the NewModel row for a model being added, from either the local-file or HuggingFace path.
filter_hf_tags ๐Ÿ”’
Filter HuggingFace tags using a blocklist.
merge_tags ๐Ÿ”’
Merge GGUF-derived tags with filtered HF tags, removing duplicates.