Skip to content

feat(k8s): schedule vllm and ollama dynamically by architecture and vram capacity - #655

Merged
dan-petty merged 2 commits into
release/v0.2.23from
fix/ollama-profiles-node-affinity
Sep 28, 2026
Merged

dan-petty merged 2 commits into
release/v0.2.23from
fix/ollama-profiles-node-affinity

Conversation

@dan-petty

@dan-petty dan-petty commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Implemented dynamic, hardware-driven LLM inference scheduling based on microarchitecture support and total VRAM capacity:
    • vLLM Profiles: Target modern microarchitectures (ada-lovelace, ampere, blackwell, hopper) with compute capability >= 8.0, matching nodes by total GPU VRAM capacity (nvidia.com/gpu.total-vram-gib or single-GPU nvidia.com/gpu.vram-gib).
    • Ollama Profiles: Target legacy microarchitectures (NotIn: ["ada-lovelace", "ampere", "blackwell", "hopper"]), matching nodes by total GPU capacity.
  • Grounded node allocation:
    • hawk: 1x RTX 5070 Ti, Blackwell sm_120 (16GiB) -> vllm-16gib (PVC: vllm-single-model-cache).
    • condor: 2x RTX 3090, Ampere sm_86 (48GiB) -> vllm-48gib (PVC: vllm-model-cache).
    • hog: 1x Quadro P6000, Pascal sm_61 (24GiB) -> ollama-24gib (requests: 3000m CPU, 8Gi memory, 1 GPU).
    • gemini: 2x Tesla V100, Volta sm_70 (64GiB) -> ollama-64gib (requests: 4000m CPU, 8Gi memory, 2 GPUs).
  • Restored vllm-single-model-cache PVC declaration in k8s/llm/profiles/pvc.yaml for independent local-path single-GPU caching on hawk.
  • Updated k8s/llm/gateway/configmap.yaml and k8s/llm/values-open-webui.yaml routes:
    • devops-chat: routes to ollama-24gib (qwen2.5-coder:7b).
    • devops-coder: routes to vllm-16gib (qwen2.5-coder-14b-instruct).
    • devops-reasoning: routes to vllm-48gib (qwen3-coder:30b).
    • devops-embedding: routes to ollama-24gib (bge-m3).
    • devops-review: load-balanced across vllm-48gib (weight 6) and ollama-64gib (weight 1).
    • gemma4:31b: routes to ollama-64gib.
  • Replaced legacy deployment/vllm and deployment/vllm-single with deployment/vllm-16gib and deployment/vllm-48gib.

Verification

  • uv run devops ci: 100% passing across all 10 quality gates (tests, coverage, lint, format, typecheck, audit, security, actionlint, docs).
  • Live cluster validation:
    • All 4 inference pods (ollama-24gib, ollama-64gib, vllm-16gib, vllm-48gib) and llm-gateway are 1/1 Running.
    • End-to-end inference tested and verified through llm-gateway for gemma4:31b, devops-chat, devops-coder, devops-reasoning, and devops-review.

@dan-petty dan-petty changed the title fix(k8s): add node affinity and tuned memory requests for ollama profiles feat(k8s): schedule vllm and ollama dynamically by architecture and vram capacity Sep 28, 2026
@dan-petty
dan-petty merged commit 414a9d2 into release/v0.2.23 Sep 28, 2026
8 checks passed
@dan-petty
dan-petty deleted the fix/ollama-profiles-node-affinity branch September 28, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

1 participant