vllm-project/vllm-xpu-kernels
Native PyTorch XPU kernels for vLLM inference on Intel GPUs
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
vllm-xpu-kernels is the Intel GPU operator layer for vLLM, not a serving engine. vLLM imports vllm_xpu_kernels._C at startup, registering custom operators with the PyTorch dispatcher. PyTorch then selects their XPU implementations when vLLM executes those operators on Intel GPUs. The integration point is the operator call, not a separate process or API.
Native sources sit under csrc/. The kernels are written in SYCL/DPC++ and use oneDNN primitives. Setuptools packages the extension as a Python wheel, while CMake and Ninja support the native build. The build manifest pins torch==2.15.0+xpu; the wheel, PyTorch build, and Intel GPU runtime should be treated as a compatibility set.
Key Capabilities & Differentiators
The kernel set covers RMS norm, fused add-RMS norm, layer norm, gated activations, variable-length Flash Attention, GDN attention, and Xe2 attention variants. Paged KV-cache support includes _C_cache_ops.cp_gather_cache, a page-wise context-parallel gather operator with token-level sequence offsets and aligned 16-byte copies.
Beyond attention, the extension provides NeoX and GPT-J rotary layouts, DeepSeek-scaled RoPE, LoRA operators, fused grouped TopK routing, expert remapping, grouped GEMM, and FP8/MxFP4 quantization and GEMM. Default builds target common configurations for Llama, Qwen, and DeepSeek. The two prefill and paged-decode build settings let teams customize that coverage; they are not a guarantee that every model variant, precision, and GPU generation combination is available.
Trade-offs & Limitations
This extension makes sense when Intel GPUs are the deployment target and vLLM is the serving layer you want to keep. NVIDIA deployments should use vLLM's CUDA path instead. CUDA-aligned behavior in the cache gather operator helps align semantics across backends; it does not make binaries portable or establish performance parity. The extension does not replace vLLM's server or scheduler.
Wheels avoid a local native build, but not the need to align the wheel, PyTorch XPU build, and Intel runtime. Custom prefill and decode presets give teams control over kernel coverage at the cost of another build and validation matrix. Per-kernel scripts under benchmark/ can isolate regressions; use representative model traffic to judge throughput, latency, and memory headroom. Apache-2.0 permits commercial use, with separate license checks for dependencies and model weights.
Hardware & Deployment Guide
Install vLLM for XPU first if the goal is serving: it pulls in the kernel wheel automatically. To manage the extension separately, use a PyPI or release-hosted wheel that matches the PyTorch XPU and Intel runtime stack. The source-build baseline is Python 3.12, torch==2.15.0+xpu from the PyTorch XPU index, Intel OMIX 0.4 with oneAPI 2026.1 DPC++, CMake ≥ 3.26, and Ninja.
For development, build with Dockerfile.xpu and pass the host GPU through with --device=/dev/dri, or install intel-omix-dev on bare metal and source /opt/intel/oneapi/setvars.sh before building. Run pytest tests/ before load-testing the target model. v0.1.18 expands Xe3P attention coverage and adds GDN prefill checkpoints and virtual memory management for growable device buffers. It also moves MoE weight and scale prepacking out of the constructor: call prepack_weights() after loading weights.
vllm_xpu_kernels._C registers native XPU operators with PyTorch.torch==2.15.0+xpu._C_cache_ops.cp_gather_cache uses token-level sequence offsets and aligned 16-byte copies for page-wise context-parallel gather.VLLM_CHUNK_PREFILL_CONFIG and VLLM_PAGED_DECODE_CONFIG settings control which kernels are compiled.XpuFusedMoe callers must invoke prepack_weights() after loading weights.Teams self-hosting vLLM on Intel GPUs that can pin the runtime stack and validate kernel coverage for their target models.
You need a standalone server, deploy only on NVIDIA GPUs, or cannot maintain a compatible PyTorch XPU and Intel runtime stack.
Quick Start & Installation
pip install --upgrade vllm-xpu-kernels
Comparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| vllm-xpu-kernels ★ | 88 | +2 | C++ | Apache-2.0 | Native PyTorch XPU kernels for vLLM inference on Intel GPUs |
| tensorflow | 201.7k | +4 | C++ | Apache-2.0 | C++-backed ML framework for building models and embedding inference |
| ggml | 16.3k | +97 | C++ | MIT | Embeddable C/C++ tensor runtime for quantized inference across hardware backends |
| transformers | 169.6k | +337 | Python | Apache-2.0 | A PyTorch model-definition SDK for unified inference and training across modalit |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/vllm-project/vllm-xpu-kernels.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about vllm-xpu-kernels
How does vLLM pick up the Intel GPU kernels?
vllm_xpu_kernels._C at startup. The native extension registers custom operators with PyTorch, which dispatches to the XPU implementations for Intel GPU execution. The XPU distribution of vLLM pulls in the kernel wheel as a dependency; installing the wheel alone does not start an inference server.What hardware and VRAM should I budget for?
Can I use this in a commercial self-hosted service?
When should I choose this over vLLM's CUDA backend?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy