aiinfra-tools 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/CHANGELOG.md +268 -0
  2. package/README.md +27 -3
  3. package/bin/aiinfra.mjs +5 -2
  4. package/bin/report.mjs +177 -0
  5. package/fleetops/README.md +33 -1
  6. package/fleetops/deploy/shadow-gate/argo-analysistemplate.yaml +34 -0
  7. package/fleetops/deploy/shadow-gate/argo-rollout-example.yaml +38 -0
  8. package/fleetops/deploy/shadow-gate/flagger-canary.yaml +34 -0
  9. package/fleetops/deploy/shadow-gate/judge.yaml +51 -0
  10. package/fleetops/deploy/shadow-gate/llmd-canary-example.yaml +35 -0
  11. package/fleetops/deploy/shadow-gate/podmonitor-vllm.yaml +20 -0
  12. package/fleetops/deploy/shadow-live/README.md +41 -0
  13. package/fleetops/deploy/shadow-live/kit.yaml +123 -0
  14. package/fleetops/deploy/shadow-live/load-canary.yaml +26 -0
  15. package/fleetops/deploy/shadow-live/run.sh +53 -0
  16. package/fleetops/docs/ADMISSION.md +9 -9
  17. package/fleetops/docs/FABRIC-STORAGE.md +1 -1
  18. package/fleetops/docs/SERVING.md +11 -1
  19. package/fleetops/docs/SHADOW.md +250 -0
  20. package/fleetops/docs/SIGNALS.md +5 -2
  21. package/fleetops/docs/WORKLOADS.md +1 -1
  22. package/fleetops/package.json +7 -4
  23. package/fleetops/src/adapters/fabric.mjs +19 -7
  24. package/fleetops/src/adapters/live.mjs +38 -5
  25. package/fleetops/src/adapters/logs.mjs +10 -7
  26. package/fleetops/src/adapters/nvsentinel.mjs +95 -0
  27. package/fleetops/src/adapters/topology.mjs +53 -1
  28. package/fleetops/src/admission.mjs +26 -18
  29. package/fleetops/src/api.mjs +2 -1
  30. package/fleetops/src/bundle.mjs +3 -0
  31. package/fleetops/src/calibrate.mjs +1 -1
  32. package/fleetops/src/detect.mjs +1 -1
  33. package/fleetops/src/export.mjs +5 -1
  34. package/fleetops/src/goodput.mjs +0 -2
  35. package/fleetops/src/incidents.mjs +1 -2
  36. package/fleetops/src/ingest.mjs +10 -3
  37. package/fleetops/src/inject.mjs +2 -2
  38. package/fleetops/src/live.mjs +2 -1
  39. package/fleetops/src/llmd.mjs +7 -3
  40. package/fleetops/src/optimize.mjs +1 -1
  41. package/fleetops/src/power.mjs +7 -7
  42. package/fleetops/src/procure.mjs +67 -0
  43. package/fleetops/src/rca.mjs +1 -1
  44. package/fleetops/src/rollout.mjs +1 -1
  45. package/fleetops/src/schema.mjs +3 -2
  46. package/fleetops/src/security.mjs +1 -1
  47. package/fleetops/src/serving.mjs +32 -10
  48. package/fleetops/src/shadow-canary.mjs +74 -0
  49. package/fleetops/src/shadow-gate.mjs +49 -0
  50. package/fleetops/src/shadow-prom.mjs +205 -0
  51. package/fleetops/src/shadow-replay.mjs +147 -0
  52. package/fleetops/src/shadow.mjs +291 -0
  53. package/fleetops/src/stats.mjs +14 -0
  54. package/fleetops/src/traces.mjs +0 -5
  55. package/fleetops/tests/fixtures/real/README.md +5 -0
  56. package/fleetops/tools/admit-node.sh +51 -16
  57. package/fleetops/tools/amd-admit.py +111 -0
  58. package/fleetops/tools/cmd/calibrate.mjs +61 -0
  59. package/fleetops/tools/cmd/capacity.mjs +116 -0
  60. package/fleetops/tools/cmd/common.mjs +32 -0
  61. package/fleetops/tools/cmd/data.mjs +343 -0
  62. package/fleetops/tools/cmd/help.mjs +243 -0
  63. package/fleetops/tools/cmd/incidents.mjs +216 -0
  64. package/fleetops/tools/cmd/rollout.mjs +122 -0
  65. package/fleetops/tools/cmd/server.mjs +122 -0
  66. package/fleetops/tools/cmd/serving.mjs +95 -0
  67. package/fleetops/tools/cmd/shadow.mjs +204 -0
  68. package/fleetops/tools/cmd/training.mjs +79 -0
  69. package/fleetops/tools/collect.sh +6 -1
  70. package/fleetops/tools/fleetops.mjs +18 -1308
  71. package/fleetops/tools/loop-demo.mjs +1 -1
  72. package/fleetops/tools/workload-profile.mjs +0 -1
  73. package/fleetscope/README.md +5 -1
  74. package/fleetscope/build.mjs +4 -0
  75. package/fleetscope/dist/index.html +1013 -28
  76. package/fleetscope/docs/AGENTIC.md +89 -0
  77. package/fleetscope/docs/PLANNING.md +4 -2
  78. package/fleetscope/docs/VALIDATION-AGENTIC.md +37 -0
  79. package/fleetscope/package.json +4 -3
  80. package/fleetscope/src/agentic.js +288 -0
  81. package/fleetscope/src/ask.js +0 -1
  82. package/fleetscope/src/cluster-ui.js +1 -0
  83. package/fleetscope/src/engine.js +29 -13
  84. package/fleetscope/src/index.src.html +15 -5
  85. package/fleetscope/src/inference-ui.js +1 -0
  86. package/fleetscope/src/ingest.js +89 -3
  87. package/fleetscope/src/optimize.js +11 -5
  88. package/fleetscope/src/plan.js +1 -1
  89. package/fleetscope/src/training-ui.js +1 -0
  90. package/fleetscope/tools/agentic.mjs +148 -0
  91. package/fleetscope/tools/tracelab-data.mjs +27 -0
  92. package/gpu-health/README.md +13 -2
  93. package/gpu-health/docs/CONFIG.md +29 -1
  94. package/gpu-health/package.json +7 -4
  95. package/gpu-health/src/actions.mjs +16 -3
  96. package/gpu-health/src/analyze.mjs +3 -0
  97. package/gpu-health/src/config.mjs +3 -0
  98. package/gpu-health/src/executors.mjs +9 -4
  99. package/gpu-health/src/health.mjs +1 -1
  100. package/gpu-health/src/ingest.mjs +27 -3
  101. package/gpu-health/src/platforms.mjs +109 -0
  102. package/gpu-health/src/vendors.mjs +12 -5
  103. package/gpu-health/tools/gpu-health.mjs +6 -4
  104. package/gpu-ledger/README.md +3 -1
  105. package/gpu-ledger/package.json +12 -4
  106. package/gpu-ledger/src/adapters.mjs +3 -2
  107. package/gpu-ledger/src/cloud.mjs +104 -0
  108. package/gpu-ledger/src/core.mjs +12 -10
  109. package/gpu-ledger/tools/ledger.mjs +8 -2
  110. package/harness-ledger/README.md +152 -0
  111. package/harness-ledger/docs/FORMATS.md +114 -0
  112. package/harness-ledger/docs/METHOD.md +133 -0
  113. package/harness-ledger/docs/VALIDATION-ECONOMICS.md +59 -0
  114. package/harness-ledger/docs/VALIDATION-SWEBENCH.md +26 -0
  115. package/harness-ledger/docs/VALIDATION-TRACELAB.md +56 -0
  116. package/harness-ledger/package.json +19 -0
  117. package/harness-ledger/src/demo.mjs +115 -0
  118. package/harness-ledger/src/economics.mjs +184 -0
  119. package/harness-ledger/src/gpu.mjs +80 -0
  120. package/harness-ledger/src/html.mjs +63 -0
  121. package/harness-ledger/src/importers.mjs +247 -0
  122. package/harness-ledger/src/ledger.mjs +128 -0
  123. package/harness-ledger/src/opencost.mjs +55 -0
  124. package/harness-ledger/src/outcomes.mjs +67 -0
  125. package/harness-ledger/src/prices.mjs +75 -0
  126. package/harness-ledger/src/record.mjs +52 -0
  127. package/harness-ledger/src/waste.mjs +136 -0
  128. package/harness-ledger/tools/harness-ledger.mjs +199 -0
  129. package/harness-ledger/tools/validate-economics.mjs +69 -0
  130. package/harness-ledger/tools/validate-swebench.mjs +57 -0
  131. package/harness-ledger/tools/validate-tracelab.mjs +74 -0
  132. package/hybrid-tracing/package.json +4 -3
  133. package/hybrid-tracing/tools/fix-skew.mjs +1 -1
  134. package/inference-sizer/README.md +5 -1
  135. package/inference-sizer/build.mjs +1 -0
  136. package/inference-sizer/dist/index.html +299 -31
  137. package/inference-sizer/docs/ACCELERATORS.md +62 -0
  138. package/inference-sizer/docs/CATALOG.md +71 -0
  139. package/inference-sizer/docs/METHOD.md +1 -1
  140. package/inference-sizer/docs/VALIDATION-INFERENCEX.md +37 -0
  141. package/inference-sizer/package.json +4 -3
  142. package/inference-sizer/src/accelerators.js +194 -0
  143. package/inference-sizer/src/catalog.js +55 -22
  144. package/inference-sizer/src/fit-ui.js +1 -1
  145. package/inference-sizer/src/index.src.html +3 -0
  146. package/inference-sizer/src/model.js +45 -7
  147. package/inference-sizer/src/ui.js +1 -1
  148. package/inference-sizer/tools/validate-agentx.mjs +116 -0
  149. package/inference-sizer/tools/validate-inferencex.mjs +132 -0
  150. package/mcp/README.md +6 -1
  151. package/mcp/server.mjs +34 -0
  152. package/package.json +10 -6
  153. package/schemas/README.md +3 -0
  154. package/schemas/aiinfra.report.schema.json +474 -0
  155. package/schemas/commands.mjs +14 -0
  156. package/schemas/fleetops.shadow.canary.schema.json +96 -0
  157. package/schemas/fleetops.shadow.compare.schema.json +266 -0
  158. package/schemas/fleetops.shadow.prom.schema.json +354 -0
  159. package/schemas/harness-ledger.economics.schema.json +567 -0
  160. package/schemas/sizer.list.schema.json +15 -2
@@ -0,0 +1,34 @@
1
+ # Argo Rollouts: the judge as an analysis step. Every 2 minutes the AnalysisRun asks the judge to compare the canary
2
+ # ReplicaSet with the stable one at matched load. "promote" passes, "rollback" fails the run (Argo aborts the rollout),
3
+ # "wait" (not settled yet) is inconclusive. Ten waits in a row leave the run Inconclusive and the rollout paused for a person.
4
+ apiVersion: argoproj.io/v1alpha1
5
+ kind: AnalysisTemplate
6
+ metadata: { name: fleetops-shadow-gate, namespace: llm }
7
+ spec:
8
+ args:
9
+ - name: stable-hash
10
+ - name: canary-hash
11
+ - name: select # what both versions share, as Prometheus label matchers
12
+ value: 'namespace="llm",app="chat"'
13
+ - name: lookback # seconds of canary traffic to judge
14
+ value: "900"
15
+ metrics:
16
+ - name: shadow-gate
17
+ interval: 2m
18
+ count: 10
19
+ successCondition: result == "promote"
20
+ failureCondition: result == "rollback"
21
+ failureLimit: 0
22
+ inconclusiveLimit: 9
23
+ consecutiveErrorLimit: 3 # the judge or Prometheus unreachable three times in a row fails the run
24
+ provider:
25
+ web:
26
+ method: POST
27
+ url: http://fleetops-shadow-gate.fleetops.svc:9410/verdict
28
+ timeoutSeconds: 60
29
+ jsonBody:
30
+ select: "{{args.select}}"
31
+ baseline: 'rollouts_pod_template_hash="{{args.stable-hash}}"'
32
+ candidate: 'rollouts_pod_template_hash="{{args.canary-hash}}"'
33
+ lookback: "{{args.lookback}}"
34
+ jsonPath: "{$.verdict}"
@@ -0,0 +1,38 @@
1
+ # A vLLM Rollout whose canary steps wait on the judge. Swap the image or args for the change you are testing (engine
2
+ # version, --max-num-seqs, quantization…). Traffic split here is by replica count (1 of 4 pods); with a traffic router
3
+ # (Gateway API, Istio…) use setWeight as usual.
4
+ apiVersion: argoproj.io/v1alpha1
5
+ kind: Rollout
6
+ metadata: { name: chat, namespace: llm }
7
+ spec:
8
+ replicas: 4
9
+ selector: { matchLabels: { app: chat } }
10
+ template:
11
+ metadata: { labels: { app: chat } }
12
+ spec:
13
+ containers:
14
+ - name: vllm
15
+ image: vllm/vllm-openai:v0.32.0
16
+ args: [--model, Qwen/Qwen2.5-1.5B-Instruct, --port, "8000"]
17
+ ports: [{ name: http, containerPort: 8000 }]
18
+ resources: { limits: { nvidia.com/gpu: 1 } }
19
+ strategy:
20
+ canary:
21
+ steps:
22
+ - setWeight: 25
23
+ - pause: { duration: 5m } # let the canary see traffic before judging
24
+ - analysis:
25
+ templates: [{ templateName: fleetops-shadow-gate }]
26
+ args:
27
+ - name: stable-hash
28
+ valueFrom: { podTemplateHashValue: Stable }
29
+ - name: canary-hash
30
+ valueFrom: { podTemplateHashValue: Latest }
31
+ - setWeight: 50
32
+ - analysis:
33
+ templates: [{ templateName: fleetops-shadow-gate }]
34
+ args:
35
+ - name: stable-hash
36
+ valueFrom: { podTemplateHashValue: Stable }
37
+ - name: canary-hash
38
+ valueFrom: { podTemplateHashValue: Latest }
@@ -0,0 +1,34 @@
1
+ # Flagger: the judge as two webhooks. During analysis, "rollout" fails a check only when the judge says roll back
2
+ # (after `threshold` failed checks Flagger rolls back); "confirm-promotion" holds the promotion until the judge says
3
+ # promote. Flagger names the versions <name>-primary (stable) and <name> (canary): the PodMonitor copies the pod's
4
+ # app label so the judge can tell them apart.
5
+ apiVersion: flagger.app/v1beta1
6
+ kind: Canary
7
+ metadata: { name: chat, namespace: llm }
8
+ spec:
9
+ targetRef: { apiVersion: apps/v1, kind: Deployment, name: chat }
10
+ service: { port: 8000 }
11
+ analysis:
12
+ interval: 2m
13
+ threshold: 2
14
+ maxWeight: 50
15
+ stepWeight: 10
16
+ webhooks:
17
+ - name: fleetops-shadow-gate
18
+ type: rollout
19
+ url: http://fleetops-shadow-gate.fleetops.svc:9410/flagger/rollout
20
+ timeout: 60s
21
+ metadata:
22
+ select: 'namespace="llm"'
23
+ baseline: 'app="chat-primary"'
24
+ candidate: 'app="chat"'
25
+ lookback: "900"
26
+ - name: fleetops-shadow-promote
27
+ type: confirm-promotion
28
+ url: http://fleetops-shadow-gate.fleetops.svc:9410/flagger/confirm-promotion
29
+ timeout: 60s
30
+ metadata:
31
+ select: 'namespace="llm"'
32
+ baseline: 'app="chat-primary"'
33
+ candidate: 'app="chat"'
34
+ lookback: "900"
@@ -0,0 +1,51 @@
1
+ # The shadow-upgrade judge (fleetops shadow serve) for Argo Rollouts and Flagger. It reads Prometheus and answers
2
+ # promote / rollback / wait; the rollout controller decides what that does. No volume: decisions are logged to /tmp.
3
+ # Flagger webhooks can't send a token, so the judge runs without one and the NetworkPolicy admits only the rollout
4
+ # controllers' namespaces (edit them to match yours). For Argo Rollouts alone you can add --tokens instead.
5
+ apiVersion: v1
6
+ kind: Namespace
7
+ metadata: { name: fleetops }
8
+ ---
9
+ apiVersion: apps/v1
10
+ kind: Deployment
11
+ metadata: { name: fleetops-shadow-gate, namespace: fleetops, labels: { app: fleetops-shadow-gate } }
12
+ spec:
13
+ replicas: 1
14
+ selector: { matchLabels: { app: fleetops-shadow-gate } }
15
+ template:
16
+ metadata: { labels: { app: fleetops-shadow-gate } }
17
+ spec:
18
+ securityContext: { runAsNonRoot: true, runAsUser: 1000, seccompProfile: { type: RuntimeDefault } }
19
+ containers:
20
+ - name: judge
21
+ image: REGISTRY/fleetops:0.1
22
+ args: [shadow, serve, --prom, "http://prometheus-operated.monitoring.svc:9090", --host, 0.0.0.0, --port, "9410", --no-auth,
23
+ --store, /tmp/fleetops, --lookback, "900", --baseline-lookback, "21600"]
24
+ env:
25
+ - { name: FLEETOPS_EGRESS_ALLOW, value: "prometheus-operated.monitoring.svc" } # nothing else is ever called
26
+ ports: [{ name: http, containerPort: 9410 }]
27
+ readinessProbe: { httpGet: { path: /healthz, port: http }, periodSeconds: 10 }
28
+ livenessProbe: { httpGet: { path: /healthz, port: http }, periodSeconds: 30 }
29
+ resources: { requests: { cpu: 100m, memory: 128Mi }, limits: { memory: 512Mi } }
30
+ securityContext: { allowPrivilegeEscalation: false, readOnlyRootFilesystem: true, capabilities: { drop: [ALL] } }
31
+ volumeMounts: [{ name: tmp, mountPath: /tmp }]
32
+ volumes: [{ name: tmp, emptyDir: {} }]
33
+ ---
34
+ apiVersion: v1
35
+ kind: Service
36
+ metadata: { name: fleetops-shadow-gate, namespace: fleetops }
37
+ spec:
38
+ selector: { app: fleetops-shadow-gate }
39
+ ports: [{ name: http, port: 9410, targetPort: http }]
40
+ ---
41
+ apiVersion: networking.k8s.io/v1
42
+ kind: NetworkPolicy
43
+ metadata: { name: fleetops-shadow-gate, namespace: fleetops }
44
+ spec:
45
+ podSelector: { matchLabels: { app: fleetops-shadow-gate } }
46
+ policyTypes: [Ingress]
47
+ ingress:
48
+ - from:
49
+ - namespaceSelector: { matchLabels: { kubernetes.io/metadata.name: argo-rollouts } }
50
+ - namespaceSelector: { matchLabels: { kubernetes.io/metadata.name: flagger-system } }
51
+ ports: [{ port: 9410 }]
@@ -0,0 +1,35 @@
1
+ # An llm-d canary: two LLMInferenceServices (KServe v1alpha2) in one routing group. The controller turns their weights
2
+ # into weighted backendRefs on each member's HTTPRoute; weights are proportional (0–1,000,000). Here the candidate starts
3
+ # at 1%. `fleetops shadow canary start/advance` rewrites only spec.router.route on each (kubectl patch, merge).
4
+ # Change the candidate's image or VLLM_ADDITIONAL_ARGS for the change under test.
5
+ apiVersion: serving.kserve.io/v1alpha2
6
+ kind: LLMInferenceService
7
+ metadata: { name: chat-v1, namespace: llm }
8
+ spec:
9
+ model: { uri: "hf://Qwen/Qwen2.5-7B-Instruct", name: Qwen/Qwen2.5-7B-Instruct }
10
+ replicas: 4
11
+ router:
12
+ route: { group: chat, weight: 990000 }
13
+ scheduler: {}
14
+ template:
15
+ containers:
16
+ - name: main
17
+ image: ghcr.io/llm-d/llm-d-cuda:v0.9.0
18
+ resources: { limits: { nvidia.com/gpu: "1" }, requests: { nvidia.com/gpu: "1" } }
19
+ ---
20
+ apiVersion: serving.kserve.io/v1alpha2
21
+ kind: LLMInferenceService
22
+ metadata: { name: chat-v2, namespace: llm }
23
+ spec:
24
+ model: { uri: "hf://Qwen/Qwen2.5-7B-Instruct", name: Qwen/Qwen2.5-7B-Instruct }
25
+ replicas: 1
26
+ router:
27
+ route: { group: chat, weight: 10000 }
28
+ scheduler: {}
29
+ template:
30
+ containers:
31
+ - name: main
32
+ image: ghcr.io/llm-d/llm-d-cuda:v0.9.0
33
+ env:
34
+ - { name: VLLM_ADDITIONAL_ARGS, value: "--max-num-seqs 128" }
35
+ resources: { limits: { nvidia.com/gpu: "1" }, requests: { nvidia.com/gpu: "1" } }
@@ -0,0 +1,20 @@
1
+ # Scrape vLLM with the labels the judge selects versions by (Prometheus Operator). Each relabeling copies a pod label
2
+ # into a metric label:
3
+ # app.kubernetes.io/name → llm_isvc_name (llm-d controlled deployments, as Red Hat's guide does)
4
+ # rollouts-pod-template-hash → rollouts_pod_template_hash (Argo Rollouts: stable vs canary ReplicaSet)
5
+ # app → app (Flagger: <name>-primary vs <name>)
6
+ apiVersion: monitoring.coreos.com/v1
7
+ kind: PodMonitor
8
+ metadata: { name: vllm, namespace: llm }
9
+ spec:
10
+ selector: { matchExpressions: [{ key: app, operator: Exists }] }
11
+ podMetricsEndpoints:
12
+ - port: http # vLLM serves /metrics on its API port (8000); name that port "http"
13
+ path: /metrics
14
+ interval: 10s
15
+ relabelings:
16
+ - { sourceLabels: [__meta_kubernetes_pod_label_app_kubernetes_io_name], targetLabel: llm_isvc_name }
17
+ - { sourceLabels: [__meta_kubernetes_pod_label_rollouts_pod_template_hash], targetLabel: rollouts_pod_template_hash }
18
+ - { sourceLabels: [__meta_kubernetes_pod_label_app], targetLabel: app }
19
+ - { sourceLabels: [__meta_kubernetes_namespace], targetLabel: namespace }
20
+ - { sourceLabels: [__meta_kubernetes_pod_name], targetLabel: pod }
@@ -0,0 +1,41 @@
1
+ # Shadow upgrades on real engines
2
+
3
+ The statistics behind `fleetops shadow` are tested on synthetic data and mock endpoints. This kit runs the whole thing
4
+ on real vLLM engines, so the judge's verdicts can be checked against a change whose effect is known. **It has not been
5
+ run yet**; the first run's results belong in [docs/RESULTS.md](../../../docs/RESULTS.md).
6
+
7
+ ## What you need
8
+
9
+ - A Kubernetes cluster with **three 1-GPU NVIDIA L4 nodes** labelled `nvidia.com/gpu.product=NVIDIA-L4` (GPU Feature
10
+ Discovery sets this; the NVIDIA GPU Operator installs it). On a public cloud that is about $1–2 an hour on spot.
11
+ - `kubectl` pointed at it, Node 22, and this repository.
12
+ - Nothing secret: the model (Qwen2.5-1.5B-Instruct, Apache-2.0) is not gated, and the workload comes from TraceLab
13
+ (CC BY 4.0), fetched at a pinned release.
14
+
15
+ ## What it does
16
+
17
+ | Step | What runs | What the judge should say |
18
+ | --- | --- | --- |
19
+ | Deploy | `kit.yaml`: `chat-v1` (vLLM v0.32.0, prefix caching on, 2 replicas), `chat-v2` (the same with `--no-enable-prefix-caching`, 1 replica), Prometheus labelling each version `llm_isvc_name` | — |
20
+ | A. Paired replay | One replica of each. `shadow answers`, then `shadow replay` of agent sessions (prompts up to 12k tokens, sessions sharing growing prefixes) to both at the same moments, then `shadow compare` | TTFT clearly **worse** (no prefix reuse); answers the same or nearly (prefix caching shouldn't change greedy tokens) → **roll back** |
21
+ | B. Canary from Prometheus | Two baseline replicas and the candidate behind one Service (a canary at a third of the traffic). `vllm bench serve` in the cluster at 2 and 6 req/s, every prompt sharing a 1,500-token prefix. Then `shadow prom` on the per-version metrics | TTFT **worse** at matched load → **roll back** |
22
+ | The judge | `shadow serve` against the same Prometheus, called the way an Argo Rollouts AnalysisTemplate calls it | `{"verdict":"rollback",…}` |
23
+
24
+ ```bash
25
+ deploy/shadow-live/run.sh # deploy and print the dry runs: nothing is sent
26
+ deploy/shadow-live/run.sh --yes # send the traffic; the namespace is deleted at the end (--keep to leave it)
27
+ ```
28
+
29
+ Results land in `deploy/shadow-live/out/`: `paired-verdict.txt`, `canary-verdict.txt`, `judge.json`, and
30
+ `canary-series.json` (the Prometheus series, to rerun with `fleetops shadow prom --file`).
31
+
32
+ If a step fails, `out/diag.txt` holds the pods, recent events, GPU counts per node and the engines' last log lines.
33
+ The first start is slow: each node pulls the vLLM image (several GB) and the model before the engine starts, so the
34
+ engine Deployments allow 40 minutes to become ready rather than Kubernetes' 10-minute default.
35
+
36
+ On GKE, the L4 nodes carry `cloud.google.com/gke-accelerator=nvidia-l4` but not the label above; add it with
37
+ `kubectl label nodes -l cloud.google.com/gke-accelerator=nvidia-l4 nvidia.com/gpu.product=NVIDIA-L4`. Create the GPU node
38
+ pool with `--accelerator type=nvidia-l4,count=1,gpu-driver-version=latest` so the driver is installed for you.
39
+
40
+ For an engine upgrade instead of a known change, set `chat-v2`'s image to the new vLLM version and drop
41
+ `--no-enable-prefix-caching`; there the verdict is what you want to learn.
@@ -0,0 +1,123 @@
1
+ # Shadow upgrades on real engines: three 1-GPU NVIDIA L4 nodes, two vLLM versions and a Prometheus. See README.md.
2
+ # chat-v1 the baseline: vLLM v0.32.0, Qwen2.5-1.5B-Instruct, prefix caching on (vLLM's default). Two replicas.
3
+ # chat-v2 the candidate: the same with prefix caching off: a change whose direction is known (agent sessions reuse
4
+ # long prefixes, so TTFT should get worse), to check that the judge sees it. For an engine upgrade, change
5
+ # this Deployment's image instead.
6
+ # Services: chat-v1 and chat-v2 (one version each, for paired replay), chat (all three pods: a canary at a third of the
7
+ # traffic, judged from Prometheus). Prometheus labels each version llm_isvc_name, as llm-d's controlled deployments do.
8
+ apiVersion: v1
9
+ kind: Namespace
10
+ metadata: { name: shadow-live }
11
+ ---
12
+ apiVersion: apps/v1
13
+ kind: Deployment
14
+ metadata: { name: chat-v1, namespace: shadow-live }
15
+ spec:
16
+ replicas: 2
17
+ progressDeadlineSeconds: 2400 # pulling the vLLM image, fetching the model and starting the engine can pass the 10-minute default
18
+ selector: { matchLabels: { app.kubernetes.io/name: chat-v1 } }
19
+ template:
20
+ metadata: { labels: { app: chat, app.kubernetes.io/name: chat-v1 } }
21
+ spec:
22
+ nodeSelector: { nvidia.com/gpu.product: NVIDIA-L4 }
23
+ containers:
24
+ - name: vllm
25
+ image: vllm/vllm-openai:v0.32.0
26
+ args: [--model, Qwen/Qwen2.5-1.5B-Instruct, --served-model-name, chat, --port, "8000", --max-model-len, "16384", --gpu-memory-utilization, "0.9"]
27
+ ports: [{ name: http, containerPort: 8000 }]
28
+ readinessProbe: { httpGet: { path: /health, port: http }, periodSeconds: 10, failureThreshold: 60 }
29
+ resources: { limits: { nvidia.com/gpu: 1 }, requests: { cpu: "2", memory: 12Gi } }
30
+ volumeMounts: [{ name: shm, mountPath: /dev/shm }]
31
+ volumes: [{ name: shm, emptyDir: { medium: Memory, sizeLimit: 2Gi } }]
32
+ ---
33
+ apiVersion: apps/v1
34
+ kind: Deployment
35
+ metadata: { name: chat-v2, namespace: shadow-live }
36
+ spec:
37
+ replicas: 1
38
+ progressDeadlineSeconds: 2400 # pulling the vLLM image, fetching the model and starting the engine can pass the 10-minute default
39
+ selector: { matchLabels: { app.kubernetes.io/name: chat-v2 } }
40
+ template:
41
+ metadata: { labels: { app: chat, app.kubernetes.io/name: chat-v2 } }
42
+ spec:
43
+ nodeSelector: { nvidia.com/gpu.product: NVIDIA-L4 }
44
+ containers:
45
+ - name: vllm
46
+ image: vllm/vllm-openai:v0.32.0
47
+ args: [--model, Qwen/Qwen2.5-1.5B-Instruct, --served-model-name, chat, --port, "8000", --max-model-len, "16384", --gpu-memory-utilization, "0.9",
48
+ --no-enable-prefix-caching]
49
+ ports: [{ name: http, containerPort: 8000 }]
50
+ readinessProbe: { httpGet: { path: /health, port: http }, periodSeconds: 10, failureThreshold: 60 }
51
+ resources: { limits: { nvidia.com/gpu: 1 }, requests: { cpu: "2", memory: 12Gi } }
52
+ volumeMounts: [{ name: shm, mountPath: /dev/shm }]
53
+ volumes: [{ name: shm, emptyDir: { medium: Memory, sizeLimit: 2Gi } }]
54
+ ---
55
+ apiVersion: v1
56
+ kind: Service
57
+ metadata: { name: chat-v1, namespace: shadow-live }
58
+ spec: { selector: { app.kubernetes.io/name: chat-v1 }, ports: [{ name: http, port: 8000, targetPort: http }] }
59
+ ---
60
+ apiVersion: v1
61
+ kind: Service
62
+ metadata: { name: chat-v2, namespace: shadow-live }
63
+ spec: { selector: { app.kubernetes.io/name: chat-v2 }, ports: [{ name: http, port: 8000, targetPort: http }] }
64
+ ---
65
+ apiVersion: v1
66
+ kind: Service
67
+ metadata: { name: chat, namespace: shadow-live }
68
+ spec: { selector: { app: chat }, ports: [{ name: http, port: 8000, targetPort: http }] }
69
+ ---
70
+ # Prometheus scraping the vLLM pods of this namespace every 10 s
71
+ apiVersion: v1
72
+ kind: ServiceAccount
73
+ metadata: { name: prometheus, namespace: shadow-live }
74
+ ---
75
+ apiVersion: rbac.authorization.k8s.io/v1
76
+ kind: Role
77
+ metadata: { name: prometheus, namespace: shadow-live }
78
+ rules: [{ apiGroups: [""], resources: [pods], verbs: [get, list, watch] }]
79
+ ---
80
+ apiVersion: rbac.authorization.k8s.io/v1
81
+ kind: RoleBinding
82
+ metadata: { name: prometheus, namespace: shadow-live }
83
+ roleRef: { apiGroup: rbac.authorization.k8s.io, kind: Role, name: prometheus }
84
+ subjects: [{ kind: ServiceAccount, name: prometheus, namespace: shadow-live }]
85
+ ---
86
+ apiVersion: v1
87
+ kind: ConfigMap
88
+ metadata: { name: prometheus, namespace: shadow-live }
89
+ data:
90
+ prometheus.yml: |
91
+ global: { scrape_interval: 10s }
92
+ scrape_configs:
93
+ - job_name: vllm
94
+ kubernetes_sd_configs: [{ role: pod, namespaces: { names: [shadow-live] } }]
95
+ relabel_configs:
96
+ - { source_labels: [__meta_kubernetes_pod_label_app], regex: chat, action: keep }
97
+ - { source_labels: [__meta_kubernetes_pod_container_port_name], regex: http, action: keep }
98
+ - { source_labels: [__meta_kubernetes_pod_label_app_kubernetes_io_name], target_label: llm_isvc_name }
99
+ - { source_labels: [__meta_kubernetes_namespace], target_label: namespace }
100
+ - { source_labels: [__meta_kubernetes_pod_name], target_label: pod }
101
+ ---
102
+ apiVersion: apps/v1
103
+ kind: Deployment
104
+ metadata: { name: prometheus, namespace: shadow-live }
105
+ spec:
106
+ replicas: 1
107
+ selector: { matchLabels: { app: prometheus } }
108
+ template:
109
+ metadata: { labels: { app: prometheus } }
110
+ spec:
111
+ serviceAccountName: prometheus
112
+ containers:
113
+ - name: prometheus
114
+ image: prom/prometheus:v3.5.0
115
+ args: [--config.file=/etc/prometheus/prometheus.yml, --storage.tsdb.retention.time=2d]
116
+ ports: [{ name: web, containerPort: 9090 }]
117
+ volumeMounts: [{ name: config, mountPath: /etc/prometheus }]
118
+ volumes: [{ name: config, configMap: { name: prometheus } }]
119
+ ---
120
+ apiVersion: v1
121
+ kind: Service
122
+ metadata: { name: prometheus, namespace: shadow-live }
123
+ spec: { selector: { app: prometheus }, ports: [{ name: web, port: 9090, targetPort: web }] }
@@ -0,0 +1,26 @@
1
+ # In-cluster load through the shared Service `chat` (kube-proxy spreads it over all three pods, so chat-v2 is a canary
2
+ # at about a third of the traffic). vLLM's own benchmark client, from the image the nodes already pulled; CPU only.
3
+ # Every prompt shares a 1,500-token prefix, so prefix caching matters: the candidate (caching off) should be slower to
4
+ # first token. Two phases at different rates give the judge a range of load to match on.
5
+ apiVersion: batch/v1
6
+ kind: Job
7
+ metadata: { name: load-canary, namespace: shadow-live }
8
+ spec:
9
+ backoffLimit: 0
10
+ template:
11
+ spec:
12
+ restartPolicy: Never
13
+ containers:
14
+ - name: bench
15
+ image: vllm/vllm-openai:v0.32.0
16
+ command: [bash, -c]
17
+ args:
18
+ - |
19
+ set -e
20
+ for rate in 2 6; do
21
+ vllm bench serve --backend openai --base-url http://chat.shadow-live.svc:8000 --endpoint /v1/completions \
22
+ --model chat --tokenizer Qwen/Qwen2.5-1.5B-Instruct --dataset-name random \
23
+ --random-prefix-len 1500 --random-input-len 500 --random-output-len 200 \
24
+ --num-prompts $((rate * 900)) --request-rate $rate --burstiness 0.5 --seed $rate
25
+ done
26
+ resources: { requests: { cpu: "2", memory: 4Gi } }
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env bash
2
+ # Shadow upgrades on real engines, end to end, on three 1-GPU NVIDIA L4 nodes (see README.md).
3
+ # deploy/shadow-live/run.sh deploy, then show what would be sent (dry runs) and stop
4
+ # deploy/shadow-live/run.sh --yes also send the traffic: paired replay, the answers check, in-cluster canary load
5
+ # add --keep to leave the namespace up afterwards (it is deleted otherwise)
6
+ # Needs kubectl pointed at the cluster, node 22 and this repository. Results land in deploy/shadow-live/out/.
7
+ set -euo pipefail
8
+ here="$(cd "$(dirname "$0")" && pwd)"; repo="$(cd "$here/../../.." && pwd)"; out="$here/out"; store="$out/store"
9
+ F=(node "$repo/fleetops/tools/fleetops.mjs"); A=(node "$repo/fleetscope/tools/agentic.mjs")
10
+ live=""; keep=""; for a in "$@"; do case "$a" in --yes) live="--live";; --keep) keep=1;; *) echo "unknown argument $a" >&2; exit 2;; esac; done
11
+ mkdir -p "$out"; NS=(-n shadow-live); PIDS=()
12
+ diag() { # what a failed step needs to be read: pods, recent events, nodes and the engines' last log lines
13
+ { kubectl "${NS[@]}" get pods -o wide; echo; kubectl "${NS[@]}" get events --sort-by=.lastTimestamp | tail -40; echo
14
+ kubectl get nodes -l nvidia.com/gpu.product=NVIDIA-L4 -o custom-columns=NODE:.metadata.name,GPUS:.status.allocatable.nvidia\.com/gpu; echo
15
+ for d in chat-v1 chat-v2; do echo "-- $d"; kubectl "${NS[@]}" describe deploy "$d" | tail -15; kubectl "${NS[@]}" logs "deploy/$d" --tail=40 2>&1 || true; done
16
+ } > "$out/diag.txt" 2>&1 || true; echo "diagnostics written to $out/diag.txt" >&2; }
17
+ cleanup() { rc=$?; [ "$rc" -eq 0 ] || diag; for p in "${PIDS[@]}"; do kill "$p" 2>/dev/null || true; done; if [ -z "$keep" ] && [ -n "$live" ]; then kubectl delete -f "$here/kit.yaml" --ignore-not-found --wait=false; fi; }
18
+ trap cleanup EXIT
19
+
20
+ n=$(kubectl get nodes -l nvidia.com/gpu.product=NVIDIA-L4 -o name | wc -l)
21
+ [ "$n" -ge 3 ] || echo "warning: $n nodes labelled nvidia.com/gpu.product=NVIDIA-L4 (three are needed: two baseline replicas and the candidate)" >&2
22
+
23
+ echo "== deploy"; kubectl apply -f "$here/kit.yaml"
24
+ kubectl "${NS[@]}" rollout status deploy/prometheus --timeout=10m
25
+ kubectl "${NS[@]}" rollout status deploy/chat-v1 --timeout=40m; kubectl "${NS[@]}" rollout status deploy/chat-v2 --timeout=40m
26
+ pf() { kubectl "${NS[@]}" port-forward "svc/$1" "$2:$3" >/dev/null 2>&1 & PIDS+=($!); }
27
+ pf chat-v1 18001 8000; pf chat-v2 18002 8000; pf prometheus 19090 9090; sleep 5
28
+
29
+ echo "== workload: agent sessions fitted on TraceLab (CC BY 4.0, fetched at a pinned release)"
30
+ [ -f "$out/profile.json" ] || "${A[@]}" fit tracelab -o "$out/profile.json"
31
+
32
+ echo "== A. paired replay: the same requests to one replica of each version"
33
+ kubectl "${NS[@]}" scale deploy/chat-v1 --replicas=1; kubectl "${NS[@]}" rollout status deploy/chat-v1 --timeout=10m; sleep 5
34
+ "${F[@]}" shadow answers --baseline http://127.0.0.1:18001 --candidate http://127.0.0.1:18002 --model chat $live --out "$out/answers.json" --store "$store"
35
+ "${F[@]}" shadow replay --trace "$out/profile.json" --sessions-per-hour 120 --duration 900 --max-isl 12000 --max-osl 1024 --max-requests 4000 \
36
+ --baseline http://127.0.0.1:18001 --candidate http://127.0.0.1:18002 --model chat $live --out "$out/paired.jsonl" --store "$store"
37
+ if [ -z "$live" ]; then echo "dry run: add --yes to send the traffic. The namespace stays up: kubectl delete -f $here/kit.yaml"; exit 0; fi
38
+ "${F[@]}" shadow compare --results "$out/paired.jsonl" --answers "$out/answers.json" --store "$store" | tee "$out/paired-verdict.txt"
39
+
40
+ echo "== B. canary at a third of the traffic, judged from Prometheus"
41
+ kubectl "${NS[@]}" scale deploy/chat-v1 --replicas=2; kubectl "${NS[@]}" rollout status deploy/chat-v1 --timeout=20m
42
+ t0=$(date +%s)
43
+ kubectl "${NS[@]}" delete job load-canary --ignore-not-found; kubectl apply -f "$here/load-canary.yaml"
44
+ kubectl "${NS[@]}" wait --for=condition=complete job/load-canary --timeout=60m
45
+ t1=$(date +%s)
46
+ "${F[@]}" shadow prom --prom http://127.0.0.1:19090 --select 'namespace="shadow-live"' --baseline 'llm_isvc_name="chat-v1"' --candidate 'llm_isvc_name="chat-v2"' \
47
+ --from "$t0" --to "$t1" --step 30 --save "$out/canary-series.json" --store "$store" | tee "$out/canary-verdict.txt"
48
+
49
+ echo "== the judge, called the way Argo Rollouts calls it"
50
+ "${F[@]}" shadow serve --prom http://127.0.0.1:19090 --port 19410 --step 30 --store "$store" & PIDS+=($!); sleep 3
51
+ curl -sS -X POST http://127.0.0.1:19410/verdict -H 'content-type: application/json' \
52
+ -d "{\"select\":\"namespace=\\\"shadow-live\\\"\",\"baseline\":\"llm_isvc_name=\\\"chat-v1\\\"\",\"candidate\":\"llm_isvc_name=\\\"chat-v2\\\"\",\"lookback\":$(( $(date +%s) - t0 ))}" | tee "$out/judge.json"; echo
53
+ echo "results in $out (paired-verdict.txt, canary-verdict.txt, judge.json, canary-series.json)"
@@ -19,15 +19,15 @@ fleetops admit check gpu-a17
19
19
  fleetops admit apply gpu-a17 # admit-node waits for approval; reject-node runs on its own (dry run unless --live)
20
20
  ```
21
21
 
22
- `admit-node.sh` changes nothing on the node. Each part is skipped with a note when its tool is missing:
22
+ `admit-node.sh` changes nothing on the node. It runs on NVIDIA nodes (`nvidia-smi`) and on AMD nodes (`amd-smi`). Each part is skipped with a note when its tool is missing:
23
23
 
24
24
  | Part | Runs | Record |
25
25
  |---|---|---|
26
- | versions | `nvidia-smi` (driver, VBIOS, CUDA, GPU model and count), `uname -r`, NCCL through PyTorch | inventory |
27
- | topology | PCIe generation (maximum) and width (current) per GPU, active NVLink links | check, topology |
28
- | dcgm-diag | `dcgmi diag -r 3` (`--diag-level`) | check |
29
- | nccl | `all_reduce_perf` from nccl-tests on every GPU of the node, 1–4 GB messages | check (bus bandwidth) |
30
- | burn-in | with `--burn-in`: `dcgmproftester` tensor load, the hottest GPU sampled every 30 s, new XIDs counted | check |
26
+ | versions | NVIDIA: `nvidia-smi` (driver, VBIOS, CUDA, GPU model and count). AMD: `amd-smi static` (driver, IFWI, model and count) and `/opt/rocm/.info/version`. Both: `uname -r`, NCCL or RCCL through PyTorch | inventory |
27
+ | topology | PCIe generation (maximum) and width (current) per GPU; active NVLink links (`nvidia-smi nvlink -s`) or XGMI links (`amd-smi topology`) | check, topology |
28
+ | diag | NVIDIA: `dcgmi diag -r 3` (`--diag-level`), recorded as `dcgm-diag`. AMD: the ROCm Validation Suite, `rvs -c CONF` (`--rvs-conf`; default `gst_single.conf`), recorded as `rvs-diag` | check |
29
+ | nccl | `all_reduce_perf` from nccl-tests (NVIDIA) or rccl-tests (AMD) on every GPU of the node, 1–4 GB messages | check (bus bandwidth) |
30
+ | burn-in | with `--burn-in`, NVIDIA only: `dcgmproftester` tensor load, the hottest GPU sampled every 30 s, new XIDs counted. On AMD, run your own load: the check counts hours under load from the exporter's samples | check |
31
31
  | sdc-canary | `tools/sdc-canary.py` | sdc_check |
32
32
 
33
33
  `fleetops admit check NODE` judges six checks:
@@ -35,11 +35,11 @@ fleetops admit apply gpu-a17 # admit-node waits for approval; reject-
35
35
  | Check | Passes when | Compared with |
36
36
  |---|---|---|
37
37
  | burn-in | `burnInS` (6 h) at ≥ 50% load with no hard fault, no new uncorrectable ECC error, no pending row remap, GPU ≤ 87 °C, HBM ≤ 95 °C | DCGM samples from the store (preferred), or the script's burn-in record |
38
- | dcgm-diag | the diagnostic passed | — |
38
+ | diag | the vendor's diagnostic passed (`dcgm-diag` or `rvs-diag`; a policy that lists `dcgm-diag` means this check) | — |
39
39
  | sdc-canary | every GPU ran the canary and agreed with its peers or the golden values | — |
40
40
  | nccl | all-reduce bus bandwidth ≥ 90% of the reference | the median of the same SKU's admitted nodes (at least 3), or `ncclRef` in the policy |
41
- | topology | as many GPUs and NVLink links, and the same PCIe link, as the same SKU's other nodes | peers |
42
- | versions | driver, CUDA, firmware, VBIOS, NCCL and kernel equal to the baseline | `golden` in the policy, or what most admitted nodes of the SKU run |
41
+ | topology | as many GPUs and scale-up links (NVLink or XGMI), and the same PCIe link, as the same SKU's other nodes | peers |
42
+ | versions | driver, CUDA or ROCm, firmware, VBIOS or IFWI, NCCL or RCCL, and kernel equal to the baseline | `golden` in the policy, or what most admitted nodes of the SKU run |
43
43
 
44
44
  The verdict:
45
45
  - **reject** if any required check fails, with the evidence;
@@ -12,7 +12,7 @@ bucket.
12
12
  | `perfquery [-x] LID PORT` (InfiniBand) | `data import perfquery FILE --switch leaf-03` | `port`: symbol errors, link recovery, link downs, receive errors, xmit discards, xmit wait, data |
13
13
  | `ibqueryerrors` | `data import ibqueryerrors FILE` | `port`: every switch port with errors, fabric-wide |
14
14
  | `ethtool -S IFACE` (RoCE NIC) | `data import ethtool FILE --node N --iface I` | `port` on the node's side: PFC pause frames, discards, out-of-buffer, link downs |
15
- | `/sys/class/infiniband/*/ports/*/{counters,hw_counters}` (IB or RoCE host port) | `data import ib-sysfs FILE --node N` (`grep -H .` output) | `port` on the node's side: the IB port counters, plus CNPs sent, ECN marks, ACK timeouts and out-of-sequence from `hw_counters` (ethtool -S does not have these) |
15
+ | `/sys/class/infiniband/*/ports/*/{counters,hw_counters}` (IB or RoCE host port; AWS EFA devices too: SRD retransmits, retransmit timeouts, impaired and unresponsive remote connections, RDMA errors) | `data import ib-sysfs FILE --node N` (`grep -H .` output) | `port` on the node's side: the IB port counters, plus CNPs sent, ECN marks, ACK timeouts and out-of-sequence from `hw_counters` (ethtool -S does not have these) |
16
16
  | UFM telemetry, SONiC, SNMP through Prometheus | `data import fabric-prom range.json [--map metric=field]` | `port`, metric names mapped by pattern (`PortXmitWait*`, `ifInErrors`, `*pfc*`, `*ecn*`, `ifHCInOctets`, …), switch and port from common labels |
17
17
  | anything else | `data import ports FILE` (JSON lines) | `port` |
18
18
  | Lustre `lctl get_param obdfilter.*.job_stats` on the OSS | `data import lustre-jobstats now.txt --before then.txt` (a file read from `/proc/fs/lustre/.../<fs>-OST0003/job_stats` takes the target from its path, or `--target`) | `storage`: reads, writes and metadata per OST per job; latency on servers that keep it (not 2.10) |
@@ -97,6 +97,15 @@ What happens:
97
97
  its pool-sizing and latency recommendations cover the new pool without `--pools` or `--targets`. The manifest is
98
98
  kept beside them; `fleetops serving delete NAME --apply` removes both.
99
99
 
100
+ ### Cloud TPU on GKE
101
+
102
+ `--gpu TPU-v6e`, `TPU-v5p` or `TPU7x` renders a TPU deployment:
103
+ - the `vllm/vllm-tpu` image;
104
+ - chips requested as `google.com/tpu`;
105
+ - the slice selected by `cloud.google.com/gke-tpu-accelerator` and `cloud.google.com/gke-tpu-topology` (for example `tpu-v6e-slice` and `2x4`), the shape GKE's vLLM-on-Trillium tutorial uses.
106
+
107
+ KV-cache and weight quantization flags are left out, so the vllm-tpu release you pin uses its own defaults.
108
+
100
109
  ### Disaggregated prefill/decode on llm-d
101
110
 
102
111
  ```bash
@@ -156,7 +165,8 @@ setting for constrained clusters), and pods carry no CPU or memory requests (add
156
165
  ### What it does not do
157
166
 
158
167
  - **Disaggregated roles across nodes,** or NVIDIA Dynamo. llm-d is the disaggregated path (above).
159
- - **Pick an image version.** The default `vllm/vllm-openai:latest` (`rocm/vllm` on AMD) is a moving tag; pin one with
168
+ - **Multi-host TPU slices.** On Cloud TPU, an instance gets one TPU host: 8 chips on v6e, 4 on v5p and TPU7x. A layout that needs more says so. P/D on TPU is not rendered either: llm-d's guide here has no validated TPU image.
169
+ - **Pick an image version.** The default `vllm/vllm-openai:latest` (`rocm/vllm` on AMD, `vllm/vllm-tpu` on TPU) is a moving tag; pin one with
160
170
  `--image` for production.
161
171
  - **Fetch secrets.** The Hugging Face token comes from a Secret you create.
162
172
  - **Know your GPUs' real speed until calibrated.** The sizer uses spec-sheet efficiencies; after