Cli Anything Unimol Tools

HKUDS/CLI-Anything/skills/cli-anything-unimol-tools

作者 HKUDS34f519533bc175d2fe287ab8316b0dd99bb9cc43無授權條款70K 個星標收錄於 2026年12月3日更新於 2026年12月3日儲存庫2 週前更新

Interactive CLI for Uni-Mol molecular property prediction training and inference workflows.

AI 產生的概覽

用於互動式 CLI 的說明,可訓練並執行 Uni-Mol 分子性質預測模型,支援五種任務類型。

功能
此技能介紹一個以 Uni-Mol Tools 為基礎的互動式命令列介面,用於訓練與推論分子性質預測模型。內容涵蓋五種任務類型(二元分類、迴歸、多類別分類、多標籤分類與多標籤迴歸)、專案組織、模型清單、排名與效能歷程、儲存空間分析與清理,以及對新 CSV 資料進行預測。命令支援 JSON 旗標以輸出機器可讀結果,互動式 REPL 模式提供 Tab 補全、歷史紀錄與情境說明。
適用情境
當你需要透過命令列訓練、評估、管理或使用 Uni-Mol 分子性質模型進行預測時使用。適用於化學資訊學或藥物開發實驗,其 CSV 檔案包含 SMILES 欄位與目標值。
執行需求
需要 Python 3.8+、PyTorch 1.12+、Uni-Mol Tools 後端,以及至少 4GB 記憶體(訓練建議 8GB 以上)。需在 agent-harness 目錄下以 pip 安裝此套件。此技能不附帶指令碼,僅為說明文件。

AI 概覽如何產生和驗證

Uni-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 --json flag

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:

  • SMILES column: 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

  1. classification: Binary classification (0/1)
  2. regression: Continuous value prediction
  3. multiclass: Multiple class classification
  4. multilabel_classification: Multiple binary labels
  5. 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 rank to 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 auto to free space

Related

來源與署名

來源:HKUDS/CLI-Anything位於skills/cli-anything-unimol-tools提交34f5195

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

在 README 中新增徽章

向讀者展示該技能已收錄於 SourceWeft,徽章連結到本頁。

「Listed on SourceWeft」徽章預覽
[![Listed on SourceWeft](https://sourceweft.com/badge/skills/gh-hkuds-cli-anything-cli-anything-unimol-tools-skills-cli-anything-unimol-tools-d209683c645e4dbb.svg)](https://sourceweft.com/skills/gh-hkuds-cli-anything-cli-anything-unimol-tools-skills-cli-anything-unimol-tools-d209683c645e4dbb?utm_source=readme&utm_medium=badge)

檢舉或申請下架