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
| Command | Description |
|---|---|
compile | Generate compilation plan for ML models |
build | Generate build plan for ML projects |
diff | Compare two saved plans |
save | Save plans for future reference |
replay | Execute a saved plan from file |
Options (compile / build)
| Option | Description | Default |
|---|---|---|
--arch, -a | Target architecture (cpu, cuda, gpu) | Auto-detected |
--index | Path to index/manifest file | null |
--validate | Run validation checks during planning | false |
--save | Save plan to file | false |
--json | Output plan in JSON format | false |
--verbose | Show detailed plan information | false |
-i, --interactive | Enhanced planning with save options | false |
Plan compile / build
src/model.py, requirements.txt), architecture-specific checks (e.g. CUDA availability), framework compatibility, and dependency resolution. 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.Plan save
| Option | Description | Default |
|---|---|---|
--all | Save all plan types (compile, build) | false |
--name <filename> | Custom filename | Auto-generated |
--description <desc> | Description for the plan | - |
--tags <tags> | Comma-separated tags | - |
--list | List all saved plans | false |
--cleanup [days] | Remove plans older than N days | 30 |
--verbose | Detailed save output | false |
--json | JSON output | false |
~/.cirron/plans/ with timestamp, description, tags, command type, and framework metadata.
Plan replay
| Option | Description | Default |
|---|---|---|
--plan <file> | Plan file to replay (required) | - |
--validate | Validate environment compatibility | true |
--dry-run | Show what would be executed without running | false |
--verbose | Detailed execution information | false |
--force | Force replay despite compatibility warnings | false |
Examples
Output Formats
Troubleshooting
| Error | Resolution |
|---|---|
No cirron.yaml found | cirron init my-project |
Invalid plan files | Regenerate with cirron plan compile --save new-plan.json |
--cleanup. Use --json for programmatic processing in CI/CD pipelines.