magpie-kernel-evaluator
БесплатноБез исполняемых скриптовНе проверенBenchmarks LLM inference and drives GPU kernel optimization with Magpie. Use when the user wants to benchmark vLLM, SGLang, or Atom; capture torch traces…
от amd★ 523 звезды на GitHubОб этом скилле
Magpie
Use Magpie for three connected jobs:
- Benchmark an inference workload and collect throughput, latency, and traces.
- Analyze or compare GPU kernels for correctness and performance.
- Drive an optimization loop from a benchmark bottleneck to source, candidate kernels, and end-to-end validation.
Describe only capabilities supported by the checked-out Magpie version. Do not infer support for an unverified ROCm, GPU, framework, or experimental integration.
Choose the workflow
| User goal | Workflow |
|---|---|
| Evaluate one implementation | analyze |
| Rank two or more implementations | compare |
| Measure model-serving performance | benchmark |
| Find expensive kernels in existing traces | standalone gap analysis |
| Explain a profiled inference workload | benchmark → TraceLens post-processing → stage/roofline review |
| Optimize an end-to-end workload | benchmark → TraceLens/gap analysis → source mapping → analyze/compare → re-benchmark |
Use a YAML config for reproducible or multi-step work. Use inline CLI arguments for small exploratory runs.
Preflight
Installing this skill does not install the Magpie application (magpie-eval). For a preparation-only request, read the supplied fixtures and reference.md, write the requested plan or configuration, and identify commands that remain unverified. Do not install packages or execute a workload when the user forbids it; a missing Magpie installation does not prevent preparing a plan.
Before executing a Magpie workload:
Check
magpie --helpin the intended Python environment (Python 3.10+). If the command is missing, trypython -m Magpie --helpin that same environment; a working module entry point can be used instead of the CLI.No module named Magpiemeans the application is not installed in that environment. For errors inside an installed Magpie package, diagnose the reported import or dependency failure instead.If Magpie is not installed, install it in the intended environment before continuing:
python -m pip install git+https://github.com/AMD-AGI/Magpie.gitFor an existing Magpie source checkout, use
python -m pip install -e /path/to/Magpieinstead. The installed skill folder and a testcase workspace are not Magpie source checkouts. Re-runmagpie --helporpython -m Magpie --helpto verify the installation; if it fails, report the error before attempting a workload.Inspect the installed interface for the selected workflow (substitute
python -m Magpieif using the module entry point):magpie --help magpie analyze --help magpie compare --help magpie benchmark --help magpie --gpu-infoCheck required tools, model access, GPU visibility, writable output space, and container or Ray access as applicable. Installing the Python package does not install ROCm/CUDA, profilers, or model weights.
Read the repository compatibility matrix before making version claims. Treat ROCm or hardware not listed there as unverified until tested.
Record the exact config, model revision, image, environment variables, GPU allocation, and Magpie commit for benchmark comparisons.
Analyze a kernel
Prefer a config when correctness or profiler settings matter:
magpie analyze --kernel-config path/to/kernel.yaml
For a quick single-kernel run:
magpie analyze path/to/kernel.hip --type hip --testcase "./run_test.sh"
Supported public kernel types are hip, cuda, pytorch, and triton. Use --no-perf only when the user wants correctness or execution validation without profiling.
Do not equate successful execution with numerical correctness. Supply a representative testcase whenever an optimized result will be accepted or rejected.
Compare kernel variants
Compare at least two implementations and identify the baseline explicitly:
magpie compare --kernel-config path/to/compare.yaml
Keep inputs, tolerances, warmup, iteration count, GPU allocation, and profiler settings identical across candidates. Reject candidates that fail correctness before considering performance rankings.
For PyTorch without a testcase, Magpie's built-in check only verifies that each result is finite; it does not prove numerical equivalence between variants. Require a testcase for numerical validation.
Benchmark inference
Prefer a checked-in benchmark config:
magpie benchmark --benchmark-config path/to/benchmark.yaml
The stable public CLI supports vllm, sglang, and atom. It supports direct docker and local run modes; use YAML configuration and the repository's Ray examples for distributed execution. Do not advertise integrations that exist only in internal enums or partial code paths as stable.
Enable profiling deliberately: profiler runs perturb latency and should not replace a clean baseline. Compare throughput, completed requests, TTFT, TPOT, ITL, and end-to-end latency using equivalent workloads.
Установить magpie-kernel-evaluator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл magpie-kernel-evaluator?
Benchmarks LLM inference and drives GPU kernel optimization with Magpie. Use when the user wants to benchmark vLLM, SGLang, or Atom; capture torch traces; post-process inference traces with TraceLens into prefill/decode and roofline reports; identify top bottleneck kernels or map profiler names to source; analyze or compare HIP, CUDA, PyTorch, or Triton kernels; validate and rank optimized variants; run local, container, or Ray workloads; or mentions Magpie, TraceLens, gap analysis, TTFT, TPOT, kernel evaluation, or AMD GPU optimization.
Как установить скилл magpie-kernel-evaluator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл magpie-kernel-evaluator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic