Quark torch eval runner

From amd/Quark · View interactive version

Quark torch eval runner is an AI agent skill from the GitHub repository amd/Quark. Manually verify that the Quark Agent Skills system behaves correctly across the four contract categories (routing, planning, artifact, recovery). Use when maintainers need to confirm that routing, planning, artifact generation, or error recovery skills still work as expected. Trigger for "verify the

How to use this skill

Skill file

quark-torch-eval-runner

Purpose

Walk a maintainer through manual verification of the skill system across the four contract categories: routing, planning, artifact, and recovery. Run this after modifying any skill, after a Quark upgrade, or before tagging a release.

Inputs

Outputs: validation_report.md

A markdown report recording per-category pass/fail and concrete evidence for each finding.

Schema: CODE0

# Skill Verification Report

## Summary
| Category | Cases Run | Pass | Fail |
|----------|-----------|------|------|
| routing  | N         | N    | 0    |
| planning | N         | N    | 0    |
| artifact | N         | N    | 0    |
| recovery | N         | N    | 0    |

## Failures
### <category> / <case name>
- **Expected**: ...
- **Got**: ...
- **Impact**: ...
- **Fix**: ...

Manual Verification Protocol

For each category below, run at least one case and record the result in the report. The example prompts in examples/agent_skills/prompts/ are good starting cases; add more as the skill set grows.

1. Routing

Goal: verify that quark-torch-router (and Claude's auto-routing via descriptions in .claude/skills/) maps natural-language goals to the correct downstream skill.

Manual procedure:

  1. Pick a user-style prompt (e.g., from examples/agent_skills/prompts/torch_llm_ptq.md or a freshly invented one).
  2. In a fresh Claude Code session at the Quark repo root, paste the prompt.
  3. Observe which skill Claude invokes first.
  4. Compare against the expected target skill. Examples of expected mappings:

Pass criteria: the first skill invoked matches the expected target.

2. Planning

Goal: verify that quark-torch-quant-plan produces internally consistent plans for typical inputs.

Manual procedure:

  1. Construct (or take from a prior session) a model_analysis.json for a representative model (e.g., Qwen3-8B).
  2. Hand it to quark-torch-quant-plan with a target scheme (e.g., fp8).
  3. Inspect the produced quant_plan.json for:

Pass criteria: the plan validates against quant_plan.schema.json and contains no internal contradictions.

3. Artifact

Goal: verify that workflow output artifacts conform to their JSON schemas.

Manual procedure:

  1. Take the quant_plan.json from the planning case.
  2. Run quark-torch-llm-ptq-workflow to produce a run_manifest.yaml.
  3. Validate the manifest against .claude/skills-impl/shared/contracts/run_manifest.schema.json (use any JSON-schema validator, e.g., the jsonschema Python package, or eyeball required fields).
  4. Spot-check that:

Pass criteria: schema validation passes; required fields are present and consistent.

4. Recovery

Goal: verify that quark-torch-debug correctly diagnoses known error patterns.

Manual procedure:

  1. Pick a known error scenario. Examples:
  1. Present the error to quark-torch-debug.
  2. Verify the diagnosis:

Pass criteria: the diagnosis names the actual root cause and suggests a fix that would actually work.

Rules

Interaction Flow

  1. Select scope: which categories to verify — all four, or a subset affected by a recent change?
  2. Pick or write cases: use prompts from examples/agent_skills/prompts/ or write minimal new ones.
  3. Run each case manually following the protocol above.
  4. Record results in validation_report.md using the template.
  5. Hand off failures to quark-torch-skill-sync if they look like upstream drift, or directly to the affected skill's owner if it's a content bug.

Recovery

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.