"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
Uni-Mol Tools CLI Documentation
A CLI-Anything harness for Uni-Mol Tools - Interactive molecular property prediction
π Documentation Structure
docs/
βββ README.md # This file
βββ guides/
β βββ 01-INSTALLATION.md # Complete installation guide
β βββ 02-QUICK-START.md # Quick start tutorial
β βββ 03-BASIC-USAGE.md # Basic commands
β βββ 04-INTERACTIVE-FEATURES.md # Interactive features guide
β βββ 05-TROUBLESHOOTING.md # Common issues
βββ tutorials/
β βββ CLASSIFICATION.md # Binary classification tutorial
β βββ REGRESSION.md # Regression tutorial
β βββ ADVANCED.md # Advanced usage
βββ architecture/
β βββ DESIGN.md # Architecture design
β βββ API.md # API reference
βββ workflows/
βββ TRAINING-SOP.md # Training workflow SOP
βββ CLEANUP-SOP.md # Cleanup workflow SOP
βββ DIAGRAMS.md # Workflow diagrams
π Quick Links
For First-Time Users
- Installation Guide - Start here
- Quick Start - 5-minute tutorial
- Basic Usage - Essential commands
For Regular Users
- Interactive Features - Storage, ranking, cleanup
- Classification Tutorial
- Regression Tutorial
For Developers
π What is Uni-Mol Tools CLI?
Uni-Mol Tools CLI is a command-line interface harness for Uni-Mol Tools that provides:
- β Project-based workflow - Organize your experiments
- β Interactive model management - Storage analysis, ranking, cleanup
- β 5 task types - Classification, regression, multiclass, multilabel
- β Automatic model tracking - Performance history and trends
- β Smart cleanup - Intelligent storage management
- β JSON API - Automation-friendly
π― Key Features
Core Features
# Project management
cli-anything-unimol-tools project new -n myproject -t classification
cli-anything-unimol-tools -p project.json project info
# Training
cli-anything-unimol-tools -p project.json train start --epochs 10
# Prediction
cli-anything-unimol-tools -p project.json predict run run_001 test.csv
Interactive Features (New!)
# Storage analysis
cli-anything-unimol-tools -p project.json storage
# Model ranking
cli-anything-unimol-tools -p project.json models rank
# Performance history
cli-anything-unimol-tools -p project.json models history
# Smart cleanup
cli-anything-unimol-tools -p project.json cleanup --auto
π Prerequisites
- Python: 3.8+
- CUDA: 11.8+ (for GPU support)
- Disk Space: ~2GB (Uni-Mol weights + dependencies)
- OS: Linux (tested on Ubuntu 20.04+)
β‘ Quick Installation
# 1. Clone Uni-Mol repository
git clone [email protected]:deepmodeling/Uni-Mol.git
cd Uni-Mol/unimol_tools
# 2. Download weights
python -m unimol_tools.weights.weighthub
# 3. Clone CLI-Anything
cd ../..
git clone [email protected]:HKUDS/CLI-Anything.git
cd CLI-Anything/unimol_tools/agent-harness
# 4. Install CLI
pip install -e .
# 5. Configure weights
export UNIMOL_WEIGHT_DIR=/path/to/Uni-Mol/unimol_tools/unimol_tools/weights
# 6. Test installation
cli-anything-unimol-tools --version
See Complete Installation Guide for detailed steps.
π Supported Task Types
| Task Type | Description | Example Use Case |
|---|---|---|
| Binary Classification | Two-class prediction | Drug activity (active/inactive) |
| Regression | Continuous value prediction | Solubility prediction |
| Multiclass Classification | Multiple exclusive classes | Toxicity levels (low/medium/high) |
| Multilabel Classification | Multiple binary labels | Multi-target drug properties |
| Multilabel Regression | Multiple continuous values | Multiple molecular properties |
π Typical Workflow
1. Create Project β 2. Set Dataset β 3. Train β 4. Evaluate β 5. Predict
See Training SOP for detailed workflow.
π‘ Example Session
# Create a new classification project
cli-anything-unimol-tools project new -n drug_discovery -t classification
# Set training data
cli-anything-unimol-tools -p drug_discovery.json \
project set-dataset train data/train.csv
# Train model (10 epochs)
cli-anything-unimol-tools -p drug_discovery.json \
train start --epochs 10 --batch-size 32
# Check performance
cli-anything-unimol-tools -p drug_discovery.json models rank
# Run predictions
cli-anything-unimol-tools -p drug_discovery.json \
predict run run_001 data/test.csv -o predictions.csv
# Analyze storage
cli-anything-unimol-tools -p drug_discovery.json storage
# Cleanup old models
cli-anything-unimol-tools -p drug_discovery.json cleanup --auto
π Getting Help
# General help
cli-anything-unimol-tools --help
# Command-specific help
cli-anything-unimol-tools project --help
cli-anything-unimol-tools train --help
cli-anything-unimol-tools cleanup --help
π Support
- Issues: See Troubleshooting Guide
- GitHub Issues: Report bugs and feature requests
- Documentation: Browse all guides in
docs/
π License
This CLI harness follows the same license as CLI-Anything and Uni-Mol Tools.
Next Steps:
- π Complete Installation Guide
- π Quick Start Tutorial
- π― Training SOP