Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Edit the YAML under `env/<name>/` 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 |
Expand Down
4 changes: 2 additions & 2 deletions docs/configuration/catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: { ... }
Expand All @@ -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` |

Expand Down
26 changes: 12 additions & 14 deletions docs/configuration/runtimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ per model in the catalog, or at deploy time with `--server <name>` (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 |
Expand Down Expand Up @@ -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 } }
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/<name>/` |

Expand Down
2 changes: 1 addition & 1 deletion docs/faq-and-troubleshooting/frequently-asked-questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The catalog in `env/<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).

Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/deploy-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ apply. Set `MM_FORCE_REDEPLOY=1` to force a full re-apply regardless.
| `--hfid <hf/repo>` | Deploy any Hugging Face model directly, without a catalog entry (`--id` still works but is deprecated) |
| `--name <name>` | Set the name to serve under (use with `--hfid`) |
| `--as <name>` | Deploy a catalog model under a different name — run several variants at once |
| `--server <name>` | Which engine serves the model: `iims` (default), `vllm`, `openvino`, `vllm-cuda` or `vllm-xpu` (alias: `--runtime`) |
| `--server <name>` | Which engine serves the model: `intel-inference-microservices` (default), `vllm`, `openvino`, `vllm-cuda` or `vllm-xpu` (alias: `--runtime`) |
| `--server-version <v>` | 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) |
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/meet.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ works against it, and no prompt or answer leaves your cluster.
- **One command per model.** `./model-manager deploy <name>` 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
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
7 changes: 4 additions & 3 deletions model_manager/core/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -824,13 +824,14 @@ def _catalog_server(catalog: Catalog, e: dict) -> tuple[str, str]:
"""The server and version `deploy <name>` 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
Expand Down
30 changes: 23 additions & 7 deletions model_manager/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])?")
Expand Down Expand Up @@ -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"))
Expand Down Expand Up @@ -182,14 +182,29 @@ 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 {}
abort(f"Runtime '{name}' not found under 'runtimes:' in {self.path} or at {values}")
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():
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Comment thread
Mushtaq-BGA marked this conversation as resolved.
Resolved
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:
Expand Down
Loading