Skip to content
Agentmart
Submit a tool
This entry duplicates quark-torch-quant-perf, which is the one we list in search.

quark-torch-quant-perf

Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models.

Skill by amd

IndexedMIT★ 186
Write a review

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.

Book a call

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.

We use your email only for this newsletter. Privacy

About

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.

Use cases: documents, ml

No 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

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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from amd

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.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying quark-torch-quant-perf?

CallGet help
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)