public static matchesVariant(name as String, variant as String) as Boolean
Matches the exact quantization suffix of a model filename. Letter case does not affect published variant names. Numbered split filenames are classified here; their complete loading is a separate reader contract. No filename is treated as an executable model merely because a vision projector uses the same floating-point encoding.
| Parameter | Description |
|---|---|
name | Hub asset basename. |
variant | Variant name, for example BF16 or Q5_K_M. |
True for a matching model asset, false for vision projectors.
assert GGUFAsset.matchesVariant("model-Q5_K_M.gguf", "Q5_K_M")