← 返回
未分类 中文

Harmonia

Check PyTorch, Transformers, and CUDA compatibility. Detect GPU, driver mismatches, and version conflicts in ML environments. Use when the user sets up ML/AI...
检查 PyTorch、Transformers 与 CUDA 兼容性,检测 GPU、驱动不匹配及 ML 环境中的版本冲突,适用于 ML/AI 环境配置。
ahmed-eladl ahmed-eladl 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 292
下载
💾 0
安装
1
版本
#latest

概述

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

  • User asks to set up a PyTorch or ML environment
  • User hits a dependency error with torch, transformers, torchaudio, torchvision, accelerate, or CUDA
  • User asks "what version of X works with Y" for ML packages
  • User asks to check their GPU, CUDA, or driver setup
  • User says something like "my torch is broken", "CUDA error", "version mismatch", "which torch for my Python"
  • User is installing local models via Ollama or setting up training

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.1

# What works with a specific transformers version?
harmonia suggest transformers==4.44.2

# Best 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

  • Lines starting with are errors that must be fixed
  • Lines starting with ⚠️ are warnings worth noting
  • Lines starting with mean everything is fine
  • The 📦 Recommended compatible set section gives the exact versions to install
  • The Install command at the bottom can be copied and run directly

Step 4: Help the user fix issues

When harmonia reports errors, help the user fix them by running the suggested commands. Common fixes:

  • Wrong companion version: pip install torchaudio==2.5.1 (use the version harmonia suggests)
  • CUDA mismatch: Install torch with the correct CUDA index URL from the recommendation
  • torch too old for transformers: pip install torch>=2.4.0
  • No virtualenv: python -m venv .venv && source .venv/bin/activate

Rules

  • Always run harmonia check FIRST when a user reports any ML dependency issue — do not guess
  • Always show the full output to the user — do not summarize away important details
  • If harmonia is not installed, install it with pip install harmonia-ml before running commands
  • Do NOT try to manually diagnose version compatibility — let harmonia do it
  • When harmonia suggests a fix, offer to run the fix command for the user
  • If the user asks about versions not in harmonia's database, say so and suggest checking the official docs

Constraints

  • This skill only checks compatibility — it does not install or modify packages unless the user asks
  • harmonia works offline with a local database — it does not make API calls
  • The database covers PyTorch 2.0–2.5 and Transformers 4.24–5.x — very old versions may not be covered

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 20:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,910
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 814,839
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 321,018