Skip to main content

cirron plan

Generate execution plans for Cirron operations (compile, build) and save, compare, or replay them. Plans show what will be executed, estimated resources, and potential issues without running anything.

Usage

Commands

Options (compile / build)

Plan compile / build

Without --arch, plans pick the architecture the same way cirron compile and cirron build do: inference.device from the model config, then the project’s hardware block. On Apple Silicon, plan compile plans for mps, and plan build plans for cpu because the build runs in a Linux container. Validation covers required files (src/model.py, requirements.txt), architecture-specific checks (e.g. CUDA availability), framework compatibility, and dependency resolution. Validation failures are reported as warnings and do not stop the plan from being generated. If plan generation fails, the command exits non-zero (36 for plan compile, 34 for plan build). The plan reports environment setup, dependency resolution, model compilation/build, architecture-specific optimization, and artifact generation steps.

Plan diff

Compare two saved plans to identify added/removed/changed/unchanged configurations and dependencies.
Example diff:

Plan save

Plans are stored in ~/.cirron/plans/ with timestamp, description, tags, command type, and framework metadata.

Plan replay

Examples

Output Formats

Troubleshooting

Use descriptive names and tags, save baselines before major changes, and clean up old plans regularly with --cleanup. Use --json for programmatic processing in CI/CD pipelines.