Add EPYC CPU serving skill (vLLM + zentorch)#76
Open
amd-lalithnc wants to merge 1 commit into
Open
Conversation
Signed-off-by: Lalithnarayan C <Lalithnarayan.C@amd.com> Change-Id: I1dc2362e0983326658b6618015a161ecd44f40e6
Collaborator
|
@Mahdi-CV Can you help review this? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
serving-llms-on-epyc: a skill that brings up a single vLLM OpenAI endpoint on anAMD EPYC CPU host with the zentorch backend, in a container (Docker/Podman) or a conda env.
Flow
detect.py).validate.py): container runtime (docker/podman) or conda fallback;image present, and if already pulled,
import vllm, zentorchinside it; host perf libraries(tcmalloc / OpenMP via
LD_PRELOAD);HF_TOKEN; RAM.check_model.py): confirm vLLM supports the architecture via itsmodel registry (text or multimodal); reject pooling / non-LLM (not chat endpoints).
Gated models require
HF_TOKEN+ license acceptance.estimate_memory.py): weights + KV cache + headroom ≤ host RAM.cpu_tune.py): bind to socket 0's physical cores andset
VLLM_CPU_KVCACHE_SPACE; no memory binding by default (NPS2/NPS4 get a perf note).vllm serve(never--device cpuon vLLM ≥ 0.20)./health, validate the/v1/chat/completionsendpoint, then print aconnection table.
Single instance. On any failure it reports the cause + logs and stops, no retry, no debugging loop.
Contents
SKILL.md,reference.md,skill-card.md,data/epyc.jsondetect.py,validate.py,check_model.py,estimate_memory.py,cpu_tune.pyeval/behavioral/tests/test_serving_llms_on_epyc.py.claude-plugin/marketplace.json(+ regenerated Cursor manifest)Notes / scope
amdih/zendnn_zentorchimage on Docker Hub.TORCHINDUCTOR_FREEZING=1requiresVLLM_USE_AOT_COMPILE=0.OMP_NUM_THREADSandVLLM_CPU_NUM_OF_RESERVED_CPUare intentionally left unset — vLLM derivesthem (from the bind list / its own default).
Testing
check.sh): passes (0 errors).estimate → cpu_tune → confirm, plus the guardrails. Live launch/serve is the manual /
integration tier on a real EPYC host.
Change-Id: I1dc2362e0983326658b6618015a161ecd44f40e6