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 CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Thank you for helping improve Intel® Inference Toolkit. This repository is installed and
operated by [Toolkit Manager](https://github.com/intel/toolkit-manager), so test a change
the way users run it: from a Toolkit Manager checkout whose `ext/enterprise.ai-inference/`
the way users run it: from a Toolkit Manager checkout whose `ext/inference-toolkit/`
holds your branch.

Before you open a pull request:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ When the command returns it prints the inference endpoint and a ready-to-run `cu
With the default `auth_type: jwt`, requests need a sign-in token. This script gets one for you:

```bash
source ./ext/enterprise.ai-inference/model_manager/scripts/get-keycloak-token.sh
source ./ext/inference-toolkit/model_manager/scripts/get-keycloak-token.sh
# Exports: TOKEN, GATEWAY_IP, GATEWAY_DOMAIN, GATEWAY_URL
```

Expand Down
2 changes: 1 addition & 1 deletion components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2025-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# =============================================================================
# Ext Component Registry — enterprise.ai-inference
# Ext Component Registry — inference-toolkit
# =============================================================================
# Auto-discovered and merged into the core registry at preflight
# (playbooks/includes/preflight.yaml). Rendered via lookup('template'), so the
Expand Down
2 changes: 1 addition & 1 deletion docs/deployment/openshift.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ only when the `*.apps` hostnames don't resolve from your machine.
# The token script reads the client secret from the cluster and finds the router
# itself (MM_GATEWAY_IP overrides it). It exports TOKEN and GATEWAY_IP, which is
# empty when the *.apps DNS is all there is: then --resolve is left out.
source ./ext/enterprise.ai-inference/model_manager/scripts/get-keycloak-token.sh
source ./ext/inference-toolkit/model_manager/scripts/get-keycloak-token.sh

H=inference.<domain>
curl -s --noproxy '*' --cacert env/ocp/logs/toolkit-manager-ca.crt \
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 @@ -9,7 +9,7 @@ Short answers with links to the detail. Something failing? See

### Do I install this repository myself?

No. Toolkit Manager clones it into `ext/enterprise.ai-inference/` with
No. Toolkit Manager clones it into `ext/inference-toolkit/` with
`./toolkit_manager.sh init inference` and installs it with `install inference`. See
[Quickstart](../getting-started/quickstart.md).

Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/accessing-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Get a token. The helper script finds the gateway, reads the Keycloak client secr
the cluster, and asks Keycloak for a JWT:

```bash
source ./ext/enterprise.ai-inference/model_manager/scripts/get-keycloak-token.sh
source ./ext/inference-toolkit/model_manager/scripts/get-keycloak-token.sh
# Exports: TOKEN, GATEWAY_IP, GATEWAY_DOMAIN, GATEWAY_URL (includes /inference in path mode)
```

Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started/deploy-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ serving objects are standard Kubernetes CRDs.

> [!IMPORTANT]
> Run it from the **Toolkit Manager folder** as `./model-manager`. That wrapper runs
> `ext/enterprise.ai-inference/model_manager/model-manager` with your environment's
> `ext/inference-toolkit/model_manager/model-manager` with your environment's
> settings: the cluster (`env/<env>/kubeconfig.yaml`), `global_config.yaml`,
> `config.inference.yaml` and the catalog `models.yaml`. It works on a **running cluster**
> that Toolkit Manager installed; see [Quick Start](../../README.md#quick-start).
Expand All @@ -24,7 +24,7 @@ is picked up automatically (as is any active virtualenv); otherwise install the
for the system `python3`:

```bash
pip install -r ext/enterprise.ai-inference/model_manager/requirements.txt
pip install -r ext/inference-toolkit/model_manager/requirements.txt
```

## deploy / undeploy
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ To deploy models during the install instead, see
With `auth_type: jwt`:

```bash
source ./ext/enterprise.ai-inference/model_manager/scripts/get-keycloak-token.sh # sets TOKEN, GATEWAY_IP, GATEWAY_DOMAIN, GATEWAY_URL
source ./ext/inference-toolkit/model_manager/scripts/get-keycloak-token.sh # sets TOKEN, GATEWAY_IP, GATEWAY_DOMAIN, GATEWAY_URL
curl -s --noproxy '*' --cacert env/local/logs/toolkit-manager-ca.crt \
--resolve "$GATEWAY_DOMAIN:443:$GATEWAY_IP" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Step-by-step packet detail, including a verified network trace, is in

## Integration with Toolkit Manager

Toolkit Manager clones this repo to `ext/enterprise.ai-inference/` when you run
Toolkit Manager clones this repo to `ext/inference-toolkit/` when you run
`./toolkit_manager.sh init inference` — the repo and branch are set in the Toolkit Manager
repo's `configs/repos/repos.inference.yaml` — and installs and operates it:

Expand All @@ -89,7 +89,7 @@ toolkit-manager/
├── env/<env>/config.inference.yaml # inference settings (auth_type, …), seeded from config.yaml
├── env/<env>/models.yaml # per-environment model catalog (seeded by `init`)
└── ext/
└── enterprise.ai-inference/ # ← this repo
└── inference-toolkit/ # ← this repo
├── components.yaml # component registry, merged into the core registry
├── config.yaml # seed for env/<env>/config.inference.yaml
├── roles/ # discovered via roles_path
Expand Down
4 changes: 3 additions & 1 deletion model_manager/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,9 @@ def global_config() -> Path | None:


def inference_config() -> Path | None:
return find_config("MM_INFERENCE_CONFIG", "env/local/config.inference.yaml", "ext/enterprise.ai-inference/config.yaml")
# This repo's own config.yaml, wherever ext/ cloned it.
shipped = MM_DIR.parent / "config.yaml"
return find_config("MM_INFERENCE_CONFIG", "env/local/config.inference.yaml") or (shipped if shipped.is_file() else None)
Comment on lines +558 to +560


@cache
Expand Down
24 changes: 23 additions & 1 deletion model_manager/tests/test_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ def test_space_check_runs_only_before_a_download_and_counts_reusable_bytes(tmp_p
["toolkit_manager.sh", "es_auto_installer.sh"]])
def test_repo_root_found_by_either_installer_name(monkeypatch, tmp_path, installers):
"""A checkout is recognised by toolkit_manager.sh, its former name es_auto_installer.sh, or both."""
mm_dir = tmp_path / "checkout/ext/enterprise.ai-inference/model_manager"
mm_dir = tmp_path / "checkout/ext/inference-toolkit/model_manager"
mm_dir.mkdir(parents=True)
for installer in installers:
(tmp_path / "checkout" / installer).write_text("#!/bin/bash\n")
Expand All @@ -1891,6 +1891,28 @@ def test_repo_root_found_by_either_installer_name(monkeypatch, tmp_path, install
assert config._repo_roots()[0] == tmp_path / "checkout"


@pytest.mark.parametrize("shipped, env_copy, want", [
(True, False, "ext/any-name/config.yaml"),
(True, True, "env/local/config.inference.yaml"), # the environment's copy wins
(False, False, None),
])
def test_inference_config_falls_back_to_shipped(monkeypatch, tmp_path, shipped, env_copy, want):
"""Without MM_INFERENCE_CONFIG, the env copy wins, else this repo's config.yaml, whatever ext/ named it."""
root = tmp_path / "checkout"
mm_dir = root / "ext/any-name/model_manager"
mm_dir.mkdir(parents=True)
(root / "toolkit_manager.sh").write_text("#!/bin/bash\n")
if shipped:
(mm_dir.parent / "config.yaml").write_text("auth_type: jwt\n")
if env_copy:
(root / "env/local").mkdir(parents=True)
(root / "env/local/config.inference.yaml").write_text("auth_type: jwt\n")
monkeypatch.setattr(config, "MM_DIR", mm_dir)
monkeypatch.delenv("MM_INFERENCE_CONFIG", raising=False)
monkeypatch.delenv("MM_GLOBAL_CONFIG_SEARCH", raising=False)
assert config.inference_config() == (root / want if want else None)


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")
Expand Down
2 changes: 1 addition & 1 deletion roles/langfuse/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ langfuse_clickhouse_operator_chart: "oci://ghcr.io/clickhouse/clickhouse-operato
langfuse_clickhouse_operator_version: "0.0.8"
langfuse_clickhouse_operator_namespace: "clickhouse-operator-system"
# Publish Langfuse on the platform gateway.
# Foreign var (canonical owner: enterprise-ai-solutions gateway component flag;
# Foreign var (canonical owner: toolkit-manager gateway component flag;
# envoy_gateway_enabled is its alias).
langfuse_gateway_publish: "{{ gateway_enabled | default(envoy_gateway_enabled | default(true)) | bool }}"
langfuse_namespace: "langfuse"
Expand Down
4 changes: 2 additions & 2 deletions roles/litellm/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ litellm_valkey_tag: "9.1.2-alpine" # valkey/valkey (official upstre
litellm_reconcile: false

# Publish LiteLLM on the platform gateway.
# Foreign var (canonical owner: enterprise-ai-solutions gateway component flag;
# Foreign var (canonical owner: toolkit-manager gateway component flag;
# envoy_gateway_enabled is its alias).
litellm_gateway_publish: "{{ gateway_enabled | default(envoy_gateway_enabled | default(true)) | bool }}"
litellm_hostname: "litellm.{{ base_domain_name | default('inteltoolkits.ai') }}"
Expand Down Expand Up @@ -98,7 +98,7 @@ litellm_rate_limit_client_header: "x-forwarded-for"
# Request timeout on the API route. A route-level policy (the rate limit above)
# replaces the gateway-wide default timeout, so the route states its own, or
# Envoy's 15s default cuts long generations off (504).
# Foreign var (canonical owner: enterprise-ai-solutions gateway role).
# Foreign var (canonical owner: toolkit-manager gateway role).
litellm_route_timeout: "{{ gateway_request_timeout | default('600s') }}"

# PostgreSQL — stores virtual keys, spend logs, team/org data
Expand Down
2 changes: 1 addition & 1 deletion roles/llm_services/tasks/deploy_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
msg: >-
model-manager CLI or model catalog not found
({{ _mm_dir }}/model-manager, {{ _mm_catalog }}).
Check the enterprise.ai-inference extension is present.
Check the inference-toolkit extension is present.
when: _mm_files.results | rejectattr('stat.exists') | list | length > 0

- name: Wait for KServe to be ready
Expand Down
4 changes: 0 additions & 4 deletions roles/llm_services/tasks/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,6 @@

# -- Optional: Deploy default models --

- name: "llm_services | Set inference extension directory"
set_fact:
inference_extension_dir: "{{ playbook_dir }}/../ext/enterprise.ai-inference"

# Read by the Headlamp Models page. Allow-listed fields only, as JSON. access.json
# is the public API every model is served on (picked by "model" in the body) and
# its credential type, from the same values model-manager prints after a deploy.
Expand Down
4 changes: 3 additions & 1 deletion roles/llm_services/vars/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ __llm_mm_path_mode: "{{ (routing_mode | default('subdomain')) == 'path' }}"
# both routing modes, so path mode does not apply to the endpoint hints there.
__llm_mm_openshift: "{{ cluster_distribution | default('kubernetes') == 'openshift' }}"
# Catalogue: the environment's copy (env/<env>/models.yaml) first, as deploy_models.yaml.
__llm_mm_dir: "{{ inference_extension_dir | default(playbook_dir ~ '/../ext/enterprise.ai-inference') }}/model_manager"
# This repo's root, wherever ext/ cloned it.
inference_extension_dir: "{{ role_path }}/../.."
__llm_mm_dir: "{{ inference_extension_dir }}/model_manager"
__llm_mm_catalog: >-
{{ (env_dir ~ '/models.yaml') if (env_dir is defined and (env_dir ~ '/models.yaml') is exists)
else (__llm_mm_dir ~ '/models.yaml') }}
Expand Down
2 changes: 1 addition & 1 deletion roles/vllm_sr/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ vllm_sr_dashboard_oidc_client_id: "vllm-sr"
# Groups the gateway admits; empty means the platform admin group.
vllm_sr_dashboard_allowed_groups: []
# Publish the dashboard on the platform gateway.
# Foreign var (canonical owner: enterprise-ai-solutions gateway component flag;
# Foreign var (canonical owner: toolkit-manager gateway component flag;
# envoy_gateway_enabled is its alias).
vllm_sr_gateway_publish: "{{ gateway_enabled | default(envoy_gateway_enabled | default(true)) | bool }}"
vllm_sr_dashboard_hostname: "vllm-sr.{{ base_domain_name | default('inteltoolkits.ai') }}"
Expand Down