serving-llms-on-epyc
БесплатноЗапускает вложенные скриптыНе проверенServes an LLM on a supported AMD EPYC server CPU using vLLM with zentorch, in Docker, Podman, or conda. Use for "vLLM on CPU", "zentorch serving", or an EPYC…
от amd★ 523 звезды на GitHubОб этом скилле
Serving LLMs on AMD EPYC™ (vLLM + zentorch, CPU)
Bring up a single vLLM OpenAI endpoint on an AMD EPYC™ host with the zentorch CPU backend, sized to the hardware. Container-first (Docker or Podman); conda/host is the fallback. An installed AMD Instinct GPU does not disqualify the host: select this skill when the endpoint itself should run on the EPYC CPU.
This is single-socket serving: one instance pinned to one socket and its memory (vLLM scales poorly across sockets, so we do not span them). On a dual-socket host it runs on a single socket; the multi-socket answer is multiple instances (one per socket), which is out of scope for this single-instance recipe.
Hard rule for this skill: on any failure, report the cause + logs and STOP. Do not retry, do not debug. (Debugging is a separate workflow.)
The agent does the serve flow itself -- pull, configure, launch, poll --
using the runtime validate.py reports. Never hand the user per-serve commands.
Like serving-llms-on-instinct, an accessible container runtime is a one-time
prerequisite: if validate.py finds none, report its one-time fix (make
docker accessible / install podman / provide a conda env) and stop. Do not
attempt sudo or privilege escalation.
Data file
Read data/epyc.json directly. It holds the container image, mandatory CPU run
flags, supported precision, the model-support policy, the default model, and the
verified throughput-flag gotcha. Its vllm_version and image tag are one
validated default stack; keep them aligned and do not hardcode either from memory.
Step 1: Detect the CPU
python3 scripts/detect.py # add --host user@box for a remote host
Returns cpu_model, is_amd_epyc, epyc_generation
(Naples/Rome/Milan/Genoa/Bergamo/Siena/Turin/Venice or EPYC 4004/4005),
zen_arch, is_supported_epyc, avx512, logical_cores, physical_cores,
sockets, numa_nodes, memory_gb.
Route from detect.py -- decide the serving path:
is_amd_epycisfalse-> stop: this skill targets AMD EPYC. (Other x86 may work but is unsupported here.)avx512isfalse-> zentorch cannot run on this CPU (its bf16 path needs AVX-512 BF16,avx512_bf16, which only lands on Zen4+). This is a pre-Zen4 EPYC (Naples / Rome / Milan, 7000 series). Do not dead-end -- it is still an EPYC host: offer the stock vLLM CPU path (plain vLLM, no zentorch acceleration -- slower, but verified working on EPYC 7763/Milan). Proceed only on the user's explicit OK, launching the official stock vLLM CPU image (Step 6 "Stock vLLM" variant); if the user declines, stop.is_supported_epycisfalsebutavx512istrue(e.g. Bergamo / Siena / EPYC 4004/4005) -> the zentorch path is not validated for this generation. Get explicit confirmation to try zentorch unvalidated, or take the same stock vLLM offer.- else (9000 series -- Genoa/Turin/Venice -- with AVX-512 BF16) -> the validated zentorch path. Proceed.
validate.py (Step 2) reports zentorch_capable and sets requires_confirmation
for the stock/unvalidated paths, so this routing is enforced there too.
Carry epyc_generation / avx512 through the later phases -- e.g. Venice packs up
to 256 cores/socket, which the thread-binding in Step 5 sizes from.
Step 2: Validate the runtime and environment
python3 scripts/validate.py --image <image from data/epyc.json> --generation <epyc_generation from detect> --avx512 <avx512 from detect>
This also hard-enforces the AVX-512 gate: on a CPU without AVX-512, validate.py
returns a blocking error (ready: false) so the flow stops here regardless of the
Step 1 prose -- no image pull, no launch. (It reads the local CPU itself if --avx512
is omitted, so the gate holds even if the value was not passed through.)
Returns ready, requires_confirmation, zentorch_capable (false -> zentorch
can't run; use the stock vLLM variant in Step 6), runtime (docker, podman, or
null), runtime_detail, conda_path_available, stack, compatibility, hf_cache
(resolved HF cache mount -- use hf_cache.mount at launch), ram_gb, and
errors/warnings/advisories. If requires_confirmation is set (stock/unvalidated
path), surface that and get the user's OK before launching. Pick the path:
runtimeisdockerorpodman-> container path (Step 6), used verbatim.runtimenull butconda_path_available: true-> conda/host path.runtimenull and no conda ->readyis false. Report the one-time onboardingfix(make docker accessible / install podman / conda env) and stop.
Do not proceed if ready is false.
Stack-compatibility gate. validate.py probes the selected runtime for its
exact vllm/zentorch/torch versions and the active vLLM platform, then sets
compatibility.status:
proceed-> the stack is the validated default (or a validated family on a Zen platform); continue.blocked-> a stock CPU platform is a
Установить serving-llms-on-epyc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadВложенные файлы
FAQ
Что делает скилл serving-llms-on-epyc?
Serves an LLM on a supported AMD EPYC server CPU using vLLM with zentorch, in Docker, Podman, or conda. Use for "vLLM on CPU", "zentorch serving", or an EPYC CPU endpoint, including on a host that also has AMD Instinct GPUs. Detects the EPYC generation, validates the runtime, checks model support and RAM fit, sizes threads/KV/NUMA, confirms the plan, launches, and verifies the endpoint. Runs one instance on one socket and its memory. Reports and stops on failure; does not retry or debug. Use serving-llms-on-instinct when the endpoint should run on a GPU. Excludes multi-node, EPYC 4000, and pre-Zen4 EPYC without AVX-512.
Как установить скилл serving-llms-on-epyc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл serving-llms-on-epyc запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic