Expand description
Model file validation (CONTRACT: apr_model_validity).
Jidoka boundary check: validate model file BEFORE entering inference. APR files must have embedded tokenizer. GGUF files must have valid magic. Broken models are rejected with actionable error + re-conversion command.
Used at two boundaries:
RealizarDriver::new()โ reject at load time (hard error)ModelConfig::discover_model()โ deprioritize at discovery (PMAT-150)
Functionsยง
- is_
valid_ model_ file - Quick validation for model discovery โ returns true if the model file passes basic structural checks (APR tokenizer present, GGUF magic valid).