diff --git a/config.yaml b/config.yaml index 0984050..b9e0ce6 100644 --- a/config.yaml +++ b/config.yaml @@ -1,117 +1,76 @@ --- -# ============================================================================= -# Inference Configuration — enterprise.ai-inference -# ============================================================================= -# Role defaults live in roles//defaults/main.yaml. -# Override any of them here. This file is loaded by the core installer -# via: -e @ext/enterprise.ai-inference/config.yaml -# ============================================================================= +# Intel® Inference Toolkit settings. +# `init inference` copies this file to env//config.inference.yaml; edit that copy. +# Role defaults: roles//defaults/main.yaml. global_config.yaml overrides this file. -# --- Keycloak (realm & client owned by this solution) --- +# --- API authentication --- +# Agent Toolkit's config overrides this value; people always sign in through Keycloak. +auth_type: "jwt" # jwt (Keycloak JWT) | litellm_vkey (LiteLLM virtual key) + +# --- Keycloak --- keycloak_realm: "inference" keycloak_client_id: "inference-client" -# keycloak_token_lifespan: 900 # JWT access token lifespan in seconds (default: 15 min) +# keycloak_token_lifespan: 900 # JWT lifetime in seconds -# --- AI Gateway --- -# Envoy AI Gateway sits behind the edge (eg-gateway) and dispatches to the KServe model backends. +# --- AI gateway --- ai_gateway_provider: "envoy" - -# envoy_ai_gateway_version: "1.2.1" # default: the release built for the platform Envoy Gateway envoy_ai_gateway_namespace: "envoy-ai-gateway-system" -# Inference host: inference. (or /inference in -# path mode). +# envoy_ai_gateway_version: "1.2.1" # default: matches the platform Envoy Gateway +# inference_hostname: "inference." # --- KServe --- -# kserve_version: "0.18.0" # default: 0.18.0, or 0.21.0 with envoy_gateway_upgrade: true -# kserve_deploy_mode: "Standard" # Standard | Knative +# kserve_version: "0.18.0" # 0.21.0 with envoy_gateway_upgrade: true +# kserve_deploy_mode: "Standard" # Standard | Knative # kserve_namespace: "kserve" # kserve_llmisvc_epp_image: "ghcr.io/llm-d/llm-d-router-endpoint-picker:v0.9.0" # kserve_llmisvc_tokenizer_image: "ghcr.io/llm-d/llm-d-uds-tokenizer:vllm-v0.19.1" -# --- API authentication --- -# Credential API clients send; people always sign in through Keycloak. -# auth_type: "jwt" # jwt (default, Keycloak JWT) | litellm_vkey (LiteLLM virtual key) - # --- LiteLLM --- -# litellm_enabled: true # add LiteLLM with Keycloak auth (always on with auth_type=litellm_vkey) +# litellm_enabled: true # always on with auth_type: litellm_vkey # litellm_version: "v1.105.1" # litellm_namespace: "litellm" -# litellm_hostname: "litellm.inteltoolkits.ai" # defaults to litellm. +# litellm_hostname: "litellm." # litellm_cache_enabled: true # litellm_cache_ttl: 600 -# litellm_reconcile: true # upgrade an existing release with the current settings (default: left as is) -# litellm_allow_pod_network: true # with Istio: let callers outside the mesh (e.g. agent sandboxes) reach LiteLLM -# litellm_allowed_source_cidrs: [""] # explicit source ranges instead of the pod network -# guardrails_enabled: false # content-safety guardrail; default: on with auth_type=litellm_vkey -# guardrail_model: "qwen3guard" # guard model from the catalog (docs/configuration/guardrails.md) +# litellm_reconcile: true # upgrade an existing release with these settings +# litellm_allow_pod_network: true # with Istio: let callers outside the mesh reach LiteLLM +# litellm_allowed_source_cidrs: [""] # explicit source ranges instead of the pod network + +# --- Guardrails --- +# guardrails_enabled: false # default: on with auth_type: litellm_vkey +# guardrail_model: "qwen3guard" # docs/configuration/guardrails.md # --- Langfuse --- -# langfuse_enabled: false # tracing for LiteLLM; default: on whenever LiteLLM is on +# langfuse_enabled: false # default: on whenever LiteLLM is on # langfuse_namespace: "langfuse" -# langfuse_hostname: "langfuse.inteltoolkits.ai" # defaults to langfuse. -# langfuse_admin_email: "admin@inteltoolkits.ai" # defaults to admin@ -# langfuse_admin_password: set via LANGFUSE_ADMIN_PASSWORD env var - -# --- CPU Policy --- -# Single switch controlling all CPU-pinning infrastructure. -# All dependent settings (NRI install, kubelet flags, model annotations) are -# auto-derived from this value. -# nri-balloons (default) NRI balloons resource policy — NUMA-aware pinning -# kubelet-static kubelet static CPU manager (Guaranteed QoS pinning) -# best-effort no pinning, standard scheduler -# -# This must match the value the cluster was installed with: it decides both how -# kubelet is configured (solutions repo) and how model manifests are rendered -# (this repo). Changing it on an existing cluster requires re-running -# `./toolkit_manager.sh install kubernetes` so kubelet is reconfigured. -kubernetes_cpu_policy: "nri-balloons" - -# NRI Balloons tuning (only when kubernetes_cpu_policy=nri-balloons): -# nri_reserved_cpu_list: "" # Linux cpuset for system CPUs (auto-sized if empty) -# nri_deployment_profile: "standard" # minimal(8) | standard(12) | observability(16) | full(20) - -# kubelet-static tuning (only when kubernetes_cpu_policy=kubelet-static): -# Model pods are rendered as Guaranteed QoS (integer cpu, requests == limits) so -# kubelet's static CPU manager grants them exclusive whole cores. With -# full-pcpus-only enabled (the solutions default) a pod's cpu request must be a -# multiple of the SMT width, or kubelet rejects it with SMTAlignmentError; -# model-manager rounds cpu up to satisfy this. On an SMT-disabled cluster set: -# mm_kubelet_threads_per_core: 1 # exported as MM_KUBELET_THREADS_PER_CORE - -# --- LLM Services --- +# langfuse_hostname: "langfuse." +# langfuse_admin_email: "admin@" +# Admin password: export LANGFUSE_ADMIN_PASSWORD before install. + +# --- CPU pinning --- +# Must match the cluster: changing it needs `./toolkit_manager.sh install kubernetes` again. +kubernetes_cpu_policy: "nri-balloons" # nri-balloons | kubelet-static | best-effort +# nri_reserved_cpu_list: "" # nri-balloons: system cpuset, auto-sized if empty +# nri_deployment_profile: "standard" # nri-balloons: minimal | standard | observability | full +# mm_kubelet_threads_per_core: 1 # kubelet-static on an SMT-disabled cluster + +# --- Models --- # llm_services_namespace: "llm-inference" +llm_services_deploy_models: false # true: deploy catalog models marked autodeploy +# llm_services_autodeploy_models: [] # always deployed; set by layers such as Agent Toolkit +# model_deploy_flags: "--wait-timeout 1800" # extra `model-manager deploy` options -# Deploy models during installation (true/false) -# Set to false to install infrastructure only without deploying any models -# Can be overridden with: ./toolkit_manager.sh install inference --skip-models -llm_services_deploy_models: false - -# Catalog models deployed on install whatever llm_services_deploy_models says — -# set by a solution layer that needs a default model (the agent toolkit sets one). -# llm_services_autodeploy_models: [] - -# Optional: Customize model deployment behavior -# model_deploy_flags: "" # Additional flags for deploy-default-models.sh -# model_deploy_flags: "--skip-download" # Fast for testing (assume weights on PVC) -# model_deploy_flags: "--no-wait" # Don't wait for models to become Ready - -# --- vLLM Semantic Router (optional, off by default) --- -# Classifier-based intelligent routing: one endpoint auto-selects the best-fit -# model per request. Opt-in and additive — direct model calls are unaffected. -# Guide: docs/configuration/semantic-router.md +# --- vLLM Semantic Router (off by default) --- +# docs/configuration/semantic-router.md # vllm_sr_enabled: true -# vllm_sr_route_models: # models the router may pick from (default: discovered) -# - qwen3-4b -# - qwen3-coder-30b -# vllm_sr_litellm_model_name: "semantic-router" # client-facing name (auth_type: litellm_vkey) -# vllm_sr_config_override: null # advanced: full canonical routing config -# vllm_sr_dashboard_enabled: true # dashboard on vllm-sr. +# vllm_sr_route_models: [qwen3-4b, qwen3-coder-30b] # default: discovered +# vllm_sr_litellm_model_name: "semantic-router" # with auth_type: litellm_vkey +# vllm_sr_dashboard_enabled: true # on vllm-sr. +# vllm_sr_config_override: null # advanced: full routing config -# --- Hybrid Router (optional, off by default; needs LiteLLM) --- -# Complexity-tier + multi-armed-bandit routing inside LiteLLM. Clients call the -# hybrid-router model. Router code: roles/litellm/files/router/ -# Guide: docs/configuration/hybrid-router.md +# --- Hybrid Router (off by default; needs LiteLLM) --- +# docs/configuration/hybrid-router.md # hybrid_router_enabled: true -# hybrid_router_tier_candidates: # deployed models per complexity tier -# SIMPLE: [qwen3-4b] +# hybrid_router_tier_candidates: +# SIMPLE: [qwen3-4b] # COMPLEX: [qwen3-coder-30b] diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index a507ac7..3d01494 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -100,8 +100,8 @@ keycloak_client_id: "inference-client" `auth_type` only selects the credential API clients send: ```yaml -# auth_type: "jwt" # jwt (default): Keycloak JWT on inference. -# # litellm_vkey: LiteLLM virtual key on litellm. +auth_type: "jwt" # jwt (default): Keycloak JWT on inference. + # litellm_vkey: LiteLLM virtual key on litellm. ``` ## KServe