2026-04-18 14:28:22 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: openclaw-brain-vllm
|
|
|
|
|
namespace: customer1
|
|
|
|
|
labels:
|
|
|
|
|
app: openclaw-brain
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: openclaw-brain
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: openclaw-brain
|
|
|
|
|
spec:
|
|
|
|
|
nodeSelector:
|
2026-04-18 16:53:09 +00:00
|
|
|
cloud.google.com/gke-accelerator: "nvidia-a100-80gb"
|
2026-04-18 14:28:22 +00:00
|
|
|
tolerations:
|
2026-04-18 16:53:09 +00:00
|
|
|
- key: "nvidia.com/gpu-a100-80gb"
|
2026-04-18 14:28:22 +00:00
|
|
|
operator: "Equal"
|
|
|
|
|
value: "present"
|
2026-04-18 16:05:15 +00:00
|
|
|
effect: "NoSchedule"
|
2026-04-18 14:28:22 +00:00
|
|
|
containers:
|
2026-04-18 15:26:19 +00:00
|
|
|
- name: vllm-brain
|
2026-04-18 14:28:22 +00:00
|
|
|
image: vllm/vllm-openai:latest
|
|
|
|
|
command: ["python3", "-m", "vllm.entrypoints.openai.api_server"]
|
|
|
|
|
args:
|
|
|
|
|
- "--model"
|
2026-04-18 17:55:00 +00:00
|
|
|
- "Qwen/Qwen2.5-32B-Instruct" # Official Qwen 2.5 32B Base Model
|
2026-04-18 14:28:22 +00:00
|
|
|
- "--dtype"
|
2026-04-18 15:26:19 +00:00
|
|
|
- "half"
|
2026-04-18 14:28:22 +00:00
|
|
|
- "--max-model-len"
|
2026-04-18 15:26:19 +00:00
|
|
|
- "16384"
|
2026-04-18 14:28:22 +00:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 8000
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
nvidia.com/gpu: 1
|
|
|
|
|
memory: "32Gi"
|
|
|
|
|
cpu: "8"
|
|
|
|
|
requests:
|
|
|
|
|
nvidia.com/gpu: 1
|
|
|
|
|
memory: "16Gi"
|
|
|
|
|
cpu: "4"
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: model-cache
|
|
|
|
|
mountPath: /root/.cache/huggingface
|
|
|
|
|
volumes:
|
|
|
|
|
- name: model-cache
|
|
|
|
|
emptyDir: {}
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
|
|
|
|
name: openclaw-brain-service
|
|
|
|
|
namespace: customer1
|
|
|
|
|
spec:
|
|
|
|
|
selector:
|
|
|
|
|
app: openclaw-brain
|
|
|
|
|
ports:
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 8000
|
|
|
|
|
targetPort: 8000
|
|
|
|
|
type: ClusterIP
|