Expand description
APR Format Lint Module - Best Practices & Conventions
Implements APR-SPEC §4.11: Lint Command
Static analysis for best practices, conventions, and “soft” requirements.
Unlike validate (which checks for corruption/invalidity), lint checks
for quality and standardization.
§Checks Performed
- Metadata: Missing
license,model_card, orprovenance(WARN) - Tensor Naming: Names not matching canonical schema (INFO/WARN)
- Efficiency: Tensors unaligned to 64 bytes (INFO)
- Compression: Uncompressed tensors >1MB (INFO)
Structs§
- Lint
Issue - A single lint issue found during analysis
- Lint
Report - Complete lint report for a model
- Model
Lint Info - Information extracted from a model for linting
- Tensor
Lint Info - Information about a single tensor for linting
Enums§
- Lint
Category - Category of lint check
- Lint
Level - Severity level for lint issues
Functions§
- lint_
apr_ file - Lint an APR file from disk (supports both v1 and v2 formats)
- lint_
model - Run lint checks on model info
- lint_
model_ file - Lint any model file from disk (APR, GGUF, or SafeTensors)