diff --git a/docs/README.md b/docs/README.md index 1217778..1fbdf24 100644 --- a/docs/README.md +++ b/docs/README.md @@ -67,7 +67,7 @@ Edit the YAML under `env//` and re-run `install inference`. | Guide | What it covers | |---|---| | [Model catalog](configuration/catalog.md) | The `models.yaml` catalog: every field, and auto-deploy at install time | -| [Runtimes](configuration/runtimes.md) | Intel® Inference Microservices (IIMs), vLLM (CPU, NVIDIA and Intel® Arc™ GPUs) and OpenVINO: versions, images and per-workload defaults | +| [Runtimes](configuration/runtimes.md) | Intel® Inference Microservices, vLLM (CPU, NVIDIA and Intel® Arc™ GPUs) and OpenVINO: versions, images and per-workload defaults | | [Configuration](configuration/configuration.md) | Every option in `config.yaml`, plus the `MM_*` environment variables | | [Guardrails](configuration/guardrails.md) | Content-safety screening of LiteLLM requests with a guard model (Qwen3Guard) | | [Hybrid router](configuration/hybrid-router.md) | Complexity-tier and bandit routing behind one virtual model in LiteLLM | diff --git a/docs/configuration/catalog.md b/docs/configuration/catalog.md index aa85028..8f0e6c6 100644 --- a/docs/configuration/catalog.md +++ b/docs/configuration/catalog.md @@ -26,7 +26,7 @@ models: # 2. The models you can deploy — one entry per model vllm: { versions: ["0.24.0", "0.19.1"], default: "0.24.0" } runtimes: # 3. The engines themselves — images, versions, shared settings - iims: { ... } + intel-inference-microservices: { ... } vllm: { ... } vllm-cuda: { ... } vllm-xpu: { ... } @@ -53,7 +53,7 @@ Applied to every model that doesn't override them. | Field | Default | Meaning | |---|---|---| | `namespace` | `llm-inference` | Target namespace for deployments | -| `runtime` | `iims` | Engine used when a model omits one. See [Runtimes](runtimes.md) | +| `runtime` | `intel-inference-microservices` | Engine used when a model omits one. See [Runtimes](runtimes.md) | | `replicas` | `1` | Replica count | | `require_amx` | `true` | Only schedule CPU model pods on nodes with Intel® AMX. Relies on the NFD labels; NFD comes from the core platform layer's `node_feature_discovery`. GPU models ignore it, and a catalog without the line counts as `false` | diff --git a/docs/configuration/runtimes.md b/docs/configuration/runtimes.md index 87c3732..8cd9828 100644 --- a/docs/configuration/runtimes.md +++ b/docs/configuration/runtimes.md @@ -9,7 +9,7 @@ per model in the catalog, or at deploy time with `--server ` (alias `--run | Runtime | Use case | Key optimizations | |---------|----------|-------------------| -| **Intel® Inference Microservices (IIMs)** (`iims`, the default) | LLMs, VLMs, embedding, reranking | Intel® Inference Microservices images: Intel-validated vLLM profiles per model | +| **Intel® Inference Microservices** (`intel-inference-microservices`, the default) | LLMs, VLMs, embedding, reranking | Intel® Inference Microservices images: Intel-validated vLLM profiles per model | | **vLLM** (`vllm`, CPU) | LLMs, VLMs, embedding, reranking | Upstream vLLM CPU images; NUMA auto-bind, AMX kernels, prefix caching, chunked prefill | | **vLLM on NVIDIA GPU** (`vllm-cuda`) | LLMs, VLMs | GPU tensor parallelism | | **vLLM on Intel® Arc™ Pro B-Series GPUs** (`vllm-xpu`) | LLMs | Intel XPU build of vLLM, non-root | @@ -48,19 +48,19 @@ Version selection, highest precedence first: --server-version > the model's version (servers default, or server_version) > the runtime's default_version ``` -## Intel® Inference Microservices (IIMs) +## Intel® Inference Microservices The default runtime. It runs the [Intel® Inference Microservices](https://hub.docker.com/u/intel) launcher (`python3 -m inference_runtime.cli serve`), which picks a tuned vLLM profile for -the model and then starts vLLM. Catalog models with their own IIM image set it with -`image:` (e.g. `intel/inference-xeon-qwen-qwen3-4b:0.1.0`) and get that model's Intel profile. -Every other model runs on the base image `intel/inference-xeon-base:0.1.0` with its +the model and then starts vLLM. Catalog models with their own Intel Inference Microservices image set it with +`image:` (e.g. `intel/inference-xeon-qwen-qwen3-4b:0.2.0`) and get that model's Intel profile. +Every other model runs on the base image `intel/inference-xeon-base:0.2.0` with its generic bf16 profile. ```yaml runtimes: - iims: - image: "docker.io/intel/inference-xeon-base:0.1.0" + intel-inference-microservices: + image: "docker.io/intel/inference-xeon-base:0.2.0" categories: llm: { args: [--max-model-len, auto], defaults: { cpu: 8, memory: "32Gi", kv_cache_gb: 16 } } vlm: { args: [--max-model-len, auto], defaults: { cpu: 16, memory: "48Gi", kv_cache_gb: 16 } } @@ -69,7 +69,7 @@ runtimes: ``` The launcher takes no command-line arguments. The plumbing in -`model_manager/runtimes/iims/values.yaml` sets `container.args_env: INFERENCE_ENGINE_ARGS`, so +`model_manager/runtimes/intel-inference-microservices/values.yaml` sets `container.args_env: INFERENCE_ENGINE_ARGS`, so the vLLM args (category, model and `--arg`) reach it as one JSON object and are applied after the profile. `INFERENCE_MODEL_ID` is set from `model_id`, the weights are read from `/mnt/models`, and `HF_HUB_OFFLINE=1` keeps the launcher off the Hub. Memory is @@ -79,13 +79,11 @@ its threads inside the cores the NRI balloon gives the pod. **Profile per tensor parallel size.** Each image ships a profile per TP (1, 2, 4), and the launcher picks the TP1 one unless told otherwise. With `--tp 2` or `--tp 4`, model-manager sets `INFERENCE_PROFILE_ID` to `vllm-xeon-bf16-tp2` or `-tp4` (`profile.ids` in -`runtimes/iims/values.yaml`), so vLLM runs that TP's tuned settings. Other sizes keep the +`runtimes/intel-inference-microservices/values.yaml`), so vLLM runs that TP's tuned settings. Other sizes keep the launcher's choice, with a warning; `env: { INFERENCE_PROFILE_ID: ... }` on a model picks one by hand. > [!NOTE] -> Known limits of the 0.1.0 images (vLLM 0.26): `whisper-small` fails its first -> transcription (`pin_memory=True requires a CUDA or other accelerator backend`), so the -> catalog serves it on the vLLM runtime (0.28.0). Gated repos (Llama) need `HF_TOKEN`. +> The 0.2.0 images run vLLM 0.33.0. Gated repos (Llama) need `HF_TOKEN`. ## vLLM @@ -137,7 +135,7 @@ when an LLM already runs on that node. So they set it too, from `kv_cache_gb: 16 Env values in the runtime, category, version and model layers can use two placeholders, which are filled in when the manifest is rendered: `${KV_CACHE_GB}` (the category's `kv_cache_gb`) and -`${MODEL_ID}` (the model's Hugging Face `model_id`; the `iims` runtime uses it for +`${MODEL_ID}` (the model's Hugging Face `model_id`; the `intel-inference-microservices` runtime uses it for `INFERENCE_MODEL_ID`). ### Plumbing @@ -293,7 +291,7 @@ The runtime's `kind` decides what `model-manager` creates: | Runtime | Object | Template | |---|---|---| -| `iims`, `vllm`, `vllm-cuda`, `vllm-xpu` | `LLMInferenceService` | `model_manager/templates/llm-inference-service.yaml` (IIMs with the runtime's `container`) | +| `intel-inference-microservices`, `vllm`, `vllm-cuda`, `vllm-xpu` | `LLMInferenceService` | `model_manager/templates/llm-inference-service.yaml` (Intel Inference Microservices with the runtime's `container`) | | `openvino` | `LLMInferenceService` | the same template, with the runtime's `container` | | A runtime with `kind: InferenceService` | `InferenceService` | `model_manager/templates/inference-service.yaml`, with the `ClusterServingRuntime` under `model_manager/runtimes//` | diff --git a/docs/faq-and-troubleshooting/frequently-asked-questions.md b/docs/faq-and-troubleshooting/frequently-asked-questions.md index 23dfdbb..b860b8f 100644 --- a/docs/faq-and-troubleshooting/frequently-asked-questions.md +++ b/docs/faq-and-troubleshooting/frequently-asked-questions.md @@ -26,7 +26,7 @@ The catalog in `env//models.yaml` lists tested models with their settings, ### Which engine serves a model? -Intel® Inference Microservices (IIMs) by default. A catalog entry, or `--server vllm`, +Intel® Inference Microservices by default. A catalog entry, or `--server vllm`, `openvino`, `vllm-cuda` or `vllm-xpu` at deploy time, picks another. See [Runtimes](../configuration/runtimes.md). diff --git a/docs/getting-started/deploy-models.md b/docs/getting-started/deploy-models.md index 3a7b756..c56e0e0 100644 --- a/docs/getting-started/deploy-models.md +++ b/docs/getting-started/deploy-models.md @@ -59,7 +59,7 @@ apply. Set `MM_FORCE_REDEPLOY=1` to force a full re-apply regardless. | `--hfid ` | Deploy any Hugging Face model directly, without a catalog entry (`--id` still works but is deprecated) | | `--name ` | Set the name to serve under (use with `--hfid`) | | `--as ` | Deploy a catalog model under a different name — run several variants at once | -| `--server ` | Which engine serves the model: `iims` (default), `vllm`, `openvino`, `vllm-cuda` or `vllm-xpu` (alias: `--runtime`) | +| `--server ` | Which engine serves the model: `intel-inference-microservices` (default), `vllm`, `openvino`, `vllm-cuda` or `vllm-xpu` (alias: `--runtime`) | | `--server-version ` | Which version of that engine to use — see [below](#pick-an-engine-and-version) | | `--cpu N` | Number of CPU cores to give the model. `--cpu auto` sizes it to a NUMA node — see [CPU auto](../configuration/catalog.md#cpu-auto) | | `--memory NGi` | Memory limit, e.g. `32Gi`. `--memory auto` sizes a vLLM chat or vision-language model's memory and KV cache from its config, and is the default with `--hfid` — see [Memory & KV-Cache Sizing](../reference/memory-sizing.md) | diff --git a/docs/overview/meet.md b/docs/overview/meet.md index 04dd0f4..e6cea68 100644 --- a/docs/overview/meet.md +++ b/docs/overview/meet.md @@ -13,7 +13,7 @@ works against it, and no prompt or answer leaves your cluster. - **One command per model.** `./model-manager deploy ` sizes the pod, downloads the weights, starts the server and registers the model. A catalog (`models.yaml`) holds tested settings for each model; any Hugging Face model also works with `--hfid`. -- **Engines tuned for Intel®.** Intel® Inference Microservices (IIMs, the default) run vLLM +- **Engines tuned for Intel®.** Intel® Inference Microservices (the default) run vLLM with Intel-validated profiles. Upstream vLLM, OpenVINO™ Model Server, and vLLM on Intel® Arc™ Pro B-Series or NVIDIA GPUs are one flag away. - **Access control.** Keycloak tokens (JWT, the default), or LiteLLM virtual keys with diff --git a/docs/reference/architecture.md b/docs/reference/architecture.md index 1a5dd43..c837498 100644 --- a/docs/reference/architecture.md +++ b/docs/reference/architecture.md @@ -113,7 +113,7 @@ deploy: | Runtime | Object | Routing | |---|---|---| -| Intel® Inference Microservices (`iims`, the default) | `LLMInferenceService` | `epp` — EPP endpoint picker; `direct` for embedding and rerank models | +| Intel® Inference Microservices (`intel-inference-microservices`, the default) | `LLMInferenceService` | `epp` — EPP endpoint picker; `direct` for embedding and rerank models | | vLLM (`vllm`) | `LLMInferenceService` | `epp` — EPP endpoint picker; `direct` for embedding and rerank models | | OpenVINO (`openvino`) | `LLMInferenceService` | `epp` — EPP endpoint picker; `direct` for embedding and rerank models | | vLLM on NVIDIA GPUs (`vllm-cuda`) | `LLMInferenceService` | `epp` — EPP endpoint picker; `direct` for embedding and rerank models | diff --git a/model_manager/core/cli.py b/model_manager/core/cli.py index 6eef845..06d235c 100644 --- a/model_manager/core/cli.py +++ b/model_manager/core/cli.py @@ -17,7 +17,7 @@ from . import __version__, k8s, platform, renderer, routing, sizer from .config import (MM_DIR, Catalog, Model, Sizing, hf_config, hf_weight_bytes, hub_unreachable, is_uint, mm_path, - pick, resolve, resolve_autoscaling, text, truthy) + pick, resolve, resolve_autoscaling, runtime_alias, text, truthy) from .download import download_weights from .policy import (ANN, GpuRuntime, mem_bytes, memory_gate, preflight_gate, resolve_auto_cpu, resolve_policy, whole_cpus) @@ -824,13 +824,14 @@ def _catalog_server(catalog: Catalog, e: dict) -> tuple[str, str]: """The server and version `deploy ` picks with no flags, read the way _from_catalog and _select_image read them, and the kind it creates.""" servers = pick(e, "servers", {}) if isinstance(pick(e, "servers", {}), dict) else {} + servers = {runtime_alias(k): v for k, v in servers.items()} if servers: - server = text(pick(e, "default_server")) or min(servers, default="") + server = runtime_alias(text(pick(e, "default_server"))) or min(servers, default="") entry = pick(servers, server, {}) declared = [text(v) for v in pick(entry, "versions", [])] if isinstance(entry, dict) else [] version = text(pick(entry, "default", declared[0] if declared else "")) else: - server, version = text(pick(e, "runtime")) or catalog.runtime, text(pick(e, "server_version")) + server, version = runtime_alias(text(pick(e, "runtime"))) or catalog.runtime, text(pick(e, "server_version")) rt = catalog.runtime_config(server, required=False) if server else {} versions = rt.get("versions") if not version and isinstance(versions, dict): # the runtime's default, else its lowest version diff --git a/model_manager/core/config.py b/model_manager/core/config.py index 5f22faf..8947833 100644 --- a/model_manager/core/config.py +++ b/model_manager/core/config.py @@ -14,7 +14,7 @@ import yaml from . import platform -from .ui import abort, info +from .ui import abort, info, warn MM_DIR = Path(__file__).resolve().parents[1] DNS_LABEL = re.compile(r"[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?") @@ -154,7 +154,7 @@ def __init__(self, path: Path): self.data = load_yaml(path) or {} d = pick(self.data, "defaults", {}) self.namespace = text(pick(d, "namespace", "llm-inference")) - self.runtime = text(pick(d, "runtime", "vllm")) + self.runtime = runtime_alias(text(pick(d, "runtime", "vllm"))) self.replicas = text(pick(d, "replicas", 1)) self.require_amx = truthy(pick(d, "require_amx", False)) self.pvc = text(pick(pick(self.data, "storage", {}), "pvc_name", "model-store")) @@ -182,7 +182,9 @@ def runtime_config(self, name: str, required: bool = True) -> dict: An unknown runtime aborts, or gives {} when not required.""" values = mm_path("MM_RUNTIMES", "runtimes") / name / "values.yaml" base = (load_yaml(values) if values.is_file() else None) or {} - overlay = pick(pick(self.data, "runtimes", {}), name, {}) + runtimes = pick(self.data, "runtimes", {}) + legacy = [k for k, v in LEGACY_RUNTIMES.items() if v == name] + overlay = pick(runtimes, name, {}) or next((pick(runtimes, k) for k in legacy if pick(runtimes, k)), {}) if not base and not overlay: if not required: return {} @@ -190,6 +192,19 @@ def runtime_config(self, name: str, required: bool = True) -> dict: return _merge(base, overlay if isinstance(overlay, dict) else {}) +# Runtime names a catalog seeded before the rename may still use. +LEGACY_RUNTIMES = {"iims": "intel-inference-microservices"} + + +@cache +def runtime_alias(name: str) -> str: + """The current name for a renamed runtime; warns once per legacy name.""" + new = LEGACY_RUNTIMES.get(name) + if new: + warn(f"Runtime '{name}' is now '{new}'; update your models.yaml or --server.") + return new or name + + def _merge(base: dict, overlay: dict) -> dict: out = dict(base) for k, v in overlay.items(): @@ -346,7 +361,7 @@ def resolve(catalog: Catalog, target: str, o: Any) -> Model: """Resolve a catalog model (or --hfid) plus CLI overrides into the Model to deploy.""" if o.id: name = o.name or re.sub(r"[^a-zA-Z0-9]", "-", o.id.rsplit("/", 1)[-1]).lower() - m = Model(name=name, namespace=catalog.namespace, model_id=o.id, runtime=o.server or catalog.runtime, + m = Model(name=name, namespace=catalog.namespace, model_id=o.id, runtime=runtime_alias(o.server) or catalog.runtime, version=o.server_version, replicas=catalog.replicas) elif target: m = _from_catalog(catalog, target, o) @@ -427,13 +442,14 @@ def _from_catalog(catalog: Catalog, name: str, o: Any) -> Model: # Server binding: a servers: map is an allow-list; runtime:/server_version: is shorthand without one. servers = shaped(f"model '{name}' servers", pick(e, "servers", {}), dict, catalog.path) + servers = {runtime_alias(k): v for k, v in servers.items()} explicit = bool(servers) - default_server = text(pick(e, "default_server")) + default_server = runtime_alias(text(pick(e, "default_server"))) if not explicit: - default_server = text(pick(e, "runtime")) or catalog.runtime + default_server = runtime_alias(text(pick(e, "runtime"))) or catalog.runtime servers = {default_server: {"default": text(pick(e, "server_version"))}} own = default_server or min(servers, default="") or catalog.runtime # the runtime the model runs on unasked - m.runtime = o.server or own + m.runtime = runtime_alias(o.server) or own if m.runtime != own: m.image = "" # a model's image belongs to its own runtime, not to the one --server picks if explicit and m.runtime not in servers: diff --git a/model_manager/models.yaml b/model_manager/models.yaml index 40cbd0d..7421649 100644 --- a/model_manager/models.yaml +++ b/model_manager/models.yaml @@ -5,7 +5,7 @@ defaults: namespace: llm-inference - runtime: iims + runtime: intel-inference-microservices replicas: 1 require_amx: true @@ -134,30 +134,6 @@ models: args: [ --enable-auto-tool-choice, --tool-call-parser, gemma4 ] env: { VLLM_CPU_SGL_KERNEL: "0" } # its vision tower feeds the AMX SGL kernel a 3D tensor (vllm runtime sets 1) - - name: whisper-small # speech-to-text (/v1/audio/transcriptions) - model_id: openai/whisper-small - category: llm - runtime: vllm - server_version: "0.28.0" - cpu: auto - memory: 24Gi - # Encoder-decoder: prefix caching kills the engine on the first request (no cross-attention caching). - args: [ --dtype, float32, --enforce-eager, --no-enable-prefix-caching, --tensor-parallel-size, "1" ] - env: - VLLM_RPC_TIMEOUT: "100000" - VLLM_ALLOW_LONG_MAX_MODEL_LEN: "1" - VLLM_ENGINE_ITERATION_TIMEOUT_S: "120" - TRITON_CACHE_DIR: "/tmp/.triton" - USER: "vllm" - VLLM_CPU_KVCACHE_SPACE: "10" - VLLM_CPU_NUM_OF_RESERVED_CPU: "0" - HF_HUB_DISABLE_XET: "1" - VLLM_CPU_SGL_KERNEL: "1" - TORCHDYNAMO_DISABLE: "1" - TORCH_INDUCTOR_CACHE_DIR: "/tmp/torchinductor_cache" - XDG_CACHE_HOME: "/tmp/.cache" - HF_HOME: "/tmp/huggingface" - # Backs the LiteLLM guardrail, which is fail-closed: an OOM here blocks every request. - name: qwen3guard model_id: Qwen/Qwen3Guard-Gen-0.6B @@ -215,7 +191,7 @@ models: - name: iim-qwen3-4b model_id: Qwen/Qwen3-4B category: llm - image: docker.io/intel/inference-xeon-qwen-qwen3-4b:0.1.0 + image: docker.io/intel/inference-xeon-qwen-qwen3-4b:0.2.0 cpu: auto memory: 32Gi args: [ --enable-auto-tool-choice, --tool-call-parser, hermes ] @@ -223,7 +199,7 @@ models: - name: iim-qwen3-8b model_id: Qwen/Qwen3-8B category: llm - image: docker.io/intel/inference-xeon-qwen-qwen3-8b:0.1.0 + image: docker.io/intel/inference-xeon-qwen-qwen3-8b:0.2.0 cpu: auto memory: 48Gi args: [ --enable-auto-tool-choice, --tool-call-parser, hermes ] @@ -231,7 +207,7 @@ models: - name: iim-qwen3-30b-a3b model_id: Qwen/Qwen3-30B-A3B category: llm - image: docker.io/intel/inference-xeon-qwen-qwen3-30b-a3b:0.1.0 + image: docker.io/intel/inference-xeon-qwen-qwen3-30b-a3b:0.2.0 cpu: auto memory: 96Gi args: [ --enable-auto-tool-choice, --tool-call-parser, hermes ] @@ -239,7 +215,7 @@ models: - name: llama-3-1-8b model_id: meta-llama/Llama-3.1-8B-Instruct category: llm - image: docker.io/intel/inference-xeon-meta-llama-llama-3.1-8b-instruct:0.1.0 + image: docker.io/intel/inference-xeon-meta-llama-llama-3.1-8b-instruct:0.2.0 cpu: auto memory: 40Gi args: [ --enable-auto-tool-choice, --tool-call-parser, llama3_json ] @@ -247,7 +223,7 @@ models: - name: llama-3-2-3b model_id: meta-llama/Llama-3.2-3B-Instruct category: llm - image: docker.io/intel/inference-xeon-meta-llama-llama-3.2-3b-instruct:0.1.0 + image: docker.io/intel/inference-xeon-meta-llama-llama-3.2-3b-instruct:0.2.0 cpu: auto memory: 32Gi args: [ --enable-auto-tool-choice, --tool-call-parser, llama3_json ] @@ -255,21 +231,21 @@ models: - name: iim-granite-3-2-2b model_id: ibm-granite/granite-3.2-2b-instruct category: llm - image: docker.io/intel/inference-xeon-ibm-granite-granite-3.2-2b-instruct:0.1.0 + image: docker.io/intel/inference-xeon-ibm-granite-granite-3.2-2b-instruct:0.2.0 cpu: auto memory: 32Gi - name: iim-phi-4-reasoning model_id: microsoft/Phi-4-reasoning category: llm - image: docker.io/intel/inference-xeon-microsoft-phi-4-reasoning:0.1.0 + image: docker.io/intel/inference-xeon-microsoft-phi-4-reasoning:0.2.0 cpu: auto memory: 56Gi - name: iim-mistral-7b-v0-2 model_id: mistralai/Mistral-7B-Instruct-v0.2 category: llm - image: docker.io/intel/inference-xeon-mistralai-mistral-7b-instruct-v0.2:0.1.0 + image: docker.io/intel/inference-xeon-mistralai-mistral-7b-instruct-v0.2:0.2.0 cpu: auto memory: 40Gi @@ -277,14 +253,14 @@ models: - name: iim-gemma-4-e4b model_id: google/gemma-4-E4B-it category: vlm - image: docker.io/intel/inference-xeon-google-gemma-4-e4b-it:0.1.0 + image: docker.io/intel/inference-xeon-google-gemma-4-e4b-it:0.2.0 cpu: auto memory: 56Gi - name: iim-qwen3-vl-30b-a3b model_id: Qwen/Qwen3-VL-30B-A3B-Instruct category: vlm - image: docker.io/intel/inference-xeon-qwen-qwen3-vl-30b-a3b-instruct:0.1.0 + image: docker.io/intel/inference-xeon-qwen-qwen3-vl-30b-a3b-instruct:0.2.0 cpu: auto memory: 96Gi @@ -374,9 +350,9 @@ models: runtimes: - # IIM launcher (python -m inference_runtime.cli serve); plumbing in runtimes/iims. - iims: - image: "docker.io/intel/inference-xeon-base:0.1.0" # models without their own IIM image + # Intel Inference Microservices launcher (python -m inference_runtime.cli serve); plumbing in runtimes/intel-inference-microservices. + intel-inference-microservices: + image: "docker.io/intel/inference-xeon-base:0.2.0" # models without their own Intel Inference Microservices image categories: llm: args: [ --max-model-len, auto ] diff --git a/model_manager/runtimes/iims/values.yaml b/model_manager/runtimes/intel-inference-microservices/values.yaml similarity index 90% rename from model_manager/runtimes/iims/values.yaml rename to model_manager/runtimes/intel-inference-microservices/values.yaml index 3c36a46..67de004 100644 --- a/model_manager/runtimes/iims/values.yaml +++ b/model_manager/runtimes/intel-inference-microservices/values.yaml @@ -1,5 +1,5 @@ -# Intel Inference Microservices (IIM) vLLM runtime: low-level plumbing (CPU). -# Image and per-category defaults live in models.yaml → runtimes.iims (models.yaml wins). +# Intel Inference Microservices vLLM runtime: low-level plumbing (CPU). +# Image and per-category defaults live in models.yaml → runtimes.intel-inference-microservices (models.yaml wins). device: cpu kind: LLMInferenceService diff --git a/model_manager/runtimes/vllm/values.yaml b/model_manager/runtimes/vllm/values.yaml index 5306a9a..173171c 100644 --- a/model_manager/runtimes/vllm/values.yaml +++ b/model_manager/runtimes/vllm/values.yaml @@ -13,7 +13,7 @@ # container the runtime's own serving command: command, args, ready_path, # live_path ($model filled in), run_as_user (see runtimes/openvino), # args_env (a launcher that reads the vLLM args as JSON from that env -# var; see runtimes/iims). Unset: KServe's vLLM command +# var; see runtimes/intel-inference-microservices). Unset: KServe's vLLM command # env values ${KV_CACHE_GB} (category kv_cache_gb) and ${MODEL_ID} are filled in # autoscaling KEDA signal: query (PromQL, $namespace/$model filled in) # and scale_target, its default per-replica threshold diff --git a/model_manager/tests/test_sizing.py b/model_manager/tests/test_sizing.py index c8122bd..22d091d 100644 --- a/model_manager/tests/test_sizing.py +++ b/model_manager/tests/test_sizing.py @@ -350,7 +350,7 @@ def _sized(*argv, catalog=None): return m, s, main, {e["name"]: e.get("value") for e in main["env"]} -LLAMA = ("--hfid", "meta-llama/Llama-3.1-8B-Instruct", "--category", "llm", "--server", "vllm") # sizing is vLLM-only; iims is the default +LLAMA = ("--hfid", "meta-llama/Llama-3.1-8B-Instruct", "--category", "llm", "--server", "vllm") # sizing is vLLM-only; intel-inference-microservices is the default def _catalog(tmp_path, **entry): diff --git a/model_manager/tests/test_units.py b/model_manager/tests/test_units.py index fe9bd27..99f77bc 100644 --- a/model_manager/tests/test_units.py +++ b/model_manager/tests/test_units.py @@ -357,7 +357,7 @@ def open(self, req, timeout): RT = {"vllm": {}, "ovms": {"container": {"command": ["/ovms/bin/ovms"]}}, - "iims": {"container": {"command": ["python3"], "args_env": "INFERENCE_ENGINE_ARGS"}}, + "intel-inference-microservices": {"container": {"command": ["python3"], "args_env": "INFERENCE_ENGINE_ARGS"}}, "vllm-cuda": {}, "vllm-xpu": {"container": {"command": ["python3"], "chat_template": True}}} @@ -365,7 +365,7 @@ def open(self, req, timeout): ("llm", "vllm", "openai/m", None), ("embed", "vllm", "hosted_vllm/m", "embedding"), ("rerank", "vllm", "hosted_vllm/m", "rerank"), - ("rerank", "iims", "hosted_vllm/m", "rerank"), # the IIM launcher serves vLLM's API + ("rerank", "intel-inference-microservices", "hosted_vllm/m", "rerank"), # the Intel Inference Microservices launcher serves vLLM's API ("embed", "vllm-cuda", "hosted_vllm/m", "embedding"), ("rerank", "vllm-cuda", "hosted_vllm/m", "rerank"), ("embed", "vllm-xpu", "hosted_vllm/m", "embedding"), @@ -923,7 +923,7 @@ def test_vllm_keeps_kserves_container(monkeypatch): def test_iim_launcher_takes_vllm_args_as_json(monkeypatch): - # The IIM launcher's `serve` takes no CLI args: they reach vLLM through INFERENCE_ENGINE_ARGS. + # The Intel Inference Microservices launcher's `serve` takes no CLI args: they reach vLLM through INFERENCE_ENGINE_ARGS. m, _ = _render(monkeypatch, "iim-qwen3-4b") cat = Catalog(cli.MM_DIR / "models.yaml") doc = yaml.safe_load(renderer.manifest(m, cat, cli.parse_args(["deploy", "iim-qwen3-4b"]), {}, m.cpu, @@ -962,7 +962,7 @@ def test_iim_profile_only_where_the_launcher_runs(monkeypatch): def test_iim_on_openshift_runs_kserves_vllm_command(monkeypatch): - # OpenShift AI's template starts vLLM itself; the IIM image ships vLLM, so the launcher is skipped there. + # OpenShift AI's template starts vLLM itself; the Intel Inference Microservices image ships vLLM, so the launcher is skipped there. monkeypatch.setattr(config.platform, "is_openshift", lambda: True) monkeypatch.setattr(renderer.platform, "is_openshift", lambda: True) monkeypatch.setattr(renderer.platform, "adapt_llmisvc", lambda manifest: manifest) @@ -970,16 +970,16 @@ def test_iim_on_openshift_runs_kserves_vllm_command(monkeypatch): main = _main(doc) assert m.container == {} and m.serves_vllm and "command" not in main assert m.run_as_user == "1001" # still the image's user: the download job writes as it - assert main["image"] == "docker.io/intel/inference-xeon-qwen-qwen3-4b:0.1.0" + assert main["image"] == "docker.io/intel/inference-xeon-qwen-qwen3-4b:0.2.0" assert {"--served-model-name", "--enable-auto-tool-choice", "--max-model-len"} <= set(main["args"]) def test_server_override_uses_the_selected_runtimes_image(monkeypatch): - # An IIM model's own image belongs to iims; --server vllm takes that runtime's image and version. + # An Intel Inference Microservices model's own image belongs to intel-inference-microservices; --server vllm takes that runtime's image and version. m, doc = _render(monkeypatch, "iim-qwen3-4b", "--server", "vllm", "--server-version", "0.28.0") assert m.image == "docker.io/vllm/vllm-openai-cpu:v0.28.0" and "command" not in _main(doc) m, _ = _render(monkeypatch, "iim-qwen3-4b") - assert m.image == "docker.io/intel/inference-xeon-qwen-qwen3-4b:0.1.0" + assert m.image == "docker.io/intel/inference-xeon-qwen-qwen3-4b:0.2.0" def test_explicit_default_server_keeps_the_models_image(tmp_path): @@ -1010,9 +1010,9 @@ def test_launcher_args_env_cannot_be_overridden(monkeypatch): def test_args_json_rejects_positional_args(): - m = Model(name="m", namespace="ns", runtime="iims") + m = Model(name="m", namespace="ns", runtime="intel-inference-microservices") assert json.loads(renderer.args_json(m, ["--a", "1", "--b", "--c=x"])) == {"a": "1", "b": True, "c": "x"} - # Multi-value options (nargs="+") become a list, which the IIM launcher expands to `--flag v1 v2`. + # Multi-value options (nargs="+") become a list, which the Intel Inference Microservices launcher expands to `--flag v1 v2`. assert json.loads(renderer.args_json(m, ["--lora-modules", "a=x", "b=y", "--max-num-seqs", "8"])) == { "lora-modules": ["a=x", "b=y"], "max-num-seqs": "8"} assert json.loads(renderer.args_json(m, ["--k", "1", "--k", "2"])) == {"k": "2"} # last wins @@ -1049,7 +1049,7 @@ def test_files_belong_to_the_serving_user(monkeypatch): monkeypatch.setenv("MM_PLATFORM", "kubernetes") # platform detection elsewhere writes it to os.environ cat = Catalog(cli.MM_DIR / "models.yaml") assert config.resolve(cat, "qwen3-5-2b-ovms", cli.Options()).run_as_user == "5000" - assert config.resolve(cat, "qwen3-0-6b", cli.Options()).run_as_user == "1001" # iims: the image's user + assert config.resolve(cat, "qwen3-0-6b", cli.Options()).run_as_user == "1001" # intel-inference-microservices: the image's user assert config.resolve(cat, "qwen3-0-6b", cli.parse_args(["deploy", "qwen3-0-6b", "--server", "vllm"]) ).run_as_user == "1000" @@ -1889,3 +1889,24 @@ def test_repo_root_found_by_either_installer_name(monkeypatch, tmp_path, install monkeypatch.setattr(config, "MM_DIR", mm_dir) monkeypatch.delenv("MM_GLOBAL_CONFIG_SEARCH", raising=False) assert config._repo_roots()[0] == tmp_path / "checkout" + + +def test_legacy_iims_runtime_name_still_resolves(tmp_path, monkeypatch, capsys): + # A catalog seeded before the rename keeps working: iims maps to intel-inference-microservices. + monkeypatch.setenv("MM_PLATFORM", "kubernetes") + catalog = tmp_path / "models.yaml" + catalog.write_text("defaults: {runtime: iims}\n" + "runtimes:\n iims: {image: \"docker.io/intel/inference-xeon-base:0.2.0\"}\n" + "models:\n - {name: m, model_id: org/m, category: llm}\n") + config.runtime_alias.cache_clear() + cat = Catalog(catalog) + m = config.resolve(cat, "m", cli.Options()) + assert m.runtime == "intel-inference-microservices" + rt = cat.runtime_config(m.runtime) + assert rt["image"] == "docker.io/intel/inference-xeon-base:0.2.0" # the legacy overlay + assert rt["container"]["args_env"] == "INFERENCE_ENGINE_ARGS" # the renamed runtime's values.yaml + assert config.resolve(cat, "m", cli.parse_args(["deploy", "m", "--server", "iims"])).runtime == m.runtime + hf = config.resolve(Catalog(cli.MM_DIR / "models.yaml"), "x", + cli.parse_args(["deploy", "--hfid", "org/x", "--server", "iims"])) + assert hf.runtime == "intel-inference-microservices" # --hfid takes the alias too + assert "is now 'intel-inference-microservices'" in capsys.readouterr().err