Repository navigation
Description
Context & Rationale
GatewayRouter.scale_vllm (src/devops_cli/ai/gateway.py:475-512) multiplies by a literal 24 GB per GPU and defaults tensor parallelism to a literal 2. --apply only runs kubectl scale --replicas (gateway.py:308-326) on a vllm Deployment that no longer exists, yet the ai_vllm_scale MCP tool claims to "Inspect or configure" (ai/mcp/server.py:2762). LightLLM was removed in #727, together with scale_lightllm, the --backend option and the ai_lightllm_scale MCP tool, so scale always reports dual-GPU vLLM figures, though #734 removed the last vLLM workloads from k8s/llm in favor of the per-VRAM-tier Ollama DaemonSets. vibes observation 20 §2c found the model id, TP=2 and 24 GB literals in the vLLM scaler. #457 has since moved vLLM identity into DEFAULT_VLLM_* (config/defaults.py:90-96), which was a hand-written copy of the manifests and, since #734, names Services (vllm-48gib, vllm-16gib) that no longer exist. KV-cache discovery (ai/gateway_bench.py:71) and GPU discovery (ai/gateway_tune.py:188-228) already exist, but only tune uses them. The cluster runs no Portkey Deployment (kubectl get deploy -n llm).
Scope & Deliverables
- Context & Rationale*:
GatewayRouter.scale_vllm(src/devops_cli/ai/gateway.py:475-512) multiplies by a literal 24 GB per GPU and defaults tensor parallelism to a literal 2.--applyonly runskubectl scale --replicas(gateway.py:308-326) on avllmDeployment that no longer exists, yet theai_vllm_scaleMCP tool claims to "Inspect or configure" (ai/mcp/server.py:2762). LightLLM was removed in chore(ai): remove unused lightllm inference backend #727, together withscale_lightllm, the--backendoption and theai_lightllm_scaleMCP tool, soscalealways reports dual-GPU vLLM figures, though feat(k8s): modernize monitoring stack, llm profiles, traefik routing, and remove squid proxy #734 removed the last vLLM workloads fromk8s/llmin favor of the per-VRAM-tier Ollama DaemonSets. vibes observation 20 §2c found the model id, TP=2 and 24 GB literals in the vLLM scaler. feat(k8s): place vLLM and Ollama by GPU architecture behind an authenticated LLM gateway #457 has since moved vLLM identity intoDEFAULT_VLLM_*(config/defaults.py:90-96), which was a hand-written copy of the manifests and, since feat(k8s): modernize monitoring stack, llm profiles, traefik routing, and remove squid proxy #734, names Services (vllm-48gib,vllm-16gib) that no longer exist. KV-cache discovery (ai/gateway_bench.py:71) and GPU discovery (ai/gateway_tune.py:188-228) already exist, but onlytuneuses them. The cluster runs no Portkey Deployment (kubectl get deploy -n llm). - Deliverable*: PR1: remove
--tensor-parallel-sizefromscaleand theai_vllm_scaleMCP tool. Reword the tool description to "Inspect" and regeneratedocs/MCP_TOOLS.mdand the CLI reference. Report GPU memory fromdeployment_gpus, or "unknown", never 24. chore(ai): remove unused lightllm inference backend #727 already removed--backend, and novllm-singleworkload remains after feat(k8s): modernize monitoring stack, llm profiles, traefik routing, and remove squid proxy #734, so there is no backend to validate or add. PR2: promote the manifest helpers intests/test_k8s_llm_gateway.py:41-55into src, and parse container args with stdlibargparseparse_known_argsso--flag=valueworks. Read live Deployments throughgateway_tune._kubectl. feat(k8s): modernize monitoring stack, llm profiles, traefik routing, and remove squid proxy #734 removed the vLLM profiles fromk8s/llm, sokubectl kustomize k8s/llmhas no vLLM manifest to fall back on: tests use a fixture manifest and offline runs report "unknown". The parser yields each profile's model, served name, TP, max-model-len, KV dtype and GPU limit.scaleand feat(ai): llm gateway tuning render and apply configuration with rollback #478 consume it, andscalestops readingDEFAULT_VLLM_*. A fixture test asserts that the report changes when a manifest's model or TP changes. PR3 (optional): a fit column comparingengine_infokv_cache_tokenswith max-model-len. Point feat(k8s): place vLLM and Ollama by GPU architecture behind an authenticated LLM gateway #453's Remaining note here. LightLLM was retired in chore(ai): remove unused lightllm inference backend #727; whether to retire or deploy Portkey is a separate decision. - Constraint*: A hand-written registry is one more copy of each model name.
DEFAULT_K8S_DIRis relative to the working directory (config/defaults.py:432) andk8s/is not in the wheel, so files in the checkout do not show what is deployed. Do not gate onestimate_hardware_requirements(security/aibom.py:73). It put the 65536-token dual-GPU vLLM profile, which worked until feat(k8s): modernize monitoring stack, llm profiles, traefik routing, and remove squid proxy #734 removed it, at 56.0 GB, against the 48 GB thatscalereports, so a gate on either figure would reject a working deployment or pass a phantom one. Do not import vLLM's argument parser, which pulls in the whole engine. A weight estimate from safetensors headers would addhuggingface_hub, which is absent fromuv.lock, so it stays future work. - Measured*:
CliRunner().invoke(ai_gateway.app, ["scale", "--tensor-parallel-size", "4", "--format", "json"])returnstotal_vram_gb96 and statusinspected.grep -cE '\b24\b' src/devops_cli/ai/gateway.pyreturns 3. The--backend lightllmand--backend vllm-singlemeasurements went with--backendin chore(ai): remove unused lightllm inference backend #727. - Source*: vibes
observations/devops-cli/20-model-failover-capability-cliffs-and-one-way-degradation-ratchets.md
Note (2026-10-01): #820 removes scale_vllm, ai_vllm_scale and the other vLLM leftovers. If #820 lands first, this item is rescoped to the Ollama tiers or closed as not planned; a person decides.
Strategic Alignment
- Milestone:
v0.2.23(devops ai Review Quality, LLM Routing & Multi-Language Validation) - Roadmap Reference:
docs/ROADMAP.md
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 1, 2026
Moved from the shipped v0.2.23 to the backlog. It is still valid (checked 2026-10-01), and P2 items don't displace P1 work in the planned releases.
dan-petty commentedon Oct 2, 2026
Grooming (2026-10-02): closing as not planned. Its premise is gone: v0.2.24 removed the vLLM deployments (#734), and
k8s/llm/profilesnow holds only the Ollama profiles. #820 removes the vLLM code, config and policies left behind, #598 covers Ollama per-pod model residency, and #478 covers the gateway configuration this item fed. A skeptic re-check upheld the close.