@@ -36,11 +36,14 @@ BATCH_INTERNAL_GATEWAY_NAME="${BATCH_INTERNAL_GATEWAY_NAME:-batch-internal-gatew
3636BATCH_INTERNAL_GATEWAY_NAMESPACE=" ${BATCH_INTERNAL_GATEWAY_NAMESPACE:- ${GATEWAY_NAMESPACE} } "
3737GATEWAY_LOCAL_PORT=" ${GATEWAY_LOCAL_PORT:- 8080} "
3838
39- LLMD_VERSION=" ${LLMD_VERSION:- v0.6 .0} "
39+ LLMD_VERSION=" ${LLMD_VERSION:- v0.7 .0} "
4040LLMD_GIT_DIR=" /tmp/llm-d-${LLMD_VERSION} "
4141LLMD_RELEASE_POSTFIX=" ${LLMD_RELEASE_POSTFIX:- llmd} "
4242
43- # Model name matches the simulated-accelerators helmfile default ("random")
43+ GAIE_CHART_VERSION=" ${GAIE_CHART_VERSION:- v1.5.0} "
44+ MODELSERVICE_CHART_VERSION=" ${MODELSERVICE_CHART_VERSION:- v0.4.12} "
45+
46+ # Model name matches the simulated model default ("random")
4447MODEL_NAME=" ${MODEL_NAME:- random} "
4548LLMD_POOL_NAME=" gaie-${LLMD_RELEASE_POSTFIX} "
4649
@@ -429,20 +432,29 @@ install_llmd_deps() {
429432deploy_llmd_model () {
430433 step " Deploying model with llm-d..."
431434
432- local llmd_dir=" ${LLMD_GIT_DIR} "
433- local sim_dir=" ${llmd_dir} /guides/simulated-accelerators"
434-
435- # Reduce resource requests — defaults (4 CPU) exceed demo/CI cluster capacity.
436- local istio_config=" ${llmd_dir} /guides/prereq/gateway-provider/common-configurations/istio.yaml"
437- # Disable llm-d's own gateway — we use our own istio-gateway with AuthPolicy
438- yq -i ' .gateway.enabled = false' " ${istio_config} "
439- yq -i ' .inferenceExtension.resources = {"requests": {"cpu": "500m", "memory": "512Mi"}, "limits": {"cpu": "2", "memory": "1Gi"}}' \
440- " ${sim_dir} /gaie-sim/values.yaml"
441- RELEASE_NAME_POSTFIX=" ${LLMD_RELEASE_POSTFIX} " \
442- helmfile apply -f " ${sim_dir} /helmfile.yaml.gotmpl" -e istio -n " ${LLM_NAMESPACE} "
435+ local sim_dir=" ${SCRIPT_DIR} /llmd-sim"
436+ local pool_name=" ${LLMD_POOL_NAME} "
437+ local epp_host=" ${pool_name} -epp.${LLM_NAMESPACE} .svc.cluster.local"
438+
439+ # Install InferencePool (GAIE EPP)
440+ step " Installing InferencePool chart ${GAIE_CHART_VERSION} ..."
441+ helm upgrade --install " ${pool_name} " \
442+ oci://registry.k8s.io/gateway-api-inference-extension/charts/inferencepool \
443+ --version " ${GAIE_CHART_VERSION} " \
444+ --namespace " ${LLM_NAMESPACE} " \
445+ -f " ${sim_dir} /gaie-sim-values.yaml" \
446+ --set " provider.istio.destinationRule.host=${epp_host} "
447+
448+ # Install ModelService (vllm-sim)
449+ step " Installing ModelService chart ${MODELSERVICE_CHART_VERSION} ..."
450+ helm repo add llm-d-modelservice https://llm-d-incubation.github.io/llm-d-modelservice/ --force-update
451+ helm upgrade --install " ms-${LLMD_RELEASE_POSTFIX} " llm-d-modelservice/llm-d-modelservice \
452+ --version " ${MODELSERVICE_CHART_VERSION} " \
453+ --namespace " ${LLM_NAMESPACE} " \
454+ -f " ${sim_dir} /ms-sim-values.yaml"
443455
444456 # Wait for llm-d deployments
445- wait_for_deployment " ${LLMD_POOL_NAME } -epp" " ${LLM_NAMESPACE} " 300s
457+ wait_for_deployment " ${pool_name } -epp" " ${LLM_NAMESPACE} " 300s
446458 wait_for_deployment " ms-${LLMD_RELEASE_POSTFIX} -llm-d-modelservice-decode" " ${LLM_NAMESPACE} " 300s
447459
448460 log " llm-d model deployed."
@@ -451,16 +463,8 @@ deploy_llmd_model() {
451463uninstall_llmd () {
452464 step " Removing llm-d stack (${LLM_NAMESPACE} )..."
453465 timeout_delete 30s httproute --all -n " ${LLM_NAMESPACE} " || true
454- local sim_helmfile=" ${LLMD_GIT_DIR} /guides/simulated-accelerators/helmfile.yaml.gotmpl"
455- if [ -f " ${sim_helmfile} " ]; then
456- RELEASE_NAME_POSTFIX=" ${LLMD_RELEASE_POSTFIX} " \
457- helmfile destroy -f " ${sim_helmfile} " -e istio -n " ${LLM_NAMESPACE} " 2> /dev/null \
458- || warn " helmfile destroy failed"
459- else
460- helm uninstall " ms-${LLMD_RELEASE_POSTFIX} " -n " ${LLM_NAMESPACE} " --timeout 60s 2> /dev/null || true
461- helm uninstall " ${LLMD_POOL_NAME} " -n " ${LLM_NAMESPACE} " --timeout 60s 2> /dev/null || true
462- helm uninstall " infra-${LLMD_RELEASE_POSTFIX} " -n " ${LLM_NAMESPACE} " --timeout 60s 2> /dev/null || true
463- fi
466+ helm uninstall " ms-${LLMD_RELEASE_POSTFIX} " -n " ${LLM_NAMESPACE} " --timeout 60s 2> /dev/null || true
467+ helm uninstall " ${LLMD_POOL_NAME} " -n " ${LLM_NAMESPACE} " --timeout 60s 2> /dev/null || true
464468 timeout_delete 30s inferencepool --all -n " ${LLM_NAMESPACE} " || true
465469}
466470
@@ -875,7 +879,7 @@ usage() {
875879 echo " "
876880 echo " Examples:"
877881 echo " $0 install"
878- echo " MODEL_NAME=my-model LLMD_VERSION=v0.5 .0 $0 install"
882+ echo " MODEL_NAME=my-model LLMD_VERSION=v0.7 .0 $0 install"
879883 exit " ${1:- 0} "
880884}
881885
0 commit comments