Documentation Index
Fetch the complete documentation index at: https://docs.cirron.com/llms.txt
Use this file to discover all available pages before exploring further.
cirron info
Display comprehensive information about your ML model, including architecture details, dependencies, and metadata. The command also provides diagnostic checks and hardware detection.Usage
Options
| Option | Description | Default |
|---|---|---|
--update <type> | Update metadata (metadata) | null |
--dry-run | Preview changes without applying | false |
--diagnostics | Run diagnostic checks on configuration and connectivity | false |
--hardware | Show hardware information | false |
--json | Output in JSON format | false |
--detailed | Show detailed information | false |
Basic Information Display
Basic Information
- Model Type: Classification, regression, etc.
- Framework: PyTorch, TensorFlow, Scikit-learn
- Python Version: Required Python version
- GPU Required: Whether GPU is needed
Model Details
- Model Class: Detected model class name
- Architecture: CNN, LSTM, Transformer, etc.
- Parameters: Estimated parameter count
- Input Shape: Expected input dimensions
- Output Shape: Model output dimensions
- Training/Test Data Shapes: Data dimensions
Version Control
- Git Commit: Current commit hash
- Branch: Current git branch
- Repository Status: Clean or uncommitted changes
Associated Endpoints
- Deployment URLs: Configured endpoint URLs
- Environment Status: Production, staging, etc.
Key Dependencies
- Framework Dependencies: torch, tensorflow, sklearn
- Data Processing: numpy, pandas
- Visualization: matplotlib, seaborn
Model Analysis
The command performs static analysis of yoursrc/model.py file to extract:
Framework Detection
Architecture Pattern Recognition
- CNN: Conv2d, Conv1d layers
- LSTM/GRU: Recurrent neural networks
- Transformer: Attention mechanisms
- ResNet: Residual connections
- Regularization: Dropout, BatchNorm
- Embeddings: Word embeddings
Input Shape Detection
Metadata Management
Update Metadata
modelClassName: Detected model classarchitecture: Recognized architecture patternsinputShape: Detected input dimensionstrainingDataShape: Training data shapetestDataShape: Test data shapegitCommitHash: Current git commitdetectedPatterns: Architecture patterns found
Metadata Mismatch Detection
The command automatically detects mismatches between stored metadata and current model analysis:Critical Mismatches
- Model Class Changes: Different model class detected
- Input Shape Changes: Modified input dimensions
Warning Mismatches
- Architecture Changes: New/different architecture patterns
- Git Commit Changes: Code has been modified
Examples
Basic Information Display
Update Metadata
Preview Changes
Metadata Mismatch Warnings
Framework-Specific Analysis
PyTorch Analysis
TensorFlow Analysis
Scikit-Learn Analysis
Configuration
cirron.yaml Metadata Section
Error Handling
Common Errors
Not a Cirron Project
Unknown Update Type
Concurrent File Changes
Recovery Actions
-
Missing Project Configuration
-
Invalid Update Type
-
Concurrent Changes
Integration
CI/CD Pipeline
Pre-deployment Validation
Diagnostics
Run diagnostic checks on your configuration, settings, and connectivity.- Configuration: Validates
cirron.yamlstructure and required fields - Settings: Checks global and project settings for consistency
- Connectivity: Tests API endpoint reachability and authentication
- Environment: Verifies Python, CUDA, and dependency availability
Hardware Info
Quick hardware detection shortcut. This is equivalent tocirron config hardware --detect.
cirron config hardware.
Troubleshooting
Missing Model Information
- Ensure
src/model.pyexists and is valid Python - Check that model class inherits from framework base classes
- Verify import statements are correct
Inaccurate Parameter Counts
- Run with model loaded for accurate counts
- Check for dynamic parameter generation
- Verify model instantiation works
Metadata Not Updating
- Check file permissions on
cirron.yaml - Ensure no other processes are modifying the file
- Verify git repository is accessible
Architecture Detection Issues
- Use standard framework patterns
- Avoid custom layer implementations
- Check for typos in layer names