Skip to main content

cirron compile

Compile your ML models for production deployment with architecture-specific optimizations and validation.

Usage

Options

Architecture and Framework Support

Compilation reads src/model.py, optimizes for the target architecture, and writes:
  • PyTorch → models/model_{arch}.pth
  • TensorFlow → models/model_{arch}/
  • Scikit-learn → models/model_{arch}.joblib (via joblib)
Metadata is written to artifacts/model_info.json.

Validation

With --validate, the command verifies required files (src/model.py, requirements.txt), Python version compatibility, architecture-specific requirements (e.g. CUDA availability), model instantiation, and index file format. Combine with --strict to fail on the first issue.

Index Files

YAML form is also accepted. Pass with --index config/index.json or --index config/index.yaml.

Examples

Output

Troubleshooting

Integration