Logo : Vllm Xpu Run

Vllm Xpu Run

Organisation
intel
vllm-xpu-run

Serve a Hugging Face safetensors model on an Intel GPU with upstream vLLM-XPU's OpenAI-compatible API, or check whether a model or architecture is currently documented on XPU. Covers live support lookup, image choice, container launch, known serve-flag requirements, model-impl fallback, and attention/quant compatibility. Use to launch /v1/chat/completions or /v1/completions, troubleshoot a launch, or check model support. Not for choosing the best quantization, KV dtype, DP/TP layout, context, or concurrency (use model-config-recommend).

Présentation

Éditeurintel
Dépôtskills
Nom de la compétencevllm-xpu-run
Étoiles
31
Forks
14
Fichiers inclus
4
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 4

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par intel sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Vllm Xpu Run dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/intel/skills/tree/main/skills/vllm-xpu-run
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/intel/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/vllm-xpu-run .claude/skills/vllm-xpu-run
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Vllm Xpu Run dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Vllm Xpu Run dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Vllm Xpu Run n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

vllm-xpu-run

Use the official upstream vllm/vllm-openai-xpu:latest image.

Upstream vLLM has a first-class XPU backend. The CLI is identical to the CUDA build (vllm serve <model>); device is detected from torch.xpu.is_available(). There is no --device xpu flag.

The official image already sets ENTRYPOINT ["vllm", "serve"]. Pass the model id and serve flags directly after the image name. Do not append another vllm serve: that produces vllm serve vllm serve <model> and the container exits with code 2.

Current supported models and architectures

When the user asks which models vLLM supports on Intel XPU, fetch the current upstream page at request time:

https://docs.vllm.ai/en/stable/models/hardware_supported_models/xpu/

Do not answer from memory and do not copy a static model list into this skill. Report both the explicitly listed Model rows and the Architecture column, because the recommended model table is not an exhaustive checkpoint allowlist.

For a specific unlisted Hugging Face model, read its current config.json and compare every value in architectures with the live page's Architecture column. Report the evidence precisely:

  • Exact model row → explicitly documented on the fetched page.
  • Architecture match only → the architecture is documented on XPU, but this exact checkpoint is not explicitly validated by the page; perform a generation smoke test before claiming full support.
  • Neither matches → not documented by the current XPU page; this is not proof of impossibility.

Include the source URL and retrieval date in the answer. If the page cannot be fetched, report that failure and offer to retry rather than substituting a remembered list. Do not infer XPU support merely from general vLLM, CUDA, or Transformers support.

CUDA → XPU cheat sheet

CUDA conventionXPU convention
vllm/vllm-openai:latestvllm/vllm-openai-xpu:latest
--gpus all--device /dev/dri + -v /dev/dri/by-path:/dev/dri/by-path:ro + --ipc=host
--dtype auto--dtype bfloat16 (explicit)
CUDA graphs defaultgraphs also capture by default from vLLM v0.31.0 — emit nothing. Add --enforce-eager only for pre-v0.31.0 images.
--tensor-parallel-size Nsame; pin N XPUs in ZE_AFFINITY_MASK

Quickstart (single GPU)

Confirm the target image tag and model with the user before running the docker run command — container launches bind host devices and download multi-GB weights.

Pull the official XPU image from https://hub.docker.com/r/vllm/vllm-openai-xpu. The examples use :latest; pin an immutable digest for reproducible deployments. Generated plans should call scripts/emit_launch.sh instead of copying the template manually — that keeps image policy, proxy env propagation, quantization flags, and multi-XPU topology in one place.

sh
docker run -d --name vllm-xpu \
    --device /dev/dri \
    -v /dev/dri/by-path:/dev/dri/by-path:ro \
    --group-add "$(getent group render | cut -d: -f3)" \
    --ipc=host \
    -e ZE_AFFINITY_MASK=0 \
    -e VLLM_WORKER_MULTIPROC_METHOD=spawn \
    -e HTTP_PROXY -e HTTPS_PROXY -e NO_PROXY \
    -e http_proxy -e https_proxy -e no_proxy \
    -e HF_TOKEN="$HF_TOKEN" \
    -v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
    -p 8000:8000 \
    vllm/vllm-openai-xpu:latest \
    Qwen/Qwen2.5-1.5B-Instruct \
        --dtype bfloat16 \
        --block-size=64 \
        --max-model-len 4096 \
        --gpu-memory-utilization 0.85

Wait for Application startup complete, then test:

sh
curl -s http://localhost:8000/v1/chat/completions \
    -H 'Content-Type: application/json' \
    -d '{"model":"Qwen/Qwen2.5-1.5B-Instruct",
         "messages":[{"role":"user","content":"Hi."}],"max_tokens":32}'

Return the response content or a short summary to the user. A running HTTP server without a successful generation is not a validated deployment.

Cleanup: docker stop vllm-xpu && docker rm vllm-xpu.

Drop --rm on first launches so logs survive a crashed init.

To serve on a remote Intel GPU host over ssh (the local machine → remote-box workflow), see references/remote-deploy.md.

Flag rationales

FlagWhy
--dtype bfloat16Battlemage runs bf16 better than fp16; auto may pick fp16 from the checkpoint config. Set for unquantized serving only — combining with --quantization produces conflicts.
--enforce-eagerDo not emit this on vLLM v0.31.0 or newer. There, XPU graphs capture by default and VLLM_XPU_ENABLE_XPU_GRAPH no longer exists, so the flag disables exactly what the version enables — measured cost roughly 2x decode (TPOT 64 ms vs 36 ms, 4x Arc Pro B70 at concurrency 8). It does not change TTFT, so eager is never the explanation for a slow first token. Emit it only for pre-v0.31.0 images, where graph capture was experimental, or to isolate a suspected graph-capture bug. Check the image first: docker run --rm --entrypoint python3 <image> -c "import vllm; print(vllm.__version__)".
--block-size=64Validated default for the XPU paged-attention path on Battlemage. Bench higher (128, 256) once 64 is correct.
--gpu-memory-utilization 0.85Default 0.92 fails on workstations with active GUI sessions. Drop to 0.70 with browsers open; raise to 0.92 on headless servers.
-v /dev/dri/by-path:/dev/dri/by-path:roSome oneCCL/device-discovery configurations scan the host's /dev/dri/by-path symlinks even for a single-GPU launch. Include this read-only mount to support those configurations; if it is omitted, affected images can abort at engine initialization with opendir failed: could not open device directory.
--max-model-len 4096KV cache is allocated up-front. Start at 4096, raise in 2× steps until OOM, back off one step.
--trust-remote-codeSecurity opt-in — permits arbitrary Python from the model repo to run in your engine. Set only when you trust the publisher.
--disable-sliding-windowWorkaround when SWA produces incorrect output for a specific (model, image) combination. Don't apply blindly — disabling SWA on a model designed for it inflates KV memory.
--model-impl transformersFallback for Model architectures ['<X>'] are not supported. Slower but correct. Upgrade transformers in the container if that also fails.

For pooling / embedding / reranker, serve with --dtype bfloat16 or --quantization fp8.

Env vars

vLLM's env-var surface is image-version-specific. After launch, verify there are no silent rejects:

sh
docker logs <name> 2>&1 | grep -i "Unknown vLLM environment"   # must be empty
VariablePurpose
ZE_AFFINITY_MASKWhich XPU(s) the server sees.
HF_TOKENHF auth.
TRITON_CACHE_DIRPersist compiled XPU Triton kernels.
CCL_ZE_IPC_EXCHANGE=pidfdoneCCL IPC over Docker PID namespace (multi-GPU).
VLLM_LOGGING_LEVEL=DEBUGVerbose engine logs.
VLLM_WORKER_MULTIPROC_METHOD=spawnRequired — fork deadlocks oneCCL init on XPU.
VLLM_ALLOW_LONG_MAX_MODEL_LEN=1Set when extending RoPE past the model card's default.
VLLM_MLA_DISABLE=1Workaround for MLA models (DeepSeek-V2/V3, MiniMax-Text-01); no-op otherwise.

Quantization, attention backend selection

See references/quantization.md for the full (quant × KV dtype × attention backend) pairing table and live-kernel verification, plus FP8 / AWQ / GPTQ / MXFP4 / AutoRound specifics.

Multi-GPU, tuning, speculative decoding

See references/multi-gpu-and-tuning.md for tensor parallel, oneCCL / XCCL collective env vars, --block-size / --max-num-batched-tokens sweeps, speculative decoding (EAGLE3 / MTP / n-gram), and legacy env-var aliases for older images.

Attention backend gotcha (read before quantising)

--kv-cache-dtype fp8 and the W4A8 quant kernels (AWQ / GPTQ / MXFP4) require --attention-backend TRITON_ATTN. The default FA-XPU backend does not implement fp8 KV — vLLM exits with NotImplementedError at engine init. Full pairing table in references/quantization.md.

Common errors

  • Model architectures ['<X>'] are not supported → add --model-impl transformers. If still failing, upgrade transformers in the container or use a newer image.
  • RuntimeError: Cannot find any XPU devices → container missing GPU access; verify with xpu-smi discovery inside the container.
  • Free memory on device xpu:0 ... is less than desired GPU memory utilization → drop --gpu-memory-utilization to 0.85 or 0.70.
  • Other OOM at engine init → --max-model-len too large; halve.
  • OOM after a few requests → cap --max-num-seqs 16.
  • Server hangs at Detected platform: xpu → oneCCL init. Check --ipc=host; for multi-GPU, check both XPUs in ZE_AFFINITY_MASK.
  • Crash at init with oneCCL: ze_fd_manager.cpp ... init_device_fds: opendir failed: could not open device directory → /dev/dri/by-path not visible in the container. Add -v /dev/dri/by-path:/dev/dri/by-path:ro. Fires on single-GPU too (the worker all_reduces at init). Setting CCL_ZE_IPC_EXCHANGE=pidfd alone does not fix it — the drmfd fallback still scans by-path.
  • tensor parallel size N is not allowed → ZE_AFFINITY_MASK has fewer than N XPUs.
  • HTTP 400 "model not found" → model field in JSON must match /v1/models exactly.
  • Gibberish output → dtype mismatch. Force --dtype bfloat16. Last resort: --override-attention-dtype float32.
  • Triton compile error on first request → set TRITON_CACHE_DIR to a mounted volume so the next run starts hot.

Verifying device placement

sh
xpu-smi dump -d 0 -m 5,18 -i 1 | head -5

Memory should sit at gigabytes once the engine is ready. <100 MiB while the server reports ready means the model loaded on CPU.

What this skill does NOT cover

  • Choosing the best quantization, KV dtype, DP/TP layout, context, or concurrency → model-config-recommend. Questions such as "How should I configure vLLM on my Arc cards?" belong there even when the user also names a model.
  • SGLang serving → sglang-xpu-run.
  • Pure PyTorch / Transformers → torch-xpu-run.
  • Throughput / TTFT / TPOT measurement → vllm-xpu-bench.
  • Profile-level slowness → vllm-xpu-profile.
  • SYCL kernel fixes — out of scope.
  • intel/llm-scaler-vllm images — out of scope.

References

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Vllm Xpu Run ?

Serve a Hugging Face safetensors model on an Intel GPU with upstream vLLM-XPU's OpenAI-compatible API, or check whether a model or architecture is currently documented on XPU. Covers live support lookup, image choice, container launch, known serve-flag requirements, model-impl fallback, and attention/quant compatibility. Use to launch /v1/chat/completions or /v1/completions, troubleshoot a launch, or check model support. Not for choosing the best quantization, KV dtype, DP/TP layout, context, or concurrency (use model-config-recommend).

Pourquoi utiliser Vllm Xpu Run sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Vllm Xpu Run se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Vllm Xpu Run dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/intel/skills/tree/main/skills/vllm-xpu-run. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Vllm Xpu Run ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Vllm Xpu Run ?

Autant que vous le souhaitez. Vous pouvez utiliser Vllm Xpu Run avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Vllm Xpu Run est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par intel sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇