| .detect_model_type_gguf | R Documentation |
Reads general.architecture (and a few related KV keys) from a GGUF
header WITHOUT loading tensor weights, via
ggmlR::gguf_load(path, meta_only = TRUE) (no_alloc header read). Cheap
even on multi-GB Flux models.
.detect_model_type_gguf(path)
path |
Path to a .gguf file |
Note: stable-diffusion.cpp itself detects the version from tensor
names/shapes, not from general.architecture, so many diffusion
GGUFs (e.g. quantized Flux converters) leave that field empty or set it to a
sub-component name (e.g. "t5" for a packed text encoder). This probe
is therefore best-effort: it returns a concrete type only on a confident
match and otherwise NULL, so the caller falls through to
config.json / filename detection.
Model type string, or NULL if unavailable / inconclusive
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.