
Uni-Mol Tools
FreeInteractive CLI for molecular property prediction workflows.
Free · Opens the source repo
What Uni-Mol Tools does
Uni-Mol Tools provides an interactive command-line interface (CLI) specifically designed for training and inference of molecular property prediction models. This tool is particularly useful for researchers and developers working in cheminformatics and machine learning, allowing them to efficiently manage their molecular modeling tasks. With support for five distinct task types—binary classification, regression, multiclass, multilabel classification, and multilabel regression—users can tailor their workflows to the specific needs of their projects.
The CLI facilitates project management by enabling users to create, list, and switch between named projects, making it easier to organize experiments. Users can train models with simple commands, specifying data paths and task types, while also having the ability to track model performance automatically. This feature helps in identifying the best-performing models and managing them effectively through commands that allow for listing, showing details, and ranking based on performance.
In addition to model management, Uni-Mol Tools includes smart storage capabilities, allowing users to analyze storage usage and perform automatic cleanup of underperforming models. This ensures that users can maintain an efficient workspace without clutter from models that do not meet performance criteria. Furthermore, the tool supports full automation through a JSON API mode, which can be activated with the --json flag, providing machine-readable outputs for integration with other systems.
Uni-Mol Tools is ideal for scientists and developers looking to streamline their molecular property prediction tasks and improve their model management practices. With its user-friendly CLI and comprehensive features, it simplifies the complexities involved in molecular modeling workflows, making it an essential tool for anyone in the field.
When to use it
Use Uni-Mol Tools when you need to train and evaluate molecular property prediction models efficiently via the command line.
When not to use it
This tool may not be suitable for users who prefer graphical interfaces or need extensive customization beyond the provided commands.
What you can build with it
Drug Discovery Projects
Utilize Uni-Mol Tools to create and manage drug discovery projects, training models to predict molecular activity.
Model Performance Tracking
Leverage the automatic ranking and performance tracking features to identify and retain the best-performing models.
Automated Cleanup of Models
Use the cleanup features to automatically remove underperforming models, keeping your workspace organized.
How to install Uni-Mol Tools
View source1. Install with the skills CLI
npx skills add hkuds/cli-anything/unimol_tools --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by hkudsUni-Mol Tools - Molecular Property Prediction CLI
Package: cli-anything-unimol-tools
Command: python3 -m cli_anything.unimol_tools
Description
Interactive CLI for training and inference of molecular property prediction models using Uni-Mol Tools. Supports 5 task types: binary classification, regression, multiclass, multilabel classification, and multilabel regression.
Key Features
- Project Management: Organize experiments with named projects
- 5 Task Types: Classification, regression, multiclass, multilabel variants
- Model Tracking: Automatic performance history and rankings
- Smart Storage: Analyze usage and clean up underperformers
- JSON API: Full automation support with
--jsonflag
Common Commands
Project Management
# Create a new project
project create --name drug_discovery
# List all projects
project list
# Switch to a project
project switch --name drug_discovery
Training
# Train a classification model
train --data-path train.csv --target-col active --task-type classification --epochs 10
# Train a regression model
train --data-path train.csv --target-col affinity --task-type regression --epochs 10
Model Management
# List all trained models
models list
# Show model details and performance
models show --model-id <id>
# Rank models by performance
models rank
Storage & Cleanup
# Analyze storage usage
storage analyze
# Automatic cleanup of poor performers
cleanup auto
# Manual cleanup with criteria
cleanup manual --max-models 10 --min-score 0.7
Prediction
# Make predictions with a trained model
predict --model-id <id> --data-path test.csv
Data Format
CSV files must contain:
SMILEScolumn: Molecular structures in SMILES format- Target column(s): Values to predict (name specified via
--target-col)
Example:
SMILES,target
CCO,1
CCCO,0
CC(C)O,1
Task Types
- classification: Binary classification (0/1)
- regression: Continuous value prediction
- multiclass: Multiple class classification
- multilabel_classification: Multiple binary labels
- multilabel_regression: Multiple continuous values
JSON Mode
Add --json flag to any command for machine-readable output:
python3 -m cli_anything.unimol_tools --json models list
Output format:
{
"status": "success",
"data": [...],
"message": "..."
}
Interactive Mode
Launch without commands for interactive REPL:
python3 -m cli_anything.unimol_tools
Features:
- Tab completion
- Command history
- Contextual help
- Project state persistence
Test Data
Example datasets available at: https://github.com/545487677/CLI-Anything-unimol-tools/tree/main/unimol_tools/examples
Includes data for all 5 task types.
Requirements
- Python 3.8+
- PyTorch 1.12+
- Uni-Mol Tools backend
- 4GB+ RAM (8GB+ recommended for training)
Installation
cd unimol_tools/agent-harness
pip install -e .
Documentation
- SOP: UNIMOL_TOOLS.md
- Quick Start: docs/guides/02-QUICK-START.md
- Full Documentation: docs/README.md
Testing
cd docs/test
bash run_tests.sh --unit -v # Unit tests (67 tests)
bash run_tests.sh --full -v # Full test suite
Performance Tips
- Start with 10 epochs for initial experiments
- Use smaller batch sizes if memory is limited
- Monitor storage with
storage analyze - Use
models rankto identify best performers - Clean up regularly with
cleanup auto
Troubleshooting
- CUDA errors: Reduce batch size or use CPU mode
- CSV not recognized: Verify SMILES column exists
- Low accuracy: Try more epochs or adjust learning rate
- Storage full: Run
cleanup autoto free space
Related
- Uni-Mol Tools: https://github.com/dptech-corp/Uni-Mol/tree/main/unimol_tools
- Uni-Mol Paper: https://arxiv.org/abs/2209.11126
- CLI-Anything: https://github.com/HKUDS/CLI-Anything
Frequently asked questions about Uni-Mol Tools
Similar skills
Spring Boot Testing
Master testing techniques for Spring Boot 4 applications.
GitHub Issues
Manage GitHub issues efficiently with MCP tools.
Geofeed Tuner
Optimize your IP geolocation feeds in CSV format.
Batch Files
Master Windows batch scripting for automation and task management.
Adobe Illustrator Scripting
Automate your Illustrator workflows with ExtendScript.
Plugin Structure
Create and organize Claude Code plugins effectively.
