dot-resolve_model_type: Resolve model_type, including the "auto" detection hierarchy

.resolve_model_typeR Documentation

Resolve model_type, including the "auto" detection hierarchy

Description

When model_type == "auto", tries, in order: GGUF KV metadata (.detect_model_type_gguf, header-only probe), a sibling config.json (.detect_model_type_config), then the filename heuristic (.guess_model_type). If all fail it errors with a hint to set model_type explicitly rather than guessing.

Usage

.resolve_model_type(model_type, path)

Arguments

model_type

User-supplied model type ("auto" triggers detection)

path

Path used for detection (model_path or diffusion_model_path)

Value

A concrete model type string


sd2R documentation built on June 19, 2026, 9:08 a.m.