Skip to main content

is_valid_model_file

Function is_valid_model_file 

Source
pub fn is_valid_model_file(path: &Path) -> bool
Expand description

Quick validation for model discovery — returns true if the model file passes basic structural checks (APR tokenizer present, GGUF magic valid).

Used by ModelConfig::discover_model() to skip broken APR files and fall through to GGUF. Does NOT load the full model.