Serves AI models on AMD Instinct GPUs (MI300X, MI325X, MI350X, MI355X) using vLLM. Handles GPU detection, environment validation, vLLM configuration, launch, and health verification.
Ships in amd-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Get a vLLM endpoint running on AMD Instinct GPU hardware. scripts/plan.py
does all the lookups (GPU, recipe, precision, fit, flags, environment); your
job is to run it, relay what it says, and then launch and verify.
amd-smi, and Docker on the GPU host; /dev/kfd and /dev/dri present.ssh <user>@<host> works with no password prompt).HF_TOKEN set on the GPU host, for an
account that accepted the model's license on huggingface.co.python3 scripts/plan.py --model <HF_ID> [--host user@hostname]
Run it from this skill's directory. Omit --model to get the default,
Qwen/Qwen3.5-9B. Add --gpus 0,1 or --tp N only if the user asked for
specific GPUs or tensor parallelism, --port N for a port other than 8000, and
--image <tag> only if the user insists on an image.
Do not write the docker run command yourself: plan.py reads the recipe,
GPU overrides, and blocklist data and builds it. Its JSON has a status:
refuse: the model can't be served here (not an LLM, needs vLLM
nightly, NVIDIA-only FP4, or the id doesn't exist). Tell the user the
reason and the suggestion. Do not launch anything.does_not_fit: not enough VRAM even when quantized. Tell the user the
reason, show what was tried, and give the suggestion. Do not launch.error: plan.py couldn't finish (GPU detection failed, or Hugging
Face was unreachable or rate-limited). Tell the user the reason and
suggestion; retry once after a minute if it was a rate limit. Do not
write a command yourself.ok: continue to Step 2. command is the exact command;
run_command is the same command wrapped to run on --host.Always pass every entry in warnings on to the user. They cover things like
a substituted quantized checkpoint, a capped context length, a gated model, an
image that is too old, or GPUs the user asked for that don't exist.
Show a short summary from the JSON and wait for the user's go-ahead (skip the wait only if the user already approved launching):
model_id) and precision (precision), and why if it differs from
what was askedgpu), tensor parallel (tp), max context (max_model_len), port (port)command, in a code blockrun_command exactly as printed (it already includes ssh for a
remote host). If a container with the same name exists from an earlier
attempt, remove it first with docker rm -f <container_name>. Never stop
or remove containers you didn't create.ssh):
while docker inspect --format='{{.State.Running}}' <container_name> 2>/dev/null | grep -q true; do
curl -sf http://localhost:<port>/health && echo READY && break
sleep 30
done
For models under 100 GB this takes 2-5 minutes; use a 10-minute timeout.
For larger models run the loop in the background and check back.
If the container exits, read docker logs <container_name> 2>&1 | tail -50
and see Troubleshooting.curl -s http://localhost:<port>/v1/chat/completions -H "Content-Type: application/json" \
-d '{"model":"<model_id>","messages":[{"role":"user","content":"say hi"}],"max_tokens":5}'
http://<host>:<port>/v1,
API key (none), tensor parallel, max context, GPU, and a ready-to-run
curl example with those values.--enforce-eager to the vLLM args
and relaunch.VLLM_ROCM_USE_AITER_FP4BMM must be 0
on gfx942; plan.py sets it.CUDA_VISIBLE_DEVICES or HIP_VISIBLE_DEVICES set to
an empty string hides every GPU. Unset it; never pass it empty to Docker./dev/kfd permission denied: sudo usermod -aG video,render $USER, then
log in again.python3 scripts/validate.py --auto-fix [--host user@hostname].Precision support, Docker flags, known quirks, and the manual planning
procedure (if plan.py itself fails): reference.md
data/blocklist.json (opens in a new tab)data/gpu_overrides.json (opens in a new tab)data/recipes_cache.json (opens in a new tab)evals/evals.json (opens in a new tab)evals/hooks.py (opens in a new tab)evals/machine.yml (opens in a new tab)reference.md (opens in a new tab)scripts/detect.py (opens in a new tab)scripts/estimate_vram.py (opens in a new tab)scripts/plan.py (opens in a new tab)scripts/sync_recipes.py (opens in a new tab)scripts/validate.py (opens in a new tab)skill-card.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/amd-skills:serving-llms-on-instinctfrom amd-skills
npx claudepluginhub amd/skills --plugin amd-skills5 skills in this plugin
/hyperloom-workload-optimizerAutonomously optimizes end-to-end LLM inference throughput on AMD Instinct GPUs and reports a validated gain, using the Hyperloom multi-agent optimizer. Given a model, framework, workload (TP/EP, concurrency, ISL/OSL, precision), an objective and a time budget, it explores per-workload which levers to pull (serving/config parameters and env, framework enablement and source patches, and hot GPU-kernel rewrites), benchmarks each candidate, and returns the optimization stack that produced the gain. Use when the user wants to make a model serve faster, raise tokens/sec or throughput, optimize or tune vLLM or SGLang on MI300X/MI325X/MI355X, run Hyperloom, run the kernel-agent, quantize-then-optimize with Quark, set up Hyperloom from scratch, or resume a Hyperloom session. Do not use to stand up a server for plain serving, diagnose a broken ROCm install, or run a one-off kernel/benchmark or trace analysis without the optimization loop./local-ai-app-integrationIntegrates local AI capabilities into applications using Embeddable Lemonade. Use when the user wants to add local AI, offline AI, private AI, on-device AI, a local LLM, local chat, embeddings, image generation, speech-to-text, or text-to-speech to an existing app; replace or supplement OpenAI, Anthropic, Ollama, or other cloud AI APIs with a local backend; only use to convert user apps. Do not use when the user just wants the agent itself to generate images, transcribe, or speak locally in the current workspace, even to cut their own API bill./local-ai-useMakes 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. Use it above all to change that routing persistently, from now on — keep generating pictures locally while chat stays on the cloud; set this workspace up to make images on my own machine — even when the user asks for no image or file in the same breath. Also use it for a single request the user wants done locally, offline, on-device, or kept private: transcribe this recording, make this picture, read this text aloud. Applies in Claude, Cursor, Codex, or any agent harness. Use when the user wants to cut cost or tokens on image, audio, or voice API calls, or to drop DALL-E, hosted Whisper, ElevenLabs, or other paid multimodal APIs; or mentions Lemonade Server, OmniRouter, SD-Turbo, kokoro, Ryzen AI, or NPU/iGPU/dGPU inference. Changes no application source code; do not use it if the user is adding local AI to an app they ship./tracelens-analysis-orchestratorOrchestrates modular PyTorch profiler trace analysis with TraceLens: generates perf reports, prepares category data, runs system-level and compute-kernel subagents in parallel, validates outputs, and writes a prioritized stakeholder report (analysis.md). Use when the user asks to follow the analysis orchestrator, run the agentic analysis workflow, run it from config <run.yaml>, analyze a trace, compare two traces, or mentions standalone or comparative TraceLens analysis.Other plugins' skills for the same job