pub fn identify(record: &ModelRecord) -> IdentifiedModelExpand description
Identify what a record is from its source kind and on-disk files: a fixed
profile for builtin/endpoint/ollama models, else the GGUF/GGML header, a
diffusers model_index.json, a config.json+safetensors layout, or the
GGUF weights inside the container when the record names a directory, which
is the shape a Hugging Face cache repo has.
record.source.path is taken as-is (callers pass an absolute path — discovery
does); a leading ~ is not expanded.