Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions k8s/llm/gateway/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data:
- model_name: devops-chat
litellm_params:
model: ollama_chat/qwen2.5-coder:7b
api_base: http://ollama-16gib.llm.svc.cluster.local:11434
api_base: http://ollama-24gib.llm.svc.cluster.local:11434

- model_name: devops-coder
litellm_params:
Expand All @@ -39,14 +39,14 @@ data:
- model_name: devops-embedding
litellm_params:
model: ollama/bge-m3
api_base: http://ollama-16gib.llm.svc.cluster.local:11434
api_base: http://ollama-24gib.llm.svc.cluster.local:11434
model_info:
mode: embedding

# devops-review: unified virtual model spread across the dual-GPU inference engines.
# Dynamic concurrency-aware least-busy routing with per-backend caps directs traffic:
# - vLLM on dual-GPU node (2x RTX 3090, TP=2, 48GiB VRAM): continuous dynamic batching engine.
# - Ollama on multi-GPU Volta node (Tesla V100 32GB VRAM): dedicated inference worker (max 1 concurrent).
# - Ollama on multi-GPU Volta node (Tesla V100 64GiB VRAM): dedicated inference worker (max 1 concurrent).
- model_name: devops-review
litellm_params:
model: openai/qwen3-coder:30b
Expand All @@ -59,7 +59,7 @@ data:
- model_name: devops-review
litellm_params:
model: openai/qwen3-coder:30b
api_base: http://ollama-32gib.llm.svc.cluster.local:11434/v1
api_base: http://ollama-64gib.llm.svc.cluster.local:11434/v1
api_key: none
weight: 1
max_parallel_requests: 1
Expand All @@ -77,14 +77,14 @@ data:
- model_name: gemma4:31b
litellm_params:
model: ollama_chat/gemma4:31b
api_base: http://ollama-32gib.llm.svc.cluster.local:11434
api_base: http://ollama-64gib.llm.svc.cluster.local:11434
model_info:
max_input_tokens: 32768

- model_name: ollama/*
litellm_params:
model: openai/*
api_base: http://ollama-16gib.llm.svc.cluster.local:11434/v1
api_base: http://ollama-24gib.llm.svc.cluster.local:11434/v1
api_key: none
model_info:
health_check_model: openai/qwen2.5-coder:7b
Expand Down
170 changes: 160 additions & 10 deletions k8s/llm/profiles/ollama-profiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ metadata:
llm.devops.io/vram-gib: 16gib
llm.devops.io/total-vram-gib: '16'
spec:
replicas: 1
replicas: 0
strategy:
type: Recreate
selector:
Expand All @@ -33,14 +33,39 @@ spec:
llm.devops.io/total-vram-gib: '16'
spec:
runtimeClassName: nvidia
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.total-vram-gib
operator: In
values: ["16Gi"]
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.vram-gib
operator: In
values: ["16Gi"]
- key: nvidia.com/gpu.count
operator: In
values: ["1"]
containers:
- name: ollama
image: ollama/ollama:0.32.14
env:
- name: OLLAMA_HOST
value: 0.0.0.0:11434
- name: OLLAMA_MODELS
value: /root/.ollama/models
- name: OLLAMA_CONTEXT_LENGTH
value: '32768'
- name: OLLAMA_MAX_LOADED_MODELS
value: '2'
- name: OLLAMA_NUM_PARALLEL
value: '1'
- name: OLLAMA_KV_CACHE_TYPE
Expand Down Expand Up @@ -119,7 +144,7 @@ metadata:
llm.devops.io/vram-gib: 24gib
llm.devops.io/total-vram-gib: '24'
spec:
replicas: 0
replicas: 1
strategy:
type: Recreate
selector:
Expand All @@ -137,14 +162,39 @@ spec:
llm.devops.io/total-vram-gib: '24'
spec:
runtimeClassName: nvidia
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.total-vram-gib
operator: In
values: ["24Gi", "28Gi"]
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.vram-gib
operator: In
values: ["24Gi"]
- key: nvidia.com/gpu.count
operator: In
values: ["1"]
containers:
- name: ollama
image: ollama/ollama:0.32.14
env:
- name: OLLAMA_HOST
value: 0.0.0.0:11434
- name: OLLAMA_MODELS
value: /root/.ollama/models
- name: OLLAMA_CONTEXT_LENGTH
value: '32768'
- name: OLLAMA_MAX_LOADED_MODELS
value: '2'
- name: OLLAMA_NUM_PARALLEL
value: '1'
- name: OLLAMA_KV_CACHE_TYPE
Expand All @@ -164,8 +214,8 @@ spec:
name: http
resources:
requests:
cpu: 4000m
memory: 12Gi
cpu: 3000m
memory: 8Gi
nvidia.com/gpu: '1'
limits:
nvidia.com/gpu: '1'
Expand Down Expand Up @@ -223,7 +273,7 @@ metadata:
llm.devops.io/vram-gib: 32gib
llm.devops.io/total-vram-gib: '32'
spec:
replicas: 1
replicas: 0
strategy:
type: Recreate
selector:
Expand All @@ -241,14 +291,39 @@ spec:
llm.devops.io/total-vram-gib: '32'
spec:
runtimeClassName: nvidia
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.total-vram-gib
operator: In
values: ["32Gi"]
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.vram-gib
operator: In
values: ["32Gi"]
- key: nvidia.com/gpu.count
operator: In
values: ["1"]
containers:
- name: ollama
image: ollama/ollama:0.32.14
env:
- name: OLLAMA_HOST
value: 0.0.0.0:11434
- name: OLLAMA_MODELS
value: /root/.ollama/models
- name: OLLAMA_CONTEXT_LENGTH
value: '48000'
- name: OLLAMA_MAX_LOADED_MODELS
value: '2'
- name: OLLAMA_NUM_PARALLEL
value: '1'
- name: OLLAMA_KV_CACHE_TYPE
Expand All @@ -268,8 +343,8 @@ spec:
name: http
resources:
requests:
cpu: 4000m
memory: 16Gi
cpu: 2000m
memory: 8Gi
nvidia.com/gpu: '1'
limits:
nvidia.com/gpu: '1'
Expand Down Expand Up @@ -345,14 +420,29 @@ spec:
llm.devops.io/total-vram-gib: '48'
spec:
runtimeClassName: nvidia
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.total-vram-gib
operator: In
values: ["48Gi"]
containers:
- name: ollama
image: ollama/ollama:0.32.14
env:
- name: OLLAMA_HOST
value: 0.0.0.0:11434
- name: OLLAMA_MODELS
value: /root/.ollama/models
- name: OLLAMA_CONTEXT_LENGTH
value: '65536'
- name: OLLAMA_MAX_LOADED_MODELS
value: '2'
- name: OLLAMA_NUM_PARALLEL
value: '1'
- name: OLLAMA_KV_CACHE_TYPE
Expand Down Expand Up @@ -431,7 +521,7 @@ metadata:
llm.devops.io/vram-gib: 64gib
llm.devops.io/total-vram-gib: '64'
spec:
replicas: 0
replicas: 1
strategy:
type: Recreate
selector:
Expand All @@ -449,14 +539,29 @@ spec:
llm.devops.io/total-vram-gib: '64'
spec:
runtimeClassName: nvidia
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.total-vram-gib
operator: In
values: ["64Gi"]
containers:
- name: ollama
image: ollama/ollama:0.32.14
env:
- name: OLLAMA_HOST
value: 0.0.0.0:11434
- name: OLLAMA_MODELS
value: /root/.ollama/models
- name: OLLAMA_CONTEXT_LENGTH
value: '65536'
- name: OLLAMA_MAX_LOADED_MODELS
value: '2'
- name: OLLAMA_NUM_PARALLEL
value: '1'
- name: OLLAMA_KV_CACHE_TYPE
Expand All @@ -476,8 +581,8 @@ spec:
name: http
resources:
requests:
cpu: 8000m
memory: 32Gi
cpu: 4000m
memory: 8Gi
nvidia.com/gpu: '2'
limits:
nvidia.com/gpu: '2'
Expand Down Expand Up @@ -553,14 +658,29 @@ spec:
llm.devops.io/total-vram-gib: '72'
spec:
runtimeClassName: nvidia
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.total-vram-gib
operator: In
values: ["72Gi"]
containers:
- name: ollama
image: ollama/ollama:0.32.14
env:
- name: OLLAMA_HOST
value: 0.0.0.0:11434
- name: OLLAMA_MODELS
value: /root/.ollama/models
- name: OLLAMA_CONTEXT_LENGTH
value: '65536'
- name: OLLAMA_MAX_LOADED_MODELS
value: '2'
- name: OLLAMA_NUM_PARALLEL
value: '1'
- name: OLLAMA_KV_CACHE_TYPE
Expand Down Expand Up @@ -657,14 +777,29 @@ spec:
llm.devops.io/total-vram-gib: '96'
spec:
runtimeClassName: nvidia
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.total-vram-gib
operator: In
values: ["96Gi"]
containers:
- name: ollama
image: ollama/ollama:0.32.14
env:
- name: OLLAMA_HOST
value: 0.0.0.0:11434
- name: OLLAMA_MODELS
value: /root/.ollama/models
- name: OLLAMA_CONTEXT_LENGTH
value: '65536'
- name: OLLAMA_MAX_LOADED_MODELS
value: '2'
- name: OLLAMA_NUM_PARALLEL
value: '1'
- name: OLLAMA_KV_CACHE_TYPE
Expand Down Expand Up @@ -761,14 +896,29 @@ spec:
llm.devops.io/total-vram-gib: '128'
spec:
runtimeClassName: nvidia
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nvidia.com/gpu.architecture
operator: NotIn
values: ["ada-lovelace", "ampere", "blackwell", "hopper"]
- key: nvidia.com/gpu.total-vram-gib
operator: In
values: ["128Gi"]
containers:
- name: ollama
image: ollama/ollama:0.32.14
env:
- name: OLLAMA_HOST
value: 0.0.0.0:11434
- name: OLLAMA_MODELS
value: /root/.ollama/models
- name: OLLAMA_CONTEXT_LENGTH
value: '65536'
- name: OLLAMA_MAX_LOADED_MODELS
value: '2'
- name: OLLAMA_NUM_PARALLEL
value: '1'
- name: OLLAMA_KV_CACHE_TYPE
Expand Down
Loading
Loading