AMD's official meta-skill: permanently reroutes an agent's image generation, text-to-speech and speech-to-text to a local Lemonade Server instead of a paid cloud API.
Magpie Kernel EvaluatorSkill
Summary
AMD's official skill for benchmarking vLLM/SGLang inference and driving GPU kernel optimization with Magpie and TraceLens trace analysis.
Features
- Benchmarks vLLM, SGLang and Atom workloads and captures torch traces
- Post-processes traces with TraceLens into prefill/decode and roofline reports
- Analyzes a single kernel or ranks several variants across HIP, CUDA, PyTorch and Triton
- Maps expensive profiler symbols back to source, then re-benchmarks to validate the fix
- Preflights the installed Magpie interface and refuses to claim unverified ROCm or GPU support
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
An official, AMD-authored agent skill that wraps Magpie, AMD's GPU kernel and inference benchmarking toolkit, so an agent can go from "this workload is slow" to a ranked list of candidate kernels with numbers behind them.
The three jobs it covers
- Benchmark an inference workload — vLLM, SGLang or Atom — and collect throughput, latency and PyTorch profiler traces.
- Analyze or compare GPU kernels for correctness and performance: HIP, CUDA, PyTorch or Triton, evaluating one implementation (
analyze) or ranking several (compare). - Drive the optimization loop: benchmark, post-process the trace with TraceLens into prefill/decode and roofline reports, map the expensive profiler symbols back to source, produce and rank candidate kernels, then re-benchmark end to end to confirm the gain is real.
Why it is more careful than a wrapper
The skill starts with a preflight that reads the local interface — magpie --help, the sub-command helps, magpie --gpu-info — before constructing any command, and it instructs the agent to read the repository's compatibility matrix and treat any ROCm version, GPU or framework not listed there as unverified. In other words it is written to stop the agent claiming support for a configuration it has not checked, which is the usual way benchmark advice goes wrong.
It steers YAML configs toward reproducible or multi-step work and inline CLI arguments toward quick exploration, supports local, container and Ray workloads, and can run standalone gap analysis over traces you already have. TTFT and TPOT are first-class in its vocabulary.
Part of AMD Skills, AMD's MIT-licensed catalog of agent skills, built to the Agent Skills standard.
Related Skills
CodeQL, Semgrep and SARIF static-analysis toolkit from Trail of Bits: taint tracking, fast pattern scans and merged, deduplicated security findings for coding agents.
Microsoft's official Playwright skill — drives a real browser from the command line using accessibility snapshots and element refs, and plans, generates and heals Playwright tests.
Google's official agent skill for writing production Maps Platform code — grounded in freshly fetched docs, with a demo key path that needs no billing account.