quark-torch-quant-perf
Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models.
Skill by amd
Chalk Labs
Need help deploying quark-torch-quant-perf?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/amd-quark-torch-quant-perf-39f754
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
quark-torch-quant-perf- Description
- Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models. Use whenever the user asks for mixed-precision search, Quark MXFP4/FP8/PTPC-FP8 quantization with accuracy and performance validation, vLLM throughput, TraceLens bottleneck analysis, GEAK kernel optimization, PerfOpt retries, workspace source discovery, or a natural-language request that must become a quark-quant-perf command. Not for ONNX models.
- License
- MIT
- Instructions
- 243 lines in SKILL.md · view on GitHub
Files (4)
- SKILL.md
- evals.json · evals/
- cli-mapping.md · references/
- session-lifecycle.md · references/
SKILL.md (first lines)
# Quark Torch Quant-Perf
## Purpose
Translate a user's PyTorch or HuggingFace quantization request into the current
`quark-quant-perf` CLI, run or resume its managed Orchestrator, monitor the
session to a terminal state, and report the generated artifacts. Preserve the
user's accuracy, workload, source, and explicit performance requirements
throughout.
Use the managed pipeline:
```text
input and runtime validation
→ baseline health
→ quantize or mixed-precision search
→ real quantized accuracy gate
→ [measure or optimize] baseline and quantized throughput
→ [optimize, when the target is missed] conditional TraceLens / vendor tuning /
GEAK → candidate validation and retention
→ FINAL reports
```
Performance modes skip inapplicable optional stages; they do not create
separate FINAL stages. The Orchestrator enters FINAL after the selected stages
complete or a terminal failure is recorded. The `report` subcommand may later
regenerate terminal artifacts without rerunning GPU work.
Do not replace a stage with a custom evaluation, benchmark, or proxy metric.
## Inputs
- Model path or HuggingFace model ID.
- Accuracy-gap requirement and optional performance intent.
- GPU type, GPU index, TP, ISL, OSL, and concurrency when specified.
- Fixed quantization intent, or a mixed-precision search space.
- Framework and kernel source policy: explicit, auto, or readonly.
- A discoverable Quark checkout containing `quark-torch-ptq` for fixed direct
PTQ; `QUARK_ROOT` may select one explicitly.
- Existing session directory when resuming.
- Optional TraceLens architecture JSON and backend overrides.
Only `--model` is required by the CLI. Preserve CLI defaults for omitted
options rather than inventing values.
Before constructing a command:
1. Run `quark-quant-perf --help` for the installed CLI options and defaults.
2. Read [CLI mapping](references/cli-mapping.md) for intent-to-option mapping.
3. Read [session lifecycle](references/session-lifecycle.md) before resume,
monitoring, diagnosis, or final reporting.
4. Inspect the session's `state.json` and `progress.json` when resuming or
reporting.
Treat the installed CLI help as authoritative if a local reference differs.
## Outputs: session_report.md
The managed FINAL stage produces:
```text
<session>/reports/final.json
<session>/reports/final.md
<session>/session_breakdown.json
<session>/session_report.md
```
Treat `session_breakdown.json` as the complete structured fact source and
`session_report.md` as the detailed human-readable result. A terminal failure
may still have complete reports and useful quantized artifacts.
## Interaction Flow
1. **Intake**
- Resolve local paths to absolute paths.
- Preserve the requested model, accuracy gap, performance mode, target gain,
workload, GPU, tensor parallelism, search modes, and repository policy.
- Treat explicitly named quantized precision modes as a closed set, separate
from any runtime-required `native` fallback. Do not infer compound modes
from their components. Normalize aliases one-to-one; for example, use
`mxfp4_fp8` only when the user explicitly requests that mode, W4A8, or
MXFP4 weights with FP8 activations.
- If the user does not name precision modes, omit
`--layer-precision-candidates` and preserve the GPU-specific automatic
search space.
- If the user does not request throughput or performance optimization,
leave performance at the default `off`.
- Inspect existing session state before creating a duplicate run.
2. **Route**
- Omit `--quant-strategy` for mixed-precision search.
- Use `--quant-strategy "<normalized intent>"` for one fixed PTQ recipe.
- For fixed PTQ, use the automatically discovered Quark checkout when
available. Set `QUARK_ROOT` only when discovery fails or the user selects
a specific checkout.
- When writable framework or kernel repositories are supplied, use
`--workspace-source explicit` with those repositories.
- When repositories are not supplied, use `--workspace-source auto` so
runtime repair and PerfOpt can discover or materialize writable sources.
- Use `--workspace-source readonly` only when the user explicitly requests
evaluation or inspection without source modification.
- Treat fresh or no-history execution as an experience-store policy, not a
source policy. It never implies `readonly`; keep `auto` unless the user
separately prohibits source modification.
- Before launch, if the command contains `--workspace-source readonly`,
identify the user's explicit no-source-modification request. If there is
none, remove the option and use the default `auto`.
- Apply the source policy to every run. It governs runtime activation and
eligible repair work even when performance mode is `off` or `measure`;
PerfOpt source modification remains specific to `optimize`.
3. **Plan**
- Maintain the native task plan for every multi-stage run. Use
`update_plan` in Codex and `TaskCreate` / `TaskUpdate` in Claude Code.
- Before launch, show every applicable top-level task derived from the
resolved run intent. Always include validation, baseline health,
quantization or search, the real accuracy gate, and FINAL reporting. Add
throughput for `measure` or `optimize`, and add the PerfOpt decision plus
conditional bottleneck, optimization, and retention tasks for `optimize`.From amd/Quark, MIT.
More from amd/Quark
- 0.684score
quark-skill-creator
amd
Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-llm-eval
amd
End-to-end LLM accuracy evaluation on AMD ROCm (ROCm-only) — container setup, vLLM/SGLang/ATOM serving, lm-eval / lighteval / evalscope benchmarks.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-env-preflight
amd
Collect and normalize environment facts (OS, Python, GPU, CUDA/ROCm, container state) before Quark installation or PTQ planning.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-model-intake
amd
Inspect a target model and prepare metadata for Quark PTQ planning.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-export
amd
Prepare export and downstream evaluation handoff for a planned or completed Quark PTQ run.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-install
amd
Install or verify the correct PyTorch build for a user's accelerator backend before Quark installation.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-install
amd
Install or verify the AMD Quark package and its dependencies.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-onnx-install
amd
Install or verify the correct ONNX Runtime build (and the `onnx` package) for a user's accelerator backend before Quark's ONNX-to-ONNX flow.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-onnx-model-intake
amd
Inspect a target ONNX model and prepare metadata for Quark ONNX PTQ planning.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-onnx-router
amd
Route Quark ONNX user goals to the correct atomic skill.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-debug
amd
Diagnose failed Quark installation, PTQ execution, script generation, or export attempts.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-quant-plan
amd
Build a Quark Torch LLM PTQ quantization plan from model analysis and user intent.
SkillAFreshness: A★ 186Claude Code +9
Signals
- Stars
- 186
- Forks
- 36
- Open issues
- 3
- Last commit (this folder)
- Sep 28, 2026 (1 month ago)
- Last release
- Sep 28, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/amd/Quark
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.674score
quark-torch-quant-perf
amd
Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models.
SkillAFreshness: A★ 186Claude Code +9 - 0.352score
quark-torch-quant-perf
amd
Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models.
SkillAFreshness: A★ 186Claude Code +9
More from amd
- 0.700score
quark-torch-llm-ptq
amd
Runs an end-to-end AMD Quark post-training quantization workflow for PyTorch / Hugging Face LLMs: inspect a Hub or local model, choose a quantization plan…
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
rocprofiler-pc-sampling
amd
Profiles a target application using rocprofv3 with program counter sampling enabled and then analyzes the results.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
local-ai-use
amd
Makes this agent generate images, transcribe audio, and synthesize speech on the user's own machine through a local Lemonade Server instead of a paid cloud API.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
quark-install
amd
Installs or verifies AMD Quark and ensures the selected Python environment has an accelerator-matched PyTorch.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
lemonade-router-builder
amd
Turns a natural-language description of routing intent into a valid Lemonade `collection.router` policy JSON.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
serving-llms-on-epyc
amd
Serves an LLM on a supported AMD EPYC server CPU using vLLM with zentorch, in Docker, Podman, or conda.
SkillAFreshness: A★ 465Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get quark-torch-quant-perf running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
quark-torch-quant-perf skill. Agent Mart. https://agentmart.dev/skills/amd-quark-torch-quant-perf-39f754 (last updated 2026-10-24)