diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f828fb1e..57b9a95f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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: diff --git a/README.md b/README.md index eb0e54c9..32ab373a 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/components.yaml b/components.yaml index b98b578e..0a48d5bf 100644 --- a/components.yaml +++ b/components.yaml @@ -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 diff --git a/docs/deployment/openshift.md b/docs/deployment/openshift.md index c2f064d0..61f02476 100644 --- a/docs/deployment/openshift.md +++ b/docs/deployment/openshift.md @@ -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. curl -s --noproxy '*' --cacert env/ocp/logs/toolkit-manager-ca.crt \ diff --git a/docs/faq-and-troubleshooting/frequently-asked-questions.md b/docs/faq-and-troubleshooting/frequently-asked-questions.md index b860b8fe..7e750b8e 100644 --- a/docs/faq-and-troubleshooting/frequently-asked-questions.md +++ b/docs/faq-and-troubleshooting/frequently-asked-questions.md @@ -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). diff --git a/docs/getting-started/accessing-models.md b/docs/getting-started/accessing-models.md index 09beaf3c..c0426392 100644 --- a/docs/getting-started/accessing-models.md +++ b/docs/getting-started/accessing-models.md @@ -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) ``` diff --git a/docs/getting-started/deploy-models.md b/docs/getting-started/deploy-models.md index c56e0e05..312c93c6 100644 --- a/docs/getting-started/deploy-models.md +++ b/docs/getting-started/deploy-models.md @@ -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//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). @@ -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 diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index 1fcf749d..ade6054d 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -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" \ diff --git a/docs/reference/architecture.md b/docs/reference/architecture.md index c8374987..27c0d180 100644 --- a/docs/reference/architecture.md +++ b/docs/reference/architecture.md @@ -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: @@ -89,7 +89,7 @@ toolkit-manager/ ├── env//config.inference.yaml # inference settings (auth_type, …), seeded from config.yaml ├── 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//config.inference.yaml ├── roles/ # discovered via roles_path diff --git a/model_manager/core/config.py b/model_manager/core/config.py index 89478338..76e74532 100644 --- a/model_manager/core/config.py +++ b/model_manager/core/config.py @@ -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) @cache diff --git a/model_manager/tests/test_units.py b/model_manager/tests/test_units.py index 99f77bc0..5da7f4dc 100644 --- a/model_manager/tests/test_units.py +++ b/model_manager/tests/test_units.py @@ -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") @@ -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") diff --git a/roles/langfuse/defaults/main.yaml b/roles/langfuse/defaults/main.yaml index 2171b141..c82f7f56 100644 --- a/roles/langfuse/defaults/main.yaml +++ b/roles/langfuse/defaults/main.yaml @@ -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" diff --git a/roles/litellm/defaults/main.yaml b/roles/litellm/defaults/main.yaml index 6e0a21e5..6656861b 100644 --- a/roles/litellm/defaults/main.yaml +++ b/roles/litellm/defaults/main.yaml @@ -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') }}" @@ -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 diff --git a/roles/llm_services/tasks/deploy_models.yaml b/roles/llm_services/tasks/deploy_models.yaml index 361aa8e2..7b34cf67 100644 --- a/roles/llm_services/tasks/deploy_models.yaml +++ b/roles/llm_services/tasks/deploy_models.yaml @@ -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 diff --git a/roles/llm_services/tasks/install.yaml b/roles/llm_services/tasks/install.yaml index fede1e13..5992a95f 100644 --- a/roles/llm_services/tasks/install.yaml +++ b/roles/llm_services/tasks/install.yaml @@ -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. diff --git a/roles/llm_services/vars/main.yaml b/roles/llm_services/vars/main.yaml index 4371a32f..671ab1a7 100644 --- a/roles/llm_services/vars/main.yaml +++ b/roles/llm_services/vars/main.yaml @@ -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//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') }} diff --git a/roles/vllm_sr/defaults/main.yaml b/roles/vllm_sr/defaults/main.yaml index 7135412a..69ed039e 100644 --- a/roles/vllm_sr/defaults/main.yaml +++ b/roles/vllm_sr/defaults/main.yaml @@ -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') }}"