Harmonia
by @ahmed-eladl
Check PyTorch, Transformers, and CUDA compatibility. Detect GPU, driver mismatches, and version conflicts in ML environments. Use when the user sets up ML/AI...
clawhub install harmoniaπ About This Skill
name: harmonia description: Check PyTorch, Transformers, and CUDA compatibility. Detect GPU, driver mismatches, and version conflicts in ML environments. Use when the user sets up ML/AI tools, installs torch or transformers, hits dependency errors, or asks about compatible versions. version: 1.0.0 author: ahmed-eladl tags: ["ml", "pytorch", "cuda", "gpu", "transformers", "compatibility", "python", "diagnostics"] metadata: openclaw: emoji: "π΅" homepage: https://github.com/ahmed-eladl/harmonia requires: bins: - pip - python3 install: - id: pip kind: uv package: harmonia-ml bins: [harmonia] label: "Install harmonia (pip install harmonia-ml)"
Harmonia β ML Dependency Harmony
Harmonia detects GPU, CUDA, driver, OS, Python, and installed ML packages β then reports exactly what's compatible with what. Zero dependencies, works offline.
When To Use This Skill
Instructions
Step 1: Install harmonia (if not already installed)
pip install harmonia-ml
Step 2: Choose the right command based on the user's need
Full environment scan β use when diagnosing issues:
harmonia check
This scans OS, Python, GPU, CUDA driver chain, torch, transformers, and known conflicts all at once.Deep system diagnostics β use when the user asks specifically about GPU, CUDA, or driver:
harmonia doctor
Shows GPU model, VRAM, driver version, CUDA (nvidia-smi vs nvcc vs torch), glibc, virtualenv status.Suggest compatible versions β use when the user wants to know what works together:
# What works with a specific torch version?
harmonia suggest torch==2.5.1What works with a specific transformers version?
harmonia suggest transformers==4.44.2Best stack for specific Python + CUDA?
harmonia suggest transformers --python 3.11 --cuda 12.1
Show compatibility matrix β use when the user wants to see all options:
harmonia matrix pytorch
harmonia matrix transformers
List known conflicts β use when the user hit a specific error:
harmonia conflicts
Shows known bug patterns with exact error messages and fixes.JSON output β use for programmatic processing:
harmonia check --json
Step 3: Interpret the output for the user
β are errors that must be fixedβ οΈ are warnings worth notingβ
mean everything is fineπ¦ Recommended compatible set section gives the exact versions to installInstall command at the bottom can be copied and run directlyStep 4: Help the user fix issues
When harmonia reports errors, help the user fix them by running the suggested commands. Common fixes:
pip install torchaudio==2.5.1 (use the version harmonia suggests)pip install torch>=2.4.0python -m venv .venv && source .venv/bin/activateRules
harmonia check FIRST when a user reports any ML dependency issue β do not guesspip install harmonia-ml before running commands