Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python
6.0 KB
Raw Blame

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

  1. Installation Guide - Start here
  2. Quick Start - 5-minute tutorial
  3. Basic Usage - Essential commands

For Regular Users

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: