Model Catalog (models.yaml)
What is it?
models.yaml is the one file you edit to control what runs and how. It is the single
source of truth behind every model-manager command — you rarely touch anything else.
The installer seeds env/<env>/models.yaml from this repo's
model_manager/models.yaml. Edit the environment copy to add or remove models; the
repo copy is the template for new environments.
It has three parts:
defaults: # 1. Fallbacks applied to every model (namespace, engine, replicas)
storage: # Where downloaded weights live
network: # Proxy / connectivity settings for pulling from Hugging Face
models: # 2. The models you can deploy — one entry per model
- name: qwen3-0-6b
model_id: Qwen/Qwen3-0.6B # the Hugging Face repo to pull
category: llm # workload type → sensible CPU/memory/flags
servers: # which engine + versions this model may use
vllm: { versions: ["0.24.0", "0.19.1"], default: "0.24.0" }
runtimes: # 3. The engines themselves — images, versions, shared settings
vllm: { ... }
openvino: { ... }
What that gives you:
| Capability | What it means for you |
|---|---|
| One catalog | List a model once; deploy it by name with ./model-manager deploy <name> |
| Sensible defaults | Only name and model_id are required — category, CPU, memory, and engine flags are filled in |
| Deliberate versioning | Declare which engine versions a model may use; an untested version is refused, not silently deployed |
| Central, reusable settings | Engine images and shared options live in one runtimes: block, reused across every model |
| Override anywhere | Per-model args/env, or one-off --cpu/--arg/--env at deploy time — the CLI always wins |
| Auto-deploy | Flag a model autodeploy: true to bring it up during install |
Global sections
defaults
Applied to every model that doesn't override them.
| Field | Default | Meaning |
|---|---|---|
namespace | llm-inference | Target namespace for deployments |
runtime | vllm | Engine used when a model omits one |
replicas | 1 | Replica count |
require_amx | true | Only schedule model pods on nodes with Intel® AMX. Relies on the NFD labels; NFD comes from the core platform layer's node_feature_discovery |
storage
| Field | Default | Meaning |
|---|---|---|
pvc_name | model-store | The shared PVC holding downloaded weights. Must be ReadWriteMany on a multi-node cluster |
Model-store size
Every deployed model's weights share this PVC, so size it for the models you run together.
It is 200Gi by default; set llm_services_model_store_size in config.inference.yaml
and re-run install inference.
| Model | Weights on the PVC |
|---|---|
| Llama-3.1-8B-Instruct | 16 GB |
| Qwen2.5-Coder-14B-Instruct | 30 GB |
| gemma-4-26B-A4B-it | 52 GB |
| Qwen3-30B-A3B / Qwen3-Coder-30B-A3B | 61 GB |
| DeepSeek-R1-Distill-Qwen-32B | 66 GB |
| Qwen3.6-35B-A3B | 72 GB |
| Llama-3.1-70B-Instruct | 141 GB |
- Downloads skip a repository's
original/folder (the publisher's own copy of the weights, which vLLM does not load). For Meta's Llama models that halves the download. - Before a download, the Job checks the free space on the model store and fails at once, naming the model, the space it needs and what is free, when it does not fit.
- An existing PVC keeps its size unless its StorageClass allows volume expansion
(
allowVolumeExpansion: true); a size is never reduced. Otherwise the install prints that the new size applies to a new PVC only.
network
Used by the download Job when pulling from Hugging Face. Empty values inherit from the installer's environment.
| Field | Meaning |
|---|---|
http_proxy / https_proxy | Proxy for weight downloads, e.g. http://proxy:911 |
no_proxy | Comma-separated bypass list |
connectivity_check | URL probed for reachability before a download starts (default https://huggingface.co) |
Per-model fields
Only name and model_id are required.
models:
- name: qwen3-0-6b
model_id: Qwen/Qwen3-0.6B
category: llm
cpu: 8
memory: 16Gi
| Field | Meaning |
|---|---|
name | Deploy name, and the model id used in API requests |
model_id | The Hugging Face repo to pull weights from |
category | Workload class — llm, embed, rerank, or vlm. Drives default args, CPU, and memory |
cpu / memory | Resource requests (default: from the category). cpu: auto sizes CPU to a NUMA node — see below |
replicas | Replica count (default: 1) |
autoscaling | {min_replicas, max_replicas, scale_target}: autoscale with KEDA between the two counts (default min: 1), scaling up when the load per replica exceeds scale_target: waiting requests for vLLM (default: 2), in-flight requests for OpenVINO (default: 4). Replaces replicas. Needs keda_enabled: true and KServe 0.21 (envoy_gateway_upgrade: true). The signal and its default are set per runtime (autoscaling in runtimes/<name>/values.yaml) |
tp | Tensor parallelism — split the model across N CPU sockets |
namespace | Target namespace (default: llm-inference) |
node | Pin to a specific node |
routing | epp or direct |
image | Override the runtime image entirely |
args | Extra engine args, appended after the category and version args |
env | Extra env vars, merged over the runtime env |
autodeploy | true → bring the model up during install. See below |
chat_template | Inline Jinja or an absolute path → vLLM --chat-template. See below |
chat_template_file | A Jinja file whose content is used as chat_template, so models share one template. See below |
draft_model_id | Hugging Face repo of a speculative-decoding draft model (vLLM). See below |
Plus the server binding, described next.
Choose which server and version a model may use
Two equivalent forms, depending on how much control you want:
# Preferred: declare the versions this model is known to work with (an allow-list)
- name: qwen3-0-6b
model_id: Qwen/Qwen3-0.6B
category: llm
servers:
vllm: { versions: ["0.24.0", "0.19.1"], default: "0.24.0" }
default_server: vllm
# Shorthand: one server, optionally pinned to a version — no allow-list
- name: llama3-8b-awq
model_id: casperhansen/llama-3-8b-instruct-awq
category: llm
runtime: vllm
server_version: "0.24.0"
With the servers: form, a deploy that asks for a version not in the list is
rejected, so nobody accidentally ships an untested combination. The shorthand form
places no such restriction.
Version selection precedence, highest first:
--server-version > the model's server_version: > the runtime's default_version
Select at deploy time with --server <engine> --server-version <v>, and run variants
side by side with --as <alt-name>. See Deploy a Model.
The engines themselves — images, available versions, and shared settings — are defined
once under runtimes:. See Runtimes.
CPU auto
cpu: auto sizes a model's CPU to the node it lands on instead of a fixed number:
- name: qwen2-5-coder-14b
model_id: Qwen/Qwen2.5-Coder-14B-Instruct
cpu: auto
| CPU policy | cpu: auto becomes |
|---|---|
nri-balloons | The free physical cores of one NUMA node per TP rank, minus the reserved CPUs, on the smallest schedulable node — so the pod fits wherever it is placed |
kubelet-static, best-effort | The category's default cpu |
- A model that is already deployed keeps its current CPU, so re-running a deploy or the install leaves it unchanged.
--cpu Noverrides it for one deploy, and--cpu autoasks for the sizing from the command line.--dry-runshows the number it resolves to.- Under
nri-balloonsit reads thenri.intel.com/max-tpnode labels the Toolkit Manager repo's NRI balloons role sets. When fewer CPUs than the category default are free, the deploy stops withcpu: auto — only N free CPUs per NUMA node …: undeploy a model, add a node, or pass--cpu.
See CPU Pinning & NUMA.
Chat templates
chat_template accepts either inline Jinja or an absolute path.
Inline Jinja (use a | block scalar for multi-line) is stored in a
<model>-chat-template ConfigMap and mounted read-only at /etc/chat-template. It is
deliberately not inlined into the LLMInferenceService, because the KServe
controller runs the spec through Go text/template and rejects {{ ... }}. The
ConfigMap is created on deploy and removed on undeploy.
An absolute path (leading /) is passed through untouched and must already exist in
the pod — for example a file you placed on the model PVC, visible at
/mnt/models/<file>. vLLM exits if it is missing, so prefer inline Jinja unless the
file is genuinely external.
Note
It must be a single string. If a Hugging Face repo publishes a list of named
templates, copy just the one you want (usually default). To preserve a literal CR,
use a double-quoted scalar with \r escapes — a | block scalar cannot carry CR,
because YAML normalizes line breaks.
A shared file — chat_template_file names a Jinja file whose content is used exactly
like inline Jinja (the same ConfigMap and --chat-template), so several models share one
template instead of each carrying a copy:
- name: qwen2-5-coder-14b
model_id: Qwen/Qwen2.5-Coder-14B-Instruct
chat_template_file: tool_chat_template_qwen3coder.jinja
- A relative name is looked up in
model_manager/chat-templates/, or in the directoryMM_CHAT_TEMPLATESpoints at — never next to the catalog, so a seededenv/<env>/models.yamlworks unchanged. - An absolute path is read on the host running
model-manager, not in the pod. - Setting both
chat_templateandchat_template_file, or naming a file that does not exist, stops the deploy before anything changes on the cluster.
Bundled templates:
| File | Used for |
|---|---|
tool_chat_template_qwen3coder.jinja | Qwen2.5-Coder, Qwen3-Coder and Qwen3-30B-A3B tool calling |
tool_chat_template_gemma4.jinja | Gemma 4 tool calling (gemma-4-26b) |
tool_chat_template_hermes.jinja | Hermes-style tool calling |
Speculative decoding
draft_model_id names a small draft model for vLLM speculative decoding. The download
Job fetches it into the model's own directory on the model store, so the pod — which
mounts only that directory and serves offline — finds it at /mnt/models/draft.
Point vLLM at that path in args:
- name: llama-3-1-8b-specdec
model_id: meta-llama/Llama-3.1-8B-Instruct
draft_model_id: meta-llama/Llama-3.2-1B-Instruct
args: [ "--speculative-config.method", "draft_model",
"--speculative-config.model", "/mnt/models/draft",
"--speculative-config.num_speculative_tokens", "5" ]
- The draft has its own download marker: adding one to a model whose weights are already on disk fetches only the draft.
- It downloads with the same
HF_TOKEN. A gated draft — such asmeta-llama/Llama-3.2-1B-Instruct— without a token stops the deploy before the Job starts. - Write JSON-valued vLLM flags in dot notation (
--flag.key value): KServe evaluates the arg string, which strips the quotes from inline JSON.
Auto-deploy on install
By default no models are deployed during install — Intel® Inference Toolkit only stands up serving infrastructure. Bringing a model up automatically takes two settings:
Flag the model in the catalog:
yaml- name: qwen3-0-6b model_id: Qwen/Qwen3-0.6B autodeploy: trueEnable the auto-deploy phase in this repo's
config.yaml, which ships disabled:yamlllm_services_deploy_models: true
Important
Both are required. config.yaml sets llm_services_deploy_models: false, which gates
the entire phase — with it off, autodeploy: true has no effect. This is deliberate:
a full install never serves the whole catalog, which may include large models.
Once enabled, only models flagged autodeploy: true are deployed.
Note
Two kinds of model deploy without either setting: models another toolkit requests by
name in llm_services_autodeploy_models (Intel® Agent Toolkit sets its default model
there), and the guardrail's guard model (guardrail_model) whenever the guardrail is
on. The guard model deploys first, so models with cpu: auto size themselves around it.
They come from the same catalog. The environment copy is seeded once, at init, so an
environment created before a catalog update lacks the new entries: a requested model
missing there is taken from model_manager/models.yaml (the rest of
env/<env>/models.yaml still applies) and the install prints a notice. To customise
such a model, copy its entry into env/<env>/models.yaml. See
Configuration.
Auto-deploy is fault-tolerant. If a flagged model fails — a gated model with no
HF_TOKEN, a transient download error — the install does not abort. The serving
infrastructure is already up, the failure is reported in a summary, and the model can be
deployed manually afterward. Set model_deploy_strict: true to make any auto-deploy
failure fatal instead.
To skip the deploy phase for a single run without editing config, use
./es_auto_installer.sh install inference --skip-models (or SKIP_MODEL_DEPLOYMENT=true).
Extra flags can be appended to every auto-deploy invocation via model_deploy_flags,
e.g. "--wait-timeout 1800" for large models.