quark-install
БесплатноБез исполняемых скриптовНе проверенInstalls or verifies AMD Quark and ensures the selected Python environment has an accelerator-matched PyTorch. Applies to "install Quark", "set up Quark"…
от amd★ 523 звезды на GitHubОб этом скилле
Quark Install
Purpose
Install or verify amd-quark without relying on another skill, a Quark checkout, or pre-generated workflow artifacts. Detect the actual hardware, ensure PyTorch matches it, choose the smallest safe Quark install, obtain approval, execute it, and verify the requested capabilities.
Prerequisites
- GPU support depends on the selected PyTorch build and Quark wheel. Record the actual runtime, host kernel and driver, and GPU architecture (
gfx...fromgcnArchNameon AMD); verify compatibility with that environment instead of assuming a fixed ROCm version or GPU target. - No container image is required. If running in a container, record its image name or digest when available and verify GPU device access.
- Inspect and preserve
QUARK_ACCELERATOR,PYTORCH_ROCM_ARCH,QUARK_BUILD_DISABLE_JIT_FALLBACK,HSA_OVERRIDE_GFX_VERSION,HIP_VISIBLE_DEVICES, andCUDA_VISIBLE_DEVICES. Include any required changes in the confirmed install plan. ReportPIP_EXTRA_INDEX_URLonly as set or unset because its value may contain credentials.
Inputs
- Python interpreter or environment to modify. Default to the active interpreter, but make its resolved path explicit.
- Requested Quark source: existing environment, PyPI, an AMD native-wheel index, a local wheel, or a local source directory. Default to the universal PyPI wheel.
- Optional version constraint.
- Compute intent: GPU by default; CPU only after explicit user confirmation.
- Required capabilities: basic Quark import, Quark PyTorch kernels, ONNX custom operators, or
quark-cli.
Do not require pre-existing environment or install-result artifacts. A user-provided wheel or source directory is an input, not a skill dependency.
Outputs
Always write quark_install_result.json in the user's working directory at a terminal outcome and validate it against references/contracts/quark_install_result.schema.json.
Preserve the compatibility fields status, quark_version, install_source, extras_installed, verification, and failure_reason. Also record the resolved interpreter, imported Quark module path, PyTorch version/backend, GPU availability, whether CPU mode was explicitly confirmed, exact executed commands, and pip check result.
- Use
status: "ok"only when installation and every requested verification pass. - Use
status: "skipped"when a suitable existing install is verified or the user declines changes. - Use
status: "failed"with the exact failing command and error for install or verification failure. - Set unrequested optional checks to
null; do not reportllm_ptq_deps: truemerely becausequark-cli --helpworks.
Installation Rules
Quark requires Python 3.11, 3.12, or 3.13 and PyTorch 2.2 or newer.
The
amd-quarkruntime wheel does not install PyTorch. Resolve and verify PyTorch before installing Quark.GPU is the default. A CUDA/ROCm build tag alone is insufficient: GPU readiness requires
torch.cuda.is_available(), a positive device count, and a successful tensor operation oncuda(PyTorch uses this device spelling for both CUDA and ROCm).If PyTorch is missing, CPU-only, backend-mismatched, or unable to access a GPU, stop and ask whether to install/fix the matching GPU build or explicitly continue in CPU mode. Never install or accept CPU mode silently.
Install a GPU PyTorch build only from an official index matching detected CUDA/ROCm support. Query available versions first, choose a Python-compatible stable release satisfying
torch>=2.2, show the exact command, and obtain approval:"<PYTHON>" -m pip index versions torch --index-url "https://download.pytorch.org/whl/<GPU_INDEX>" "<PYTHON>" -m pip install "torch==<VERSION>" --index-url "https://download.pytorch.org/whl/<GPU_INDEX>"After explicit CPU-mode confirmation, use the official CPU index instead of an unqualified PyPI install:
"<PYTHON>" -m pip install "torch==<VERSION>" --index-url "https://download.pytorch.org/whl/cpu"The universal PyPI wheel is the safe default. It supports different PyTorch backends but compiles Quark kernels/custom operators on first use and therefore may require a C++ compiler plus
nvccorhipcc:"<PYTHON>" -m pip install "amd-quark"Quark Torch import currently requires Transformers even though the base
amd-quarkwheel may not declare it. When kernel verification is requested and Transformers is absent, preview and confirm a release/model-compatible install; use"transformers<5.16"as the current upper bound unless a narrower requirement is known. Treat a missing Transformers module as a dependency failure, not a compiler failure.Native-wheel availability changes by release. Never select one from a hard-coded matrix or a bare
--extra-index-url. Use only an observed candidate whose filename/local version exactly matches the active PyTorch major.minor, CUDA
Установить quark-install в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл quark-install?
Installs or verifies AMD Quark and ensures the selected Python environment has an accelerator-matched PyTorch. Applies to "install Quark", "set up Quark", "pip install amd-quark", Quark dependency or import failures, ModuleNotFoundError for quark, and Quark kernel compiler errors. Defaults to GPU and requires explicit confirmation before CPU mode. Covers PyPI universal, exactly matched native, local-wheel, and local-source installs. Does not handle standalone PyTorch requests, ONNX Runtime-only setup, or quantization.
Как установить скилл quark-install?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл quark-install запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic