"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Uni-Mol Tools CLI-Anything SOP
Overview
Uni-Mol Tools is a molecular property prediction framework that provides easy-to-use interfaces for training and inference of molecular models. This CLI-Anything harness enables interactive molecular property prediction through conversational AI.
Supported Task Types
- Binary Classification - Classify molecules into two categories (e.g., active/inactive)
- Regression - Predict continuous properties (e.g., binding affinity)
- Multiclass Classification - Classify into multiple categories
- Multilabel Classification - Assign multiple binary labels
- Multilabel Regression - Predict multiple continuous values
Standard Operating Procedures
1. Project Management
Create a New Project
python3 -m cli_anything.unimol_tools --json project create --name my_project
List All Projects
python3 -m cli_anything.unimol_tools --json project list
Switch Project
python3 -m cli_anything.unimol_tools --json project switch --name my_project
2. Training Models
Train a Binary Classification Model
python3 -m cli_anything.unimol_tools --json train \
--data-path /path/to/train.csv \
--target-col target \
--task-type classification \
--epochs 10 \
--learning-rate 0.0001
Train a Regression Model
python3 -m cli_anything.unimol_tools --json train \
--data-path /path/to/train.csv \
--target-col score \
--task-type regression \
--epochs 10 \
--learning-rate 0.0001
3. Model Management
List All Models
python3 -m cli_anything.unimol_tools --json models list
Show Model Details
python3 -m cli_anything.unimol_tools --json models show --model-id <id>
Rank Models by Performance
python3 -m cli_anything.unimol_tools --json models rank
4. Storage Management
Check Storage Usage
python3 -m cli_anything.unimol_tools --json storage analyze
Clean Up Poor Performers
python3 -m cli_anything.unimol_tools --json cleanup auto
5. Prediction
Make Predictions
python3 -m cli_anything.unimol_tools --json predict \
--model-id <id> \
--data-path /path/to/test.csv
Data Format Requirements
CSV File Structure
- Must contain a
SMILEScolumn with molecular structures - Must contain target column(s) for training
- Example:
SMILES,target
CCO,1
CCCO,0
CC(C)O,1
Task-Specific Formats
Binary Classification: Target values are 0/1 or True/False Regression: Target values are floating-point numbers Multiclass: Target values are integers (0, 1, 2, ...) Multilabel: Multiple target columns with 0/1 values Multilabel Regression: Multiple target columns with float values
Session Management
The CLI maintains session state for:
- Current project
- Recently trained models
- Command history
- Storage statistics
Interactive Mode
python3 -m cli_anything.unimol_tools
One-Shot Mode
python3 -m cli_anything.unimol_tools --json <command> [options]
Best Practices
- Create Projects for Different Experiments: Keep models organized by research goals
- Monitor Storage: Use
storage analyzeregularly to track disk usage - Clean Up Old Models: Use
cleanup autoto remove underperforming models - Check Model Rankings: Use
models rankto compare performance - Use JSON Mode for Automation: Add
--jsonflag for programmatic access
Troubleshooting
Issue: Training fails with "CUDA out of memory"
Solution: Reduce batch size or use CPU mode
Issue: CSV file not recognized
Solution: Ensure SMILES column exists and is properly formatted
Issue: Model not found
Solution: Run models list to verify model ID
Issue: Storage full
Solution: Run cleanup auto or manually delete old models with models delete
Performance Optimization
- Batch Size: Default is 32, reduce if memory issues occur
- Epochs: Start with 10, increase if underfitting
- Learning Rate: Default is 0.0001, adjust based on loss curves
- Data Split: Default train/val split is 80/20
Testing
Run the test suite to verify functionality:
# Unit tests (no backend required)
cd unimol_tools/agent-harness/docs/test
bash run_tests.sh --unit -v
# Full test suite
bash run_tests.sh --full -v
Additional Resources
- Quick Start Guide: docs/guides/02-QUICK-START.md
- API Reference: docs/architecture/API.md
- Test Data: https://github.com/545487677/CLI-Anything-unimol-tools/tree/main/unimol_tools/examples
- Uni-Mol Paper: https://arxiv.org/abs/2209.11126