pub fn lint_model_file(
path: impl AsRef<Path>,
) -> Result<LintReport, AprenderError>Expand description
Lint any model file from disk (APR, GGUF, or SafeTensors)
Detects format via magic bytes and runs format-appropriate lint checks:
- Universal: metadata (license, provenance), tensor naming, NaN/Inf
- APR-only: CRC32 integrity, 64-byte alignment, compression
- GGUF: metadata KV pairs for license/model_card
- SafeTensors:
__metadata__for license/description/author