Communitygithub.com

cli-anything-unimol-tools

Uni-Mol Tools를 활용한 분자 특성 예측 CLI 도구입니다. 5가지 태스크 유형(이진 분류, 회귀, 다중 클래스, 다중 레이블 분류, 다중 레이블 회귀)을 지원하며, 프로젝트 관리, 모델 추적, 스토리지 최적화 및 JSON API를 제공합니다.

cli-anything-unimol-tools란 무엇인가요?

이 스킬은 Uni-Mol Tools를 기반으로 분자 특성 예측 모델의 학습과 추론을 위한 대화형 CLI를 제공합니다. 개발자는 5가지 태스크 유형(이진 분류, 회귀, 다중 클래스, 다중 레이블 분류, 다중 레이블 회귀) 중 하나를 선택하여 SMILES 형식의 분자 데이터로 모델을 훈련할 수 있습니다. 프로젝트 관리 기능을 통해 실험을 체계적으로 정리하고, 모델 성능을 자동으로 추적하며 순위를 매길 수 있습니다. `--json` 플래그를 통해 모든 명령어를 기계 판독 가능한 JSON 형식으로 출력할 수 있어 자동화 워크플로우에 쉽게 통합됩니다. 저장소 분석 및 자동 정리 기능으로 디스크 공간을 효율적으로 관리할 수 있으며, 대화형 REPL 모드에서는 탭 완성, 명령어 히스토리, 컨텍스트 도움말을 제공하여 사용성을 높입니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-unimol-tools

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Uni-Mol Tools - 분자 특성 예측 CLI

패키지: cli-anything-unimol-tools 명령어: python3 -m cli_anything.unimol_tools

설명

Uni-Mol Tools를 사용하여 분자 특성 예측 모델을 학습 및 추론하기 위한 대화형 CLI입니다. 5가지 태스크 유형(이진 분류, 회귀, 다중 클래스, 다중 레이블 분류, 다중 레이블 회귀)을 지원합니다.

주요 기능

  • 프로젝트 관리: 명명된 프로젝트로 실험 구성
  • 5가지 태스크 유형: 분류, 회귀, 다중 클래스, 다중 레이블 변형
  • 모델 추적: 자동 성능 기록 및 순위 매기기
  • 스마트 스토리지: 사용량 분석 및 성능이 낮은 모델 정리
  • JSON API: --json 플래그로 완전한 자동화 지원

일반 명령어

프로젝트 관리

# 새 프로젝트 생성
project create --name drug_discovery

# 모든 프로젝트 목록
project list

# 프로젝트 전환
project switch --name drug_discovery

학습

# 분류 모델 학습
train --data-path train.csv --target-col active --task-type classification --epochs 10

# 회귀 모델 학습
train --data-path train.csv --target-col affinity --task-type regression --epochs 10

모델 관리

# 학습된 모든 모델 목록
models list

# 모델 세부 정보 및 성능 보기
models show --model-id <id>

# 성능 기준 모델 순위
models rank

스토리지 및 정리

# 스토리지 사용량 분석
storage analyze

# 성능이 낮은 모델 자동 정리
cleanup auto

# 수동 정리 (기준 지정)
cleanup manual --max-models 10 --min-score 0.7

예측

# 학습된 모델로 예측 수행
predict --model-id <id> --data-path test.csv

데이터 형식

CSV 파일에는 다음이 포함되어야 합니다:

  • SMILES 열: SMILES 형식의 분자 구조
  • 타겟 열: 예측할 값 (--target-col로 이름 지정)

예시:

SMILES,target
CCO,1
CCCO,0
CC(C)O,1

태스크 유형

  1. classification: 이진 분류 (0/1)
  2. regression: 연속 값 예측
  3. multiclass: 다중 클래스 분류
  4. multilabel_classification: 다중 이진 레이블
  5. multilabel_regression: 다중 연속 값

JSON 모드

모든 명령어에 --json 플래그를 추가하여 기계 판독 가능한 출력을 얻습니다:

python3 -m cli_anything.unimol_tools --json models list

출력 형식:

{
  "status": "success",
  "data": [...],
  "message": "..."
}

대화형 모드

명령어 없이 실행하면 대화형 REPL이 시작됩니다:

python3 -m cli_anything.unimol_tools

기능:

  • 탭 완성
  • 명령어 히스토리
  • 컨텍스트 도움말
  • 프로젝트 상태 유지

테스트 데이터

예제 데이터셋은 다음에서 확인할 수 있습니다: https://github.com/545487677/CLI-Anything-unimol-tools/tree/main/unimol_tools/examples

5가지 태스크 유형에 대한 데이터가 포함되어 있습니다.

요구 사항

  • Python 3.8+
  • PyTorch 1.12+
  • Uni-Mol Tools 백엔드
  • 4GB 이상 RAM (학습 시 8GB 이상 권장)

설치

cd unimol_tools/agent-harness
pip install -e .

문서

테스트

cd docs/test
bash run_tests.sh --unit -v    # 단위 테스트 (67개)
bash run_tests.sh --full -v    # 전체 테스트 스위트

성능 팁

  • 초기 실험은 10 에포크로 시작하세요
  • 메모리가 부족하면 배치 크기를 줄이세요
  • storage analyze로 스토리지를 모니터링하세요
  • models rank로 최고 성능 모델을 식별하세요
  • cleanup auto로 정기적으로 정리하세요

문제 해결

  • CUDA 오류: 배치 크기를 줄이거나 CPU 모드를 사용하세요
  • CSV 인식 안 됨: SMILES 열이 있는지 확인하세요
  • 낮은 정확도: 에포크 수를 늘리거나 학습률을 조정하세요
  • 스토리지 가득 참: cleanup auto를 실행하여 공간을 확보하세요

관련 자료

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

관련 스킬