klyn.llm.inference.hub.GGUFAsset.matchesVariant
method
public static matchesVariant(name as String, variant as String) as Boolean
Description

Matches the exact quantization suffix of a text-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.

Parameters
ParameterDescription
nameHub asset basename.
variantVariant name, for example BF16 or Q5_K_M.
Returns

True for a matching text-model asset, false for vision projectors.

Example

assert GGUFAsset.matchesVariant("model-Q5_K_M.gguf", "Q5_K_M")