Agent skill

Quark Install

by amd in amd/Quark

Install or verify the AMD Quark package and its dependencies.

MITAuto-check: notesAI & LLM Engineering

Install Quark Install

skills CLI
$ npx skills add amd/Quark --skill quark-install -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install amd/Quark quark-install --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills-impl/l1-atomic/shared/quark-install .claude/skills/quark-install && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
quark-install
GitHub stars
181
Token cost
~1.8k tokens
SKILL.md length
584 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
MIT

At a glance

Install or verify the AMD Quark package and its dependencies.

  • Works in 5 steps: Intake: Determine what the user already… → Plan: Present the installation plan as a… → Confirm: Required before any package… → …
  • The user needs Quark package installation
  • SKILL.md covers Purpose, Inputs, Outputs:… and Quark Package Info, plus 11 more sections
  • Calls pip, git and python; reaches pypi.amd.com

What it does

Quark Install is an agent skill from amd/Quark. Install or verify the AMD Quark package and its dependencies. Use when the user needs Quark package installation, dependency setup, or post-install verification — after PyTorch is already set up. Trigger for "install Quark", "set up Quark", "pip install amd-quark", "install the Quark package", dependency errors, import failures for quark modules, or any request to get Quark running. Also trigger when the user reports ModuleNotFoundError for quark or missing C++ compiler errors. For PyTorch installation or torch…

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Deep learning. It works with PyTorch, C++, ONNX and Python. The licence is MIT.

When your agent uses it

  • The user needs Quark package installation
  • Dependency setup
  • Post-install verification — after PyTorch is already set up
  • Pip install amd-quark

Example prompts

  • “install Quark”
  • “set up Quark”
  • “pip install amd-quark”
  • “/quark-install”

Requirements

  • Python 3
  • Docker

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Intake: Determine what the user already has installed and what they need. Check if quark-torch-install has already run and PyTorch is…
  2. Plan: Present the installation plan as a numbered sequence of commands, with version justifications.
  3. Confirm: Required before any package installation. Show: what will be installed and what environment will be modified.
  4. Execute: Run the installation commands.
  5. Verify: Run all verification commands. Report pass/fail for each.

What it can do on your machine

Read from SKILL.md and the folder at commit 313cb0b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip
    • git
    • python
    • docker
    • apt

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • pypi.amd.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Quark Install loads about 1.8k tokens when it runs. Until then it costs about 145 tokens; SKILL.md has 584 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~145
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:108
    - **Linux**: `sudo apt install build-essential` (includes g++, needed for kernel compilation)

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from amd/Quark at commit 313cb0b, republished under its MIT licence (© amd). 584 words, ~1,791 tokens.

Download SKILL.mdSave it as .claude/skills/quark-install/SKILL.md (or your agent's skills folder).
name
quark-install
description
Install or verify the AMD Quark package and its dependencies. Use when the user needs Quark package installation, dependency setup, or post-install verification — after PyTorch is already set up. Trigger for "install Quark", "set up Quark", "pip install amd-quark", "install the Quark package", dependency errors, import failures for quark modules, or any request to get Quark running. Also trigger when the user reports ModuleNotFoundError for quark or missing C++ compiler errors. For PyTorch installation or torch version issues, use quark-torch-install instead.
layer
l1-atomic
primary_artifact
quark_install_result.json
source_knowledge
docs/source/install.rst, requirements.txt, examples/torch/language_modeling/llm_ptq/requirements.txt

quark-install

Purpose

Install the AMD Quark package and its dependencies after PyTorch is already set up. This skill handles Quark-specific setup: the amd-quark package, core dependencies, optional ONNX Runtime, LLM PTQ extras, and compiler requirements. It exists separately from quark-torch-install (which handles PyTorch) and from PTQ planning because getting the environment right is a prerequisite — a missing dependency or wrong compiler will cause cryptic failures later.

Inputs

  • env_context.json for OS/Python/accelerator facts
  • pytorch_install_result.json confirming PyTorch is installed and verified

Outputs: quark_install_result.json

Records the installed Quark version, optional extras (ONNX runtime, LLM PTQ deps), and verification status.

Schema: quark_install_result.schema.json

json
{
  "status": "ok",
  "quark_version": "0.12",
  "install_source": "pypi",
  "extras_installed": {
    "onnxruntime": false,
    "llm_ptq_deps": true
  },
  "verification": {
    "import_ok": true,
    "kernel_ok": true,
    "onnx_ops_ok": null
  }
}

On failure, set status: "failed" and include a failure_reason with the exact failing verification command.

Quark Package Info

  • PyPI package: amd-quark (current version: 0.12)

  • Install from PyPI (universal wheel, recommended default): pip install amd-quark. Works on any OS/Python/accelerator regardless of PyTorch version, but compiles the fast quantization kernels and ONNX custom-op library on first import (requires a C++ compiler, plus nvcc/hipcc for GPU).

  • Install a pre-built wheel (optional, PyTorch 2.10+): ships pre-compiled C++ extensions, so no C++ compiler and no first-run compilation are needed. Hosted on the AMD package index (Python 3.11–3.13); point pip at the matching index:

    bash
    pip install amd-quark --extra-index-url https://pypi.amd.com/quark/cpu/simple     # CPU
    pip install amd-quark --extra-index-url https://pypi.amd.com/quark/cu128/simple   # CUDA 12.8
    pip install amd-quark --extra-index-url https://pypi.amd.com/quark/rocm71/simple  # ROCm 7.1, Linux only
    pip install amd-quark --extra-index-url https://pypi.amd.com/quark/rocm72/simple  # ROCm 7.2, Linux only
  • Install from source:

    bash
    git clone --recursive https://github.com/AMD/Quark
    cd Quark
    git submodule sync && git submodule update --init --recursive
    pip install .
  • Install from wheel: pip install amd_quark*.whl

Python Version Requirements

  • Supported: Python 3.11, 3.12, 3.13
  • Not supported: Python 3.14+
  • Recommended for new setups: Python 3.13 via Miniforge/Miniconda

ONNX Runtime (Optional)

  • Version constraint: >=1.22.2, <=1.24.2
  • GPU variant: pip install onnxruntime-gpu (for CUDA)
  • CPU variant: pip install onnxruntime
  • ROCm note: use the CPU variant of ONNX Runtime for ROCm 7.0+ due to build compatibility issues

LLM PTQ Additional Dependencies

For running quantize_quark.py, install these extras:

bash
pip install accelerate datasets evaluate>=0.4.0 gguf>=0.10.0 lm-eval transformers<5.3

Core Dependencies (from requirements.txt)

text
evaluate, joblib, ninja, numpy>=2.0, onnx>=1.21.0,<=1.22.0, onnxscript,
onnxslim>=0.1.84, pandas, plotly, protobuf, psutil, pydantic, rich, scipy,
sentencepiece, tqdm, zstandard

Compiler Requirements

  • Linux: sudo apt install build-essential (includes g++, needed for kernel compilation)
  • Windows: Visual Studio 2022+ with "Desktop development with C++" workload

Rules

  • Ensure PyTorch is already installed and verified. If PyTorch is missing or mismatched with the accelerator, hand off to quark-torch-install first. Do not attempt to install Quark without a working PyTorch.
  • Never skip verification. After installation, always run verification commands.
  • Show exact commands before execution. The user should see every pip install command and every version before anything runs.
Show full SKILL.md (227 more words)Show less

Verification Commands

bash
# Basic import
python -c "import quark; print('Quark version:', quark.__version__)"

# Optional: kernel compilation test
python -c "import quark.torch.kernel; print('Kernel compilation OK')"

# Optional: ONNX custom ops
python -c "import quark.onnx.operators.custom_ops; print('ONNX custom ops OK')"

Interaction Flow

  1. Intake: Determine what the user already has installed and what they need. Check if quark-torch-install has already run and PyTorch is verified.
  2. Plan: Present the installation plan as a numbered sequence of commands, with version justifications.
  3. Confirm: Required before any package installation. Show: what will be installed and what environment will be modified.
  4. Execute: Run the installation commands.
  5. Verify: Run all verification commands. Report pass/fail for each.

Recovery

  • If verification fails: Show the exact failing check and the most likely cause. Common issues:
    • ModuleNotFoundError: No module named 'quark' — Quark not installed or wrong Python environment
    • ImportError: quark.torch.kernel — Missing build-essential / C++ compiler
  • If PyTorch is missing or mismatched: Hand off to quark-torch-install with the specific issue noted. Do not attempt to fix PyTorch issues from this skill.
  • If Python version is wrong: Recommend creating a new conda environment with a supported version.

Windows-Specific Notes

  • If pip fails with long path errors: Enable Win32 long paths via Group Policy Editor (Computer Configuration > Administrative Templates > System > Filesystem > Enable Win32 long paths)
  • WSL2 with Ubuntu is recommended as an alternative for Windows users
  • ROCm is not supported on Windows — only CUDA and CPU

Docker Option

Quark provides official Dockerfiles for reproducible environments:

  • Dockerfile.cuda — NVIDIA CUDA (base image: nvidia/cuda:11.8.0-base-ubuntu22.04)
  • Dockerfile.rocm — AMD ROCm (base image: rocm/dev-ubuntu-24.04:6.4)
  • Dockerfile.cpu — CPU only (base image: ubuntu:22.04)

Build with:

bash
docker build -f tools/ci/docker/images/Dockerfile.cuda \
  --build-arg PYTHON_VERSION=3.13 \
  --build-arg PYTORCH_VERSION=2.10.0 \
  --build-arg ACCELERATOR_VERSION=cuda-12.6 \
  -t quark:cuda .

© amd, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills-impl/l1-atomic/shared/quark-install of amd/Quark.

Open the folder on GitHubat commit 313cb0b

Compare with similar skills

Quark Install next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Quark Install compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Quark Install this skillamd/Quark181—~1.8kAutomated safety check: NotesMIT
Onnxtxtonnx/onnx22k—~1.3kAutomated safety check: PassApache-2.0
Ako4allTongmingLAIC/AKO4ALL369—~4kAutomated safety check: PassMIT
Paddle Op DevPaddlePaddle/Paddle24k—~1.3kAutomated safety check: PassApache-2.0
Embedded AI Deploymentmatlab/agent-skills-playground1811 repos~3.4kAutomated safety check: PassCustom licence
Paddle Cross Ecosystem Custom OpPaddlePaddle/Paddle24k—~883Automated safety check: PassApache-2.0

Similar skills

  • Onnxtxt

    onnx/onnx

    Read or write ONNX text format ("onnxtxt"). An agent skill from onnx/onnx.

    22k GitHub stars~1.3k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Ako4all

    TongmingLAIC/AKO4ALL

    Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.

    369 GitHub stars~4k tokensUpdated 22 days ago
    AI & LLM EngineeringAuto-check passed
  • Paddle Op Dev

    PaddlePaddle/Paddle

    PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…

    24k GitHub stars~1.3k tokensUpdated 7 days ago
    AI & LLM EngineeringAuto-check passed
  • Embedded AI Deployment

    matlab/agent-skills-playground

    Deploy AI models to embedded hardware using MathWorks tools (MATLAB, Simulink, Embedded Coder).

    181 GitHub starsUsed in 1 repo~3.4k tokens
    AI & LLM EngineeringAuto-check passed
  • 将原生 PyTorch 自定义算子库、Torch extension、生态库(TorchCodec/FlashInfer/DeepEP 等)以及 Kernel DSL 生态(Triton/TileLang/TVM FFI 等)以最小修改方式接入 PaddlePaddle。遇到以下场景务必使用:迁移外部算子库到 Paddle;分析 PFCCLab fork 与上游的兼容差异;处理…

    24k GitHub stars~883 tokensUpdated 7 days ago
    AI & LLM EngineeringAuto-check passed
  • Official

    Guides technology selection and implementation of AI and ML features in .NET 8+ applications using ML.NET, Microsoft.Extensions.AI (MEAI), Microsoft Agent Framework (MAF), GitHub Copilot SDK, ONNX…

    5.6k GitHub starsUsed in 2 repos~2.1k tokens
    AI & LLM EngineeringAuto-check passed

More from amd/Quark

All 37 skills in this repo
  • Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules.

    181 GitHub stars~3.1k tokensUpdated 9 days ago
    Auto-check passed
  • Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models.

    181 GitHub stars~3k tokensUpdated 9 days ago
    Auto-check passed
  • Author a new ShapeShifter graph-transformation pass for AMD Quark (ONNX or PyTorch) so it conforms to the pass framework's conventions and auto-registers.

    181 GitHub stars~2.9k tokensUpdated 9 days ago
    Auto-check passed
  • Collect and normalize environment facts (OS, Python, GPU, CUDA/ROCm, container state) before Quark installation or PTQ planning.

    181 GitHub stars~1.4k tokensUpdated 9 days ago
    Auto-check passed
  • L3 recipe that runs quark.onnx.AutoSearchPro end-to-end on a user .onnx model: intake → preset selection (or custom search space) → calibration / eval data reader → standalone autosearch script…

    181 GitHub stars~3.4k tokensUpdated 9 days ago
    Auto-check passed
  • Diagnose failed Quark ONNX installation, calibration, quantization, custom-op compilation, or export attempts.

    181 GitHub stars~4.8k tokensUpdated 9 days ago
    Auto-check passed

Questions about Quark Install

What does Quark Install do?

Install or verify the AMD Quark package and its dependencies. Quark Install is an agent skill from amd/Quark. Install or verify the AMD Quark package and its dependencies.

When should I use Quark Install?

Quark Install fits situations like: the user needs Quark package installation; dependency setup; post-install verification — after PyTorch is already set up; pip install amd-quark.

How do I install Quark Install in Claude Code?

Run `npx skills add amd/Quark --skill quark-install -a claude-code`. Or copy the skill folder (.claude/skills-impl/l1-atomic/shared/quark-install in amd/Quark) into .claude/skills/quark-install in your project. Claude Code loads it when a task matches its description.

How do I install Quark Install in Codex?

Run `npx skills add amd/Quark --skill quark-install -a codex`. Or copy the skill folder (.claude/skills-impl/l1-atomic/shared/quark-install in amd/Quark) into .agents/skills/quark-install in your project. Codex loads it when a task matches its description.

Can I use Quark Install in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add amd/Quark --skill quark-install -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quark-install, .gemini/skills/quark-install, .github/skills/quark-install and .opencode/skills/quark-install in your project.

What does Quark Install need to run?

Going by SKILL.md and its folder, Quark Install needs the command-line tools its instructions call (pip, git, python, docker and apt). Our summary lists: Python 3; Docker.

Does Quark Install access the network?

SKILL.md names 1 domain. In commands or code: pypi.amd.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Quark Install safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Quark Install use?

Quark Install is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Quark Install use?

About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Quark Install?

Skills that share tags, products or a category with Quark Install: Onnxtxt (onnx/onnx, 22k stars), Ako4all (TongmingLAIC/AKO4ALL, 369 stars), Paddle Op Dev (PaddlePaddle/Paddle, 24k stars) and Embedded AI Deployment (matlab/agent-skills-playground, 181 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Quark Install?

amd (a GitHub organization) maintains it in amd/Quark, which has 181 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on September 28, 2026.

Source: amd/Quark on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.