From 57b77277d226b7dbe222006ab172217d0c3f51ef Mon Sep 17 00:00:00 2001 From: thameem-abbas Date: Wed, 2 Dec 2026 10:41:01 -0500 Subject: [PATCH 1/4] feat: add RHOAI 3.6 Kimi K3 PP refresh --- .../config/kustomization.yaml | 6 + .../config/pp-worker-llmisvcconfig.yaml | 71 ++++++++++ .../h200-x8-pp2-tp8-8k1k/config/rhoai.yaml | 61 ++++++++ .../h200-x8-pp2-tp8-8k1k/guides/notes.yaml | 5 +- .../h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md | 60 ++++++++ .../rhoai-3.6/llminferenceservice.yaml | 133 ++++++++++++++++++ .../platforms/rhoai-3.6.yaml | 7 + .../recipes/h200-x8-pp2-tp8-8k1k/recipe.yaml | 3 + 8 files changed, 344 insertions(+), 2 deletions(-) create mode 100644 models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/pp-worker-llmisvcconfig.yaml create mode 100644 models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/rhoai.yaml create mode 100644 models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md create mode 100644 models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/manifests/rhoai-3.6/llminferenceservice.yaml create mode 100644 models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/platforms/rhoai-3.6.yaml diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/kustomization.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/kustomization.yaml index d439572..54c94ff 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/kustomization.yaml +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/kustomization.yaml @@ -9,3 +9,9 @@ patches: version: v1 kind: LeaderWorkerSet name: kimi-k3-vllm-h200-pp2-tp8 + - path: rhoai.yaml + target: + group: serving.kserve.io + version: v1alpha2 + kind: LLMInferenceService + name: kimi-k3-vllm-h200-pp2-tp8 diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/pp-worker-llmisvcconfig.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/pp-worker-llmisvcconfig.yaml new file mode 100644 index 0000000..1c77fc7 --- /dev/null +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/pp-worker-llmisvcconfig.yaml @@ -0,0 +1,71 @@ +# Install separately after substituting ONLY CONFIG_PREFIX and CONTROLLER_NAMESPACE. +# Follows the GLM-5.2 PP prerequisite; scoped to non-disaggregated PP on vLLM 0.31. +# Images and model-specific arguments are supplied by the LLMInferenceService. +apiVersion: serving.kserve.io/v1alpha2 +kind: LLMInferenceServiceConfig +metadata: + name: ${CONFIG_PREFIX}config-llm-worker-pipeline-parallel + namespace: ${CONTROLLER_NAMESPACE} + annotations: + serving.kserve.io/well-known-config: 'true' +spec: + model: + uri: '' + template: + containers: + - name: main + command: + - /bin/bash + - -c + - | + eval "exec vllm serve /mnt/models \ + --served-model-name '{{ .Spec.Model.Name }}' 'publishers/{{ .ObjectMeta.Namespace }}/models/{{ .Spec.Model.Name }}' \ + --port 8000 \ + --root-path /{{ .ObjectMeta.Namespace }}/{{ .ObjectMeta.Name }} \ + --tensor-parallel-size {{ or .Spec.Parallelism.Tensor 1 }} \ + --pipeline-parallel-size {{ or .Spec.Parallelism.Pipeline 1 }} \ + --nnodes {{ or .Spec.Parallelism.Pipeline 1 }} \ + --node-rank 0 --master-addr 0.0.0.0 \ + {{ if .GlobalConfig.EnableTLS }}--enable-ssl-refresh --ssl-certfile /var/run/kserve/tls/tls.crt --ssl-keyfile /var/run/kserve/tls/tls.key{{ end }} \ + ${VLLM_ADDITIONAL_ARGS} $@" + - -- + startupProbe: + httpGet: + path: /health + port: 8000 + scheme: '{{ if .GlobalConfig.EnableTLS }}HTTPS{{else}}HTTP{{end}}' + periodSeconds: 10 + failureThreshold: 60 + readinessProbe: + httpGet: + path: /health + port: 8000 + scheme: '{{ if .GlobalConfig.EnableTLS }}HTTPS{{else}}HTTP{{end}}' + livenessProbe: + httpGet: + path: /health + port: 8000 + scheme: '{{ if .GlobalConfig.EnableTLS }}HTTPS{{else}}HTTP{{end}}' + volumeMounts: + - {name: tls-certs, mountPath: /var/run/kserve/tls, readOnly: true} + volumes: + - name: tls-certs + secret: + secretName: '{{ ChildName .ObjectMeta.Name `-kserve-self-signed-certs` }}' + worker: + containers: + - name: main + command: + - /bin/bash + - -c + - | + eval "exec vllm serve /mnt/models \ + --served-model-name '{{ .Spec.Model.Name }}' 'publishers/{{ .ObjectMeta.Namespace }}/models/{{ .Spec.Model.Name }}' \ + --port 8000 \ + --tensor-parallel-size {{ or .Spec.Parallelism.Tensor 1 }} \ + --pipeline-parallel-size {{ or .Spec.Parallelism.Pipeline 1 }} \ + --nnodes {{ or .Spec.Parallelism.Pipeline 1 }} \ + --node-rank ${LWS_WORKER_INDEX} --master-addr ${LWS_LEADER_ADDRESS} \ + --headless \ + ${VLLM_ADDITIONAL_ARGS} $@" + - -- diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/rhoai.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/rhoai.yaml new file mode 100644 index 0000000..5bf099e --- /dev/null +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/rhoai.yaml @@ -0,0 +1,61 @@ +# Keep the existing node-local checkpoint and paired-device allocation. +- op: add + path: /spec/template/containers/0/image + value: &image registry.redhat.io/rhaii/vllm-cuda-rhel9@sha256:c8d9ed846ea8a5d5724eb339856e9d3e95fb30f47c2e9f9273733ebf1ac67534 +- op: add + path: /spec/worker/containers/0/image + value: *image +- op: replace + path: /spec/model/uri + value: hf://moonshotai/Kimi-K3 +- op: add + path: /spec/template/serviceAccountName + value: default +- op: add + path: /spec/worker/serviceAccountName + value: default +- op: add + path: /spec/template/securityContext + value: {runAsNonRoot: true, runAsUser: 1000770000} +- op: add + path: /spec/worker/securityContext + value: {runAsNonRoot: true, runAsUser: 1000770000} +- op: add + path: /spec/template/containers/0/securityContext + value: {runAsUser: 1000770000} +- op: add + path: /spec/worker/containers/0/securityContext + value: {runAsUser: 1000770000} +- op: replace + path: /spec/template/containers/0/resources + value: &resources + requests: {cpu: '32', memory: 512Gi, composite.dra.io/gpu-nic-pair: '8'} + limits: {memory: 512Gi, composite.dra.io/gpu-nic-pair: '8'} +- op: replace + path: /spec/worker/containers/0/resources + value: *resources +# Inherit the installed PP config's TLS-aware probe handler. +- op: replace + path: /spec/template/containers/0/startupProbe + value: {failureThreshold: 1440, periodSeconds: 10} +- op: add + path: /spec/template/containers/0/readinessProbe + value: {timeoutSeconds: 7200} +- op: remove + path: /spec/template/containers/0/env/0 +- op: remove + path: /spec/worker/containers/0/env/0 +- op: replace + path: /spec/template/volumes/1 + value: &models + name: models + hostPath: {path: /var/mnt/nvme-cache/model-cache/Kimi-K3, type: Directory} +- op: replace + path: /spec/worker/volumes/1 + value: *models +- op: add + path: /spec/template/containers/0/volumeMounts/1/readOnly + value: true +- op: add + path: /spec/worker/containers/0/volumeMounts/1/readOnly + value: true diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml index caa2605..244d78d 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml @@ -23,7 +23,7 @@ decisions: See https://github.com/vllm-project/vllm/releases/tag/v0.29.0 and https://github.com/vllm-project/vllm/blob/v0.29.0/vllm/model_executor/layers/fused_moe/experts/fused_humming_moe.py. - subjects: [platform scope] - why: This contribution targets standalone vLLM only. RHOAI deployment is explicitly out of scope and must be introduced through a separate recipe and review. + why: The original standalone vLLM platform is retained. The RHOAI 3.6 refresh requires the separately installed PP config and deployment checks in guides/rhoai-3.6.md; existing evidence does not validate that platform. known_issues: - issue: The selected CUDA 13.0 image requires an r580+ NVIDIA driver on both nodes. impact: An incompatible host driver can prevent GPU initialization. @@ -36,7 +36,7 @@ known_issues: - issue: The submitted GID setting may not match the target cluster's RoCE configuration. impact: Incorrect device or GID selection can prevent inter-node communication. mitigation: Verify the allocated RDMA devices and GID value on both nodes and confirm RDMA connectivity before starting the serving group. - - issue: The serving image uses a versioned tag rather than an immutable digest. + - issue: The standalone vLLM serving image uses a versioned tag rather than an immutable digest. impact: Tag changes or different node caches can select different executable images across roles or restarts. mitigation: Resolve and pin the image digest before deployment and record it with benchmark evidence. - issue: The selected image's startup with the namespace-assigned non-root UID needs confirmation. @@ -49,6 +49,7 @@ known_issues: impact: The source sweep's input distribution does not represent the selected workload. mitigation: Run the target workload and commit its exact harness configuration, prompt provenance, raw output, and normalized results. quickstart: + - {step: RHOAI 3.6, detail: "Follow guides/rhoai-3.6.md to install the PP prerequisite config before applying the RHOAI manifest. Runtime and feature validation are pending."} - step: Prepare detail: >- Install the LeaderWorkerSet controller and composite DRA GPU/NIC-pair diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md new file mode 100644 index 0000000..eb599d4 --- /dev/null +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md @@ -0,0 +1,60 @@ +# RHOAI 3.6 H200 refresh + +Related: [model target #124](https://github.com/openshift-psap/inference-playbooks/issues/124), +[release overview #126](https://github.com/openshift-psap/inference-playbooks/issues/126). + +This adds an LLMInferenceService platform for the existing **two-node PP2 × TP8 +(16 H200 GPUs total)** configuration. It preserves the serving flags, per-pod +resources, paired GPU/NIC requests and node-local checkpoint. The original +standalone vLLM platform and its benchmark records remain unchanged. + +The platform declares and pins the public CUDA image with `0.31.0+rhaiv.5` +observed during GLM-5.3-Flash RHOAI 3.6 RC2 smoke checks. This does not establish +final-GA attribution or Kimi compatibility. Existing evidence is for standalone +vLLM; new RHOAI deployment, feature and benchmark validation is pending. + +## Install the PP prerequisite + +RHOAI's inspected configuration exposes pipeline parallelism in the API but lacks +the built-in PP launch preset. Install `config/pp-worker-llmisvcconfig.yaml` +separately, following the existing GLM-5.2 prerequisite pattern. It is not part of +the generated serving manifest or Kustomize overlay. + +Set these values to match the target controller's namespace and config naming +prefix (inspect its existing `config-llm-worker-data-parallel` object): + +```sh +export CONTROLLER_NAMESPACE=redhat-ods-applications +export CONFIG_PREFIX=v3-6-0-kserve- +envsubst '${CONFIG_PREFIX} ${CONTROLLER_NAMESPACE}' \ + < config/pp-worker-llmisvcconfig.yaml | oc apply -f - +oc -n "$CONTROLLER_NAMESPACE" get llminferenceserviceconfig \ + "${CONFIG_PREFIX}config-llm-worker-pipeline-parallel" +``` + +Only substitute those two variables; the shell variables and Go template fields +inside the launch commands must remain intact. This conventionally named preset +is controller-wide for non-disaggregated PP, not restricted to this recipe. +Inspect any existing object before replacing it. It supplies launch commands and +TLS-aware leader probes; images and workload settings come from the service. +It is a temporary prerequisite, not shipped RHOAI PP support. Track +[ODH KServe #2059](https://github.com/opendatahub-io/kserve/pull/2059) for upstreaming. + +## Deploy and validate + +- Prepare matching checkpoint revisions under + `/var/mnt/nvme-cache/model-cache/Kimi-K3` on both nodes. This refresh retains the + existing recipe's external checkpoint preparation; no new revision is claimed. +- Provide eight `composite.dra.io/gpu-nic-pair` devices and 512 GiB memory on each + node, plus the existing RoCE and admission prerequisites. The retained UID + `1000770000` and hostPath access must be allowed in the selected namespace. +- Provide registry pull credentials. The local checkpoint does not need an + HF-token secret or PVC download. +- Apply `manifests/rhoai-3.6/llminferenceservice.yaml` from this recipe directory. +- Verify the controller selects the installed PP preset, launches leader rank 0 + and worker rank 1 with PP2/TP8, and both roles use the declared image. Check + readiness, inference and existing feature/flag compatibility before benchmarking. + +The preset uses vLLM native multi-node PP with a headless worker. Model files are +mounted read-only at `/mnt/models`; the existing API model name `/models/Kimi-K3` +is retained. New 3.6 flags or compatibility changes require separate review. diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/manifests/rhoai-3.6/llminferenceservice.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/manifests/rhoai-3.6/llminferenceservice.yaml new file mode 100644 index 0000000..606ebf9 --- /dev/null +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/manifests/rhoai-3.6/llminferenceservice.yaml @@ -0,0 +1,133 @@ +apiVersion: serving.kserve.io/v1alpha2 +kind: LLMInferenceService +metadata: + name: kimi-k3-vllm-h200-pp2-tp8 +spec: + model: + name: /models/Kimi-K3 + uri: hf://moonshotai/Kimi-K3 + parallelism: + pipeline: 2 + tensor: 8 + replicas: 1 + storageInitializer: + enabled: false + template: + containers: + - env: + - name: VLLM_ADDITIONAL_ARGS + value: --trust-remote-code --attention-backend FLASHMLA --moe-backend humming + --gpu-memory-utilization 0.90 --max-num-seqs 256 --max-model-len 131072 + --max-num-batched-tokens 4096 --disable-custom-all-reduce --no-enable-flashinfer-autotune + --distributed-timeout-seconds 10800 --cpu-distributed-timeout-seconds 10800 + --enable-auto-tool-choice --tool-call-parser kimi_k3 --reasoning-parser + kimi_k3 + - name: NCCL_IB_GID_INDEX + value: "3" + - name: NCCL_DMABUF_ENABLE + value: "0" + - name: NCCL_DEBUG + value: INFO + - name: VLLM_USE_RUST_FRONTEND + value: "0" + - name: VLLM_USE_V2_MODEL_RUNNER + value: "1" + - name: HF_HOME + value: /home/nobody/.cache + - name: HOME + value: /tmp + - name: XDG_CACHE_HOME + value: /home/nobody/.cache + image: registry.redhat.io/rhaii/vllm-cuda-rhel9@sha256:c8d9ed846ea8a5d5724eb339856e9d3e95fb30f47c2e9f9273733ebf1ac67534 + name: main + readinessProbe: + timeoutSeconds: 7200 + resources: + limits: + composite.dra.io/gpu-nic-pair: "8" + memory: 512Gi + requests: + composite.dra.io/gpu-nic-pair: "8" + cpu: "32" + memory: 512Gi + securityContext: + runAsUser: 1000770000 + startupProbe: + failureThreshold: 1440 + periodSeconds: 10 + volumeMounts: + - mountPath: /dev/shm + name: dshm + - mountPath: /mnt/models + name: models + readOnly: true + securityContext: + runAsNonRoot: true + runAsUser: 1000770000 + serviceAccountName: default + volumes: + - emptyDir: + medium: Memory + sizeLimit: 16Gi + name: dshm + - hostPath: + path: /var/mnt/nvme-cache/model-cache/Kimi-K3 + type: Directory + name: models + worker: + containers: + - env: + - name: VLLM_ADDITIONAL_ARGS + value: --trust-remote-code --attention-backend FLASHMLA --moe-backend humming + --gpu-memory-utilization 0.90 --max-num-seqs 256 --max-model-len 131072 + --max-num-batched-tokens 4096 --disable-custom-all-reduce --no-enable-flashinfer-autotune + --distributed-timeout-seconds 10800 --cpu-distributed-timeout-seconds 10800 + --enable-auto-tool-choice --tool-call-parser kimi_k3 --reasoning-parser + kimi_k3 --port 8000 + - name: NCCL_IB_GID_INDEX + value: "3" + - name: NCCL_DMABUF_ENABLE + value: "0" + - name: NCCL_DEBUG + value: INFO + - name: VLLM_USE_RUST_FRONTEND + value: "0" + - name: VLLM_USE_V2_MODEL_RUNNER + value: "1" + - name: HF_HOME + value: /home/nobody/.cache + - name: HOME + value: /tmp + - name: XDG_CACHE_HOME + value: /home/nobody/.cache + image: registry.redhat.io/rhaii/vllm-cuda-rhel9@sha256:c8d9ed846ea8a5d5724eb339856e9d3e95fb30f47c2e9f9273733ebf1ac67534 + name: main + resources: + limits: + composite.dra.io/gpu-nic-pair: "8" + memory: 512Gi + requests: + composite.dra.io/gpu-nic-pair: "8" + cpu: "32" + memory: 512Gi + securityContext: + runAsUser: 1000770000 + volumeMounts: + - mountPath: /dev/shm + name: dshm + - mountPath: /mnt/models + name: models + readOnly: true + securityContext: + runAsNonRoot: true + runAsUser: 1000770000 + serviceAccountName: default + volumes: + - emptyDir: + medium: Memory + sizeLimit: 16Gi + name: dshm + - hostPath: + path: /var/mnt/nvme-cache/model-cache/Kimi-K3 + type: Directory + name: models diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/platforms/rhoai-3.6.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/platforms/rhoai-3.6.yaml new file mode 100644 index 0000000..b290130 --- /dev/null +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/platforms/rhoai-3.6.yaml @@ -0,0 +1,7 @@ +image: registry.redhat.io/rhaii/vllm-cuda-rhel9@sha256:c8d9ed846ea8a5d5724eb339856e9d3e95fb30f47c2e9f9273733ebf1ac67534 +image_usage: {kind: default, variant: cuda} +engine: + name: vllm + version: 0.31.0+rhaiv.5 + image: registry.redhat.io/rhaii/vllm-cuda-rhel9@sha256:c8d9ed846ea8a5d5724eb339856e9d3e95fb30f47c2e9f9273733ebf1ac67534 + source: https://github.com/neuralmagic/nm-vllm-ent/tree/v0.31.0%2Brhaiv.5 diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/recipe.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/recipe.yaml index 774d526..e48bd4e 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/recipe.yaml +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/recipe.yaml @@ -5,6 +5,9 @@ platforms: - stack: vllm version: v0.29.0 overrides: platforms/vllm-v0.29.0.yaml + - stack: rhoai + version: "3.6" + overrides: platforms/rhoai-3.6.yaml hardware_profile: hardware-profiles/nvidia-h200-sxm-8x-nvlink-roce-r1.yaml workload_profile: guidellm-8k1k deployment_mode: pp2-tp8 From 73c1d8e9e4362bf9c66e8ab4a4322e59ffa8b616 Mon Sep 17 00:00:00 2001 From: Thameem Abbas <177268776+thameem-abbas@users.noreply.github.com> Date: Fri, 4 Dec 2026 10:43:08 -0500 Subject: [PATCH 2/4] docs: clarify Kimi K3 platform deployment guidance --- .../h200-x8-pp2-tp8-8k1k/guides/notes.yaml | 7 ++-- .../h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md | 32 ++++++++++++------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml index 244d78d..8fd7b64 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml @@ -49,8 +49,9 @@ known_issues: impact: The source sweep's input distribution does not represent the selected workload. mitigation: Run the target workload and commit its exact harness configuration, prompt provenance, raw output, and normalized results. quickstart: - - {step: RHOAI 3.6, detail: "Follow guides/rhoai-3.6.md to install the PP prerequisite config before applying the RHOAI manifest. Runtime and feature validation are pending."} - - step: Prepare + - {step: Choose platform, detail: "Follow only the deployment path for your platform: RHOAI 3.6 or standalone vLLM."} + - {step: RHOAI 3.6, detail: "Follow guides/rhoai-3.6.md to install the PP prerequisite config, then apply manifests/rhoai-3.6/llminferenceservice.yaml instead of the standalone vLLM manifest. Runtime and feature validation are pending."} + - step: Prepare standalone vLLM detail: >- Install the LeaderWorkerSet controller and composite DRA GPU/NIC-pair driver; verify both local NVMe model caches, matching checkpoint revisions, @@ -59,5 +60,5 @@ quickstart: emptyDir caches with the assigned SCC. - {step: Network, detail: Verify allocated RDMA devices and target-cluster GID settings symmetrically; see recipe.yaml and the referenced hardware profile.} - {step: Render, detail: Run tools/render.py for this recipe; config/ is an overlay and must not be applied directly.} - - {step: Deploy, detail: "Apply manifests/vllm-v0.29.0/leaderworkerset.yaml. The LWS controller creates the headless Service for leader/worker rendezvous; the recipe does not create an HTTP Service."} + - {step: Deploy standalone vLLM, detail: "For standalone vLLM only, apply manifests/vllm-v0.29.0/leaderworkerset.yaml. The LWS controller creates the headless Service for leader/worker rendezvous; the recipe does not create an HTTP Service."} - {step: Verify, detail: "Port-forward the leader pod's port 8000, wait for leader health, and query /v1/models. Confirm real-checkpoint loading before benchmarking and recording sanitized artifacts. Use guides/validation.md for the promotion reviewer checklist."} diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md index eb599d4..fa54734 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md @@ -8,10 +8,14 @@ This adds an LLMInferenceService platform for the existing **two-node PP2 × TP8 resources, paired GPU/NIC requests and node-local checkpoint. The original standalone vLLM platform and its benchmark records remain unchanged. -The platform declares and pins the public CUDA image with `0.31.0+rhaiv.5` -observed during GLM-5.3-Flash RHOAI 3.6 RC2 smoke checks. This does not establish -final-GA attribution or Kimi compatibility. Existing evidence is for standalone -vLLM; new RHOAI deployment, feature and benchmark validation is pending. +The [platform override](../platforms/rhoai-3.6.yaml) declares and pins the public +CUDA image and engine version observed during GLM-5.3-Flash RHOAI 3.6 RC2 smoke +checks, and links to the engine source. This does not establish +final-GA attribution or Kimi compatibility. Existing +[GuideLLM](../results/forge-4537ff42bbeb4b0d986e3fc225f20fbf-guidellm/run.yaml) and +[AIPerf](../results/forge-4537ff42bbeb4b0d986e3fc225f20fbf-aiperf/run.yaml) +evidence is for standalone vLLM; new RHOAI deployment, feature and benchmark +validation is pending. ## Install the PP prerequisite @@ -42,15 +46,21 @@ It is a temporary prerequisite, not shipped RHOAI PP support. Track ## Deploy and validate -- Prepare matching checkpoint revisions under - `/var/mnt/nvme-cache/model-cache/Kimi-K3` on both nodes. This refresh retains the - existing recipe's external checkpoint preparation; no new revision is claimed. -- Provide eight `composite.dra.io/gpu-nic-pair` devices and 512 GiB memory on each - node, plus the existing RoCE and admission prerequisites. The retained UID - `1000770000` and hostPath access must be allowed in the selected namespace. +- Prepare matching checkpoint revisions on both nodes at the `models` volume's + `hostPath.path` configured by the [RHOAI overlay](../config/rhoai.yaml). + This retains the [recipe's](../recipe.yaml) external checkpoint preparation + (`deployment.storage`); no new revision is claimed. +- Provide the per-role resources declared in the [recipe](../recipe.yaml) + (`serving.resources`) and overridden by the [RHOAI overlay](../config/rhoai.yaml). + Check the effective `spec.template` and `spec.worker` container `resources`, + `securityContext.runAsUser`, and `volumes` in the + [RHOAI manifest](../manifests/rhoai-3.6/llminferenceservice.yaml). + Retain the existing RoCE and admission prerequisites; the configured UID and + hostPath access must be allowed in the selected namespace. - Provide registry pull credentials. The local checkpoint does not need an HF-token secret or PVC download. -- Apply `manifests/rhoai-3.6/llminferenceservice.yaml` from this recipe directory. +- Apply the [RHOAI manifest](../manifests/rhoai-3.6/llminferenceservice.yaml) + from this recipe directory. - Verify the controller selects the installed PP preset, launches leader rank 0 and worker rank 1 with PP2/TP8, and both roles use the declared image. Check readiness, inference and existing feature/flag compatibility before benchmarking. From 0e7c096e5365fe9251f98ef5d53e191f0d639cff Mon Sep 17 00:00:00 2001 From: Thameem Abbas <177268776+thameem-abbas@users.noreply.github.com> Date: Sun, 6 Dec 2026 13:57:09 -0500 Subject: [PATCH 3/4] Use pinned Kimi LocalModelCache with restricted serving --- .../h200-x8-pp2-tp8-8k1k/config/rhoai.yaml | 51 +++++++++++-------- .../h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md | 26 ++++++---- .../rhoai-3.6/llminferenceservice.yaml | 32 ++++-------- 3 files changed, 54 insertions(+), 55 deletions(-) diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/rhoai.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/rhoai.yaml index 5bf099e..5f7ca6b 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/rhoai.yaml +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/config/rhoai.yaml @@ -1,4 +1,4 @@ -# Keep the existing node-local checkpoint and paired-device allocation. +# Use controller-managed LocalModelCache storage and paired-device allocation. - op: add path: /spec/template/containers/0/image value: &image registry.redhat.io/rhaii/vllm-cuda-rhel9@sha256:c8d9ed846ea8a5d5724eb339856e9d3e95fb30f47c2e9f9273733ebf1ac67534 @@ -7,7 +7,13 @@ value: *image - op: replace path: /spec/model/uri - value: hf://moonshotai/Kimi-K3 + # Without a matching LocalModelCache, change this to pvc:///. + # Prepopulate the same checkpoint on a fast ReadWriteMany PVC in the serving + # namespace so both PP nodes can read it; keep model-artifact attachment enabled. + value: hf://moonshotai/Kimi-K3:f831ab66814297da540d832a5235f8e904f29d06 +# Cache-backed PVC injection requires the model-artifact attachment path. +- op: remove + path: /spec/storageInitializer - op: add path: /spec/template/serviceAccountName value: default @@ -16,16 +22,10 @@ value: default - op: add path: /spec/template/securityContext - value: {runAsNonRoot: true, runAsUser: 1000770000} + value: {runAsNonRoot: true} - op: add path: /spec/worker/securityContext - value: {runAsNonRoot: true, runAsUser: 1000770000} -- op: add - path: /spec/template/containers/0/securityContext - value: {runAsUser: 1000770000} -- op: add - path: /spec/worker/containers/0/securityContext - value: {runAsUser: 1000770000} + value: {runAsNonRoot: true} - op: replace path: /spec/template/containers/0/resources value: &resources @@ -45,17 +45,24 @@ path: /spec/template/containers/0/env/0 - op: remove path: /spec/worker/containers/0/env/0 -- op: replace - path: /spec/template/volumes/1 - value: &models - name: models - hostPath: {path: /var/mnt/nvme-cache/model-cache/Kimi-K3, type: Directory} -- op: replace - path: /spec/worker/volumes/1 - value: *models - op: add - path: /spec/template/containers/0/volumeMounts/1/readOnly - value: true + path: /spec/template/containers/0/env/- + value: {name: HF_MODULES_CACHE, value: /tmp/huggingface/modules} +- op: add + path: /spec/worker/containers/0/env/- + value: {name: HF_MODULES_CACHE, value: /tmp/huggingface/modules} - op: add - path: /spec/worker/containers/0/volumeMounts/1/readOnly - value: true + path: /spec/template/containers/0/env/- + value: {name: TIKTOKEN_CACHE_DIR, value: /tmp/tiktoken-cache} +- op: add + path: /spec/worker/containers/0/env/- + value: {name: TIKTOKEN_CACHE_DIR, value: /tmp/tiktoken-cache} +# Let the controller inject the cache-backed model volume and mount for each role. +- op: remove + path: /spec/template/volumes/1 +- op: remove + path: /spec/worker/volumes/1 +- op: remove + path: /spec/template/containers/0/volumeMounts/1 +- op: remove + path: /spec/worker/containers/0/volumeMounts/1 diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md index fa54734..097c0f8 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md @@ -5,7 +5,8 @@ Related: [model target #124](https://github.com/openshift-psap/inference-playboo This adds an LLMInferenceService platform for the existing **two-node PP2 × TP8 (16 H200 GPUs total)** configuration. It preserves the serving flags, per-pod -resources, paired GPU/NIC requests and node-local checkpoint. The original +resources and paired GPU/NIC requests, using controller-managed LocalModelCache +storage for the pinned checkpoint. The original standalone vLLM platform and its benchmark records remain unchanged. The [platform override](../platforms/rhoai-3.6.yaml) declares and pins the public @@ -46,19 +47,24 @@ It is a temporary prerequisite, not shipped RHOAI PP support. Track ## Deploy and validate -- Prepare matching checkpoint revisions on both nodes at the `models` volume's - `hostPath.path` configured by the [RHOAI overlay](../config/rhoai.yaml). - This retains the [recipe's](../recipe.yaml) external checkpoint preparation - (`deployment.storage`); no new revision is claimed. +- Prepare a LocalModelCache on both target nodes with the exact source URI + `hf://moonshotai/Kimi-K3:f831ab66814297da540d832a5235f8e904f29d06`, + matching the [RHOAI overlay](../config/rhoai.yaml). Wait for both copies to be + downloaded before serving. Allow at least 1.56 TB per node for the checkpoint, + plus headroom and space for other cached models. +- The controller injects the cache-backed model volume and mount into both roles. + Do not disable `storageInitializer`: that also bypasses cache-volume attachment. + No manual model hostPath, fixed UID, or model PVC name is supplied in this + platform. The standalone platform retains its existing hostPath configuration. - Provide the per-role resources declared in the [recipe](../recipe.yaml) (`serving.resources`) and overridden by the [RHOAI overlay](../config/rhoai.yaml). Check the effective `spec.template` and `spec.worker` container `resources`, - `securityContext.runAsUser`, and `volumes` in the + security context and volumes in the [RHOAI manifest](../manifests/rhoai-3.6/llminferenceservice.yaml). - Retain the existing RoCE and admission prerequisites; the configured UID and - hostPath access must be allowed in the selected namespace. -- Provide registry pull credentials. The local checkpoint does not need an - HF-token secret or PVC download. + Retain the existing RoCE and admission prerequisites. OpenShift assigns the + non-root UID; cached files must be readable by that UID. +- Provide registry pull credentials and any credentials required by cache download + jobs. The serving containers do not reference an HF-token secret. - Apply the [RHOAI manifest](../manifests/rhoai-3.6/llminferenceservice.yaml) from this recipe directory. - Verify the controller selects the installed PP preset, launches leader rank 0 diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/manifests/rhoai-3.6/llminferenceservice.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/manifests/rhoai-3.6/llminferenceservice.yaml index 606ebf9..82b9d0c 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/manifests/rhoai-3.6/llminferenceservice.yaml +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/manifests/rhoai-3.6/llminferenceservice.yaml @@ -5,13 +5,11 @@ metadata: spec: model: name: /models/Kimi-K3 - uri: hf://moonshotai/Kimi-K3 + uri: hf://moonshotai/Kimi-K3:f831ab66814297da540d832a5235f8e904f29d06 parallelism: pipeline: 2 tensor: 8 replicas: 1 - storageInitializer: - enabled: false template: containers: - env: @@ -38,6 +36,10 @@ spec: value: /tmp - name: XDG_CACHE_HOME value: /home/nobody/.cache + - name: HF_MODULES_CACHE + value: /tmp/huggingface/modules + - name: TIKTOKEN_CACHE_DIR + value: /tmp/tiktoken-cache image: registry.redhat.io/rhaii/vllm-cuda-rhel9@sha256:c8d9ed846ea8a5d5724eb339856e9d3e95fb30f47c2e9f9273733ebf1ac67534 name: main readinessProbe: @@ -50,30 +52,20 @@ spec: composite.dra.io/gpu-nic-pair: "8" cpu: "32" memory: 512Gi - securityContext: - runAsUser: 1000770000 startupProbe: failureThreshold: 1440 periodSeconds: 10 volumeMounts: - mountPath: /dev/shm name: dshm - - mountPath: /mnt/models - name: models - readOnly: true securityContext: runAsNonRoot: true - runAsUser: 1000770000 serviceAccountName: default volumes: - emptyDir: medium: Memory sizeLimit: 16Gi name: dshm - - hostPath: - path: /var/mnt/nvme-cache/model-cache/Kimi-K3 - type: Directory - name: models worker: containers: - env: @@ -100,6 +92,10 @@ spec: value: /tmp - name: XDG_CACHE_HOME value: /home/nobody/.cache + - name: HF_MODULES_CACHE + value: /tmp/huggingface/modules + - name: TIKTOKEN_CACHE_DIR + value: /tmp/tiktoken-cache image: registry.redhat.io/rhaii/vllm-cuda-rhel9@sha256:c8d9ed846ea8a5d5724eb339856e9d3e95fb30f47c2e9f9273733ebf1ac67534 name: main resources: @@ -110,24 +106,14 @@ spec: composite.dra.io/gpu-nic-pair: "8" cpu: "32" memory: 512Gi - securityContext: - runAsUser: 1000770000 volumeMounts: - mountPath: /dev/shm name: dshm - - mountPath: /mnt/models - name: models - readOnly: true securityContext: runAsNonRoot: true - runAsUser: 1000770000 serviceAccountName: default volumes: - emptyDir: medium: Memory sizeLimit: 16Gi name: dshm - - hostPath: - path: /var/mnt/nvme-cache/model-cache/Kimi-K3 - type: Directory - name: models From 116fce20e8ba00c092950339f9e7684930dad420 Mon Sep 17 00:00:00 2001 From: Thameem Abbas <177268776+thameem-abbas@users.noreply.github.com> Date: Sun, 6 Dec 2026 14:24:48 -0500 Subject: [PATCH 4/4] Clarify platform-specific Kimi storage prerequisites --- models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml | 4 ++-- .../kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml index 8fd7b64..ac909a4 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/notes.yaml @@ -42,9 +42,9 @@ known_issues: - issue: The selected image's startup with the namespace-assigned non-root UID needs confirmation. impact: A process that assumes root or cannot write to its configured cache can fail during startup. mitigation: Run both LWS roles with OpenShift-assigned non-root UIDs, keep writable caches on emptyDir, and verify model startup; do not grant anyuid unless runtime evidence shows it is required. - - issue: Each eligible GPU node needs a mounted local NVMe cache with the same pinned checkpoint and hostPath admission. + - issue: For standalone vLLM only, each eligible GPU node needs a mounted local NVMe cache with the same pinned checkpoint and hostPath admission. impact: A missing RAID mount, incomplete or mismatched checkpoint, insufficient permissions, or an SCC that disallows hostPath prevents model loading on one or both nodes. - mitigation: Verify the local filesystem and checkpoint on both nodes, allow the configured read-only hostPath through the serving service account's SCC, and retain writable caches on emptyDir. See guides/storage.md. + mitigation: For standalone vLLM, verify the local filesystem and checkpoint on both nodes, allow the configured read-only hostPath through the serving service account's SCC, and retain writable caches on emptyDir. See guides/storage.md. RHOAI uses controller-managed model volumes and does not require manual model hostPath admission; see guides/rhoai-3.6.md. - issue: The reported source sweep used 1000 input and 1000 output tokens rather than the target GuideLLM 8K/1K workload. impact: The source sweep's input distribution does not represent the selected workload. mitigation: Run the target workload and commit its exact harness configuration, prompt provenance, raw output, and normalized results. diff --git a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md index 097c0f8..e3bfcc0 100644 --- a/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md +++ b/models/kimi-k3/recipes/h200-x8-pp2-tp8-8k1k/guides/rhoai-3.6.md @@ -48,8 +48,8 @@ It is a temporary prerequisite, not shipped RHOAI PP support. Track ## Deploy and validate - Prepare a LocalModelCache on both target nodes with the exact source URI - `hf://moonshotai/Kimi-K3:f831ab66814297da540d832a5235f8e904f29d06`, - matching the [RHOAI overlay](../config/rhoai.yaml). Wait for both copies to be + configured by the `/spec/model/uri` patch in the + [RHOAI overlay](../config/rhoai.yaml). Wait for both copies to be downloaded before serving. Allow at least 1.56 TB per node for the checkpoint, plus headroom and space for other cached models. - The controller injects the cache-backed model volume and mount into both roles.