|
| 1 | +# Copyright (C) 2025-2026 Intel Corporation |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +# Intel® Arc™ Battlemage (BMG) GPU optimized override values for vLLM deployments. |
| 5 | +# This file contains BMG-specific overrides for Intel Arc B-series GPU (e.g., B580, B770). |
| 6 | +# Requires the Intel GPU Plugin (intel-device-plugins-gpu) to be installed on the cluster. |
| 7 | + |
| 8 | +# Intel XPU accelerator device (Arc GPU) |
| 9 | +accelDevice: "xpu" |
| 10 | +# Kubernetes resource name exposed by the Intel GPU device plugin. |
| 11 | +# Use "gpu.intel.com/xe" with the newer Xe kernel driver (Ubuntu 25.10 / Arc B-series), |
| 12 | +# or "gpu.intel.com/i915" on hosts still using the i915 driver. |
| 13 | +xpuDeviceResource: "gpu.intel.com/xe" |
| 14 | + |
| 15 | +block_size: 64 # XPU-optimised KV cache block size (must be >= 64 for 0.14.1-xpu IPEX chunked prefill) |
| 16 | +max_num_seqs: 128 # Max concurrent sequences (tuned for Arc B-series VRAM) |
| 17 | +max_seq_len_to_capture: 2048 |
| 18 | +d_type: "float16" |
| 19 | +max_model_len: 8192 |
| 20 | +tensor_parallel_size: "1" # Arc Pro B50 has 1 GPU; adjust for multi-GPU setups |
| 21 | + |
| 22 | +image: |
| 23 | + repository: intel/vllm |
| 24 | + tag: "0.17.0-xpu" |
| 25 | + pullPolicy: IfNotPresent |
| 26 | + command: ["vllm", "serve"] |
| 27 | + |
| 28 | +# --- Security context (non-root, scanner-compliant) --- |
| 29 | +# The intel/vllm:0.17.0-xpu image defaults to root, but the workload runs fine as |
| 30 | +# a non-root user (UID 1001) provided it can reach the Arc render node |
| 31 | +# (/dev/dri/renderD*). That device is owned by root:render on the host, so the pod |
| 32 | +# must join the host's "render" (and typically "video") group via supplementalGroups. |
| 33 | +# HF_HOME is set to /data (the model-volume mount); fsGroup: 1001 makes that volume |
| 34 | +# and the /tmp + /dev/shm emptyDirs group-writable, so caches work without root. |
| 35 | +# |
| 36 | +# IMPORTANT — validate the host GIDs on the BMG node before deploying (they vary by |
| 37 | +# distro/kernel). On the target node run: |
| 38 | +# getent group render video # e.g. render:x:993 video:x:44 |
| 39 | +# stat -c '%g %G' /dev/dri/renderD128 |
| 40 | +# then set supplementalGroups below to the matching numeric GIDs. A GPU permission |
| 41 | +# error at startup almost always means the render GID here does not match the host. |
| 42 | +podSecurityContext: |
| 43 | + runAsNonRoot: true |
| 44 | + runAsUser: 1001 |
| 45 | + runAsGroup: 1001 |
| 46 | + fsGroup: 1001 |
| 47 | + # [<render GID>, <video GID>] — verify per host with `getent group render video`. |
| 48 | + # Validated on the Arc Pro B50 test host (Ubuntu 25.10): render=992, video=44. |
| 49 | + # These GIDs are NOT guaranteed across distros/kernels — re-check on each node. |
| 50 | + supplementalGroups: [992, 44] |
| 51 | + seccompProfile: |
| 52 | + type: RuntimeDefault |
| 53 | + |
| 54 | +securityContext: |
| 55 | + allowPrivilegeEscalation: false |
| 56 | + capabilities: |
| 57 | + drop: |
| 58 | + - ALL |
| 59 | + add: |
| 60 | + - SYS_NICE |
| 61 | + # vLLM/IPEX writes SYCL and compile caches at runtime, so the root filesystem |
| 62 | + # cannot be fully read-only; model/HF caches live on the mounted /data volume. |
| 63 | + readOnlyRootFilesystem: false |
| 64 | + runAsNonRoot: true |
| 65 | + runAsUser: 1001 |
| 66 | + runAsGroup: 1001 |
| 67 | + |
| 68 | +# Node affinity for BMG inference nodes |
| 69 | +affinity: |
| 70 | + nodeAffinity: |
| 71 | + requiredDuringSchedulingIgnoredDuringExecution: |
| 72 | + nodeSelectorTerms: |
| 73 | + - matchExpressions: |
| 74 | + - key: ei-inference-eligible |
| 75 | + operator: In |
| 76 | + values: ["true"] |
| 77 | + |
| 78 | +# Intel XPU runtime settings |
| 79 | +VLLM_NO_USAGE_STATS: 1 |
| 80 | +DO_NOT_TRACK: 1 |
| 81 | + |
| 82 | +# vLLM device backend - set via env var in 0.14.1-xpu (VLLM_TARGET_DEVICE=xpu is already baked in) |
| 83 | +VLLM_WORKER_MULTIPROC_METHOD: "spawn" |
| 84 | + |
| 85 | +LLM_MODEL_ID: "Qwen/Qwen2.5-Coder-3B-Instruct" |
| 86 | + |
| 87 | +modelConfigs: |
| 88 | + |
| 89 | + "meta-llama/Llama-3.1-8B-Instruct": |
| 90 | + configMapValues: |
| 91 | + VLLM_NO_USAGE_STATS: "1" |
| 92 | + DO_NOT_TRACK: "1" |
| 93 | + VLLM_WORKER_MULTIPROC_METHOD: "spawn" |
| 94 | + HF_HUB_DISABLE_XET: "1" |
| 95 | + extraCmdArgs: |
| 96 | + [ |
| 97 | + "--dtype", "float16", |
| 98 | + "--block-size", "64", |
| 99 | + "--max-model-len", "8192", |
| 100 | + "--gpu-memory-utilization", "0.90", |
| 101 | + "--max-num-seqs", "128", |
| 102 | + "--enforce-eager", |
| 103 | + "--enable-auto-tool-choice", |
| 104 | + "--tool-call-parser", "llama3_json", |
| 105 | + ] |
| 106 | + tensor_parallel_size: "1" |
| 107 | + pipeline_parallel_size: "1" |
| 108 | + |
| 109 | + "mistralai/Mistral-7B-Instruct-v0.3": |
| 110 | + configMapValues: |
| 111 | + VLLM_NO_USAGE_STATS: "1" |
| 112 | + DO_NOT_TRACK: "1" |
| 113 | + VLLM_WORKER_MULTIPROC_METHOD: "spawn" |
| 114 | + HF_HUB_DISABLE_XET: "1" |
| 115 | + extraCmdArgs: |
| 116 | + [ |
| 117 | + "--dtype", "float16", |
| 118 | + "--block-size", "64", |
| 119 | + "--max-model-len", "8192", |
| 120 | + "--gpu-memory-utilization", "0.90", |
| 121 | + "--max-num-seqs", "128", |
| 122 | + "--enforce-eager", |
| 123 | + "--enable-auto-tool-choice", |
| 124 | + "--tool-call-parser", "mistral", |
| 125 | + ] |
| 126 | + tensor_parallel_size: "1" |
| 127 | + pipeline_parallel_size: "1" |
| 128 | + |
| 129 | + "deepseek-ai/DeepSeek-R1-Distill-Llama-8B": |
| 130 | + configMapValues: |
| 131 | + VLLM_NO_USAGE_STATS: "1" |
| 132 | + DO_NOT_TRACK: "1" |
| 133 | + VLLM_WORKER_MULTIPROC_METHOD: "spawn" |
| 134 | + HF_HUB_DISABLE_XET: "1" |
| 135 | + extraCmdArgs: |
| 136 | + [ |
| 137 | + "--dtype", "float16", |
| 138 | + "--block-size", "64", |
| 139 | + "--max-model-len", "8192", |
| 140 | + "--gpu-memory-utilization", "0.90", |
| 141 | + "--max-num-seqs", "128", |
| 142 | + "--enforce-eager", |
| 143 | + ] |
| 144 | + tensor_parallel_size: "1" |
| 145 | + pipeline_parallel_size: "1" |
| 146 | + |
| 147 | + "Qwen/Qwen2.5-7B-Instruct": |
| 148 | + configMapValues: |
| 149 | + VLLM_NO_USAGE_STATS: "1" |
| 150 | + DO_NOT_TRACK: "1" |
| 151 | + VLLM_WORKER_MULTIPROC_METHOD: "spawn" |
| 152 | + HF_HUB_DISABLE_XET: "1" |
| 153 | + extraCmdArgs: |
| 154 | + [ |
| 155 | + "--dtype", "float16", |
| 156 | + "--block-size", "64", |
| 157 | + "--max-model-len", "8192", |
| 158 | + "--gpu-memory-utilization", "0.90", |
| 159 | + "--max-num-seqs", "128", |
| 160 | + "--enforce-eager", |
| 161 | + "--enable-auto-tool-choice", |
| 162 | + "--tool-call-parser", "hermes", |
| 163 | + ] |
| 164 | + tensor_parallel_size: "1" |
| 165 | + pipeline_parallel_size: "1" |
| 166 | + |
| 167 | + "Qwen/Qwen2.5-Coder-3B-Instruct": |
| 168 | + configMapValues: |
| 169 | + VLLM_NO_USAGE_STATS: "1" |
| 170 | + DO_NOT_TRACK: "1" |
| 171 | + VLLM_WORKER_MULTIPROC_METHOD: "spawn" |
| 172 | + HF_HUB_DISABLE_XET: "1" |
| 173 | + extraCmdArgs: |
| 174 | + [ |
| 175 | + "--dtype", "float16", |
| 176 | + "--block-size", "64", |
| 177 | + "--max-model-len", "8192", |
| 178 | + "--gpu-memory-utilization", "0.90", |
| 179 | + "--max-num-seqs", "128", |
| 180 | + "--enforce-eager", |
| 181 | + "--enable-auto-tool-choice", |
| 182 | + "--tool-call-parser", "hermes", |
| 183 | + ] |
| 184 | + tensor_parallel_size: "1" |
| 185 | + pipeline_parallel_size: "1" |
| 186 | + |
| 187 | + "tiiuae/Falcon3-7B-Instruct": |
| 188 | + configMapValues: |
| 189 | + VLLM_NO_USAGE_STATS: "1" |
| 190 | + DO_NOT_TRACK: "1" |
| 191 | + VLLM_WORKER_MULTIPROC_METHOD: "spawn" |
| 192 | + HF_HUB_DISABLE_XET: "1" |
| 193 | + extraCmdArgs: |
| 194 | + [ |
| 195 | + "--dtype", "float16", |
| 196 | + "--block-size", "64", |
| 197 | + "--max-model-len", "8192", |
| 198 | + "--gpu-memory-utilization", "0.90", |
| 199 | + "--max-num-seqs", "128", |
| 200 | + "--enforce-eager", |
| 201 | + ] |
| 202 | + tensor_parallel_size: "1" |
| 203 | + pipeline_parallel_size: "1" |
| 204 | + |
| 205 | +defaultModelConfigs: |
| 206 | + configMapValues: |
| 207 | + VLLM_NO_USAGE_STATS: "1" |
| 208 | + DO_NOT_TRACK: "1" |
| 209 | + VLLM_WORKER_MULTIPROC_METHOD: "spawn" |
| 210 | + HF_HUB_DISABLE_XET: "1" |
| 211 | + HOME: "/tmp" # Non-root UID 1001 not in /etc/passwd; HOME avoids getpass.getuser() in PyTorch cache |
| 212 | + PYTORCH_DISABLE_TORCH_INDUCTOR: "1" # Workaround: inductor cache requires getpass.getuser(), which fails for non-root UID 1001 |
| 213 | + extraCmdArgs: |
| 214 | + [ |
| 215 | + "--dtype", "float16", |
| 216 | + "--block-size", "16", |
| 217 | + "--max-model-len", "8192", |
| 218 | + "--gpu-memory-utilization", "0.90", |
| 219 | + "--max-num-seqs", "128", |
| 220 | + "--enforce-eager", |
| 221 | + ] |
| 222 | + tensor_parallel_size: "{{ .Values.tensor_parallel_size }}" |
| 223 | + pipeline_parallel_size: "{{ .Values.pipeline_parallel_size }}" |
0 commit comments