2026-04-20 02:20:08 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: openclaw-brain-vllm-l4
|
|
|
|
|
namespace: customer1
|
|
|
|
|
labels:
|
|
|
|
|
app: openclaw-brain-l4
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: openclaw-brain-l4
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: openclaw-brain-l4
|
|
|
|
|
spec:
|
|
|
|
|
nodeSelector:
|
2026-04-20 05:11:55 +00:00
|
|
|
workload: "llm-analyst"
|
2026-04-20 02:20:08 +00:00
|
|
|
tolerations:
|
|
|
|
|
- key: "nvidia.com/gpu"
|
2026-04-20 05:11:55 +00:00
|
|
|
operator: "Equal"
|
|
|
|
|
value: "present"
|
2026-04-20 02:20:08 +00:00
|
|
|
effect: "NoSchedule"
|
|
|
|
|
containers:
|
|
|
|
|
- name: vllm-brain-l4
|
2026-04-21 02:00:24 +00:00
|
|
|
image: vllm/vllm-openai:latest
|
2026-04-20 02:20:08 +00:00
|
|
|
command: ["python3", "-m", "vllm.entrypoints.openai.api_server"]
|
|
|
|
|
env:
|
|
|
|
|
- name: HF_TOKEN
|
|
|
|
|
value: ""
|
2026-04-21 01:49:00 +00:00
|
|
|
- name: VLLM_LOGGING_LEVEL
|
|
|
|
|
value: DEBUG
|
2026-04-20 02:20:08 +00:00
|
|
|
args:
|
2026-04-20 20:47:30 +00:00
|
|
|
- --model=cognitivecomputations/dolphin-2.9.3-qwen2-7b-awq
|
|
|
|
|
- --quantization=awq
|
2026-04-20 02:20:08 +00:00
|
|
|
- --host=0.0.0.0
|
|
|
|
|
- --port=8000
|
|
|
|
|
- --tensor-parallel-size=1
|
2026-04-20 16:14:27 +00:00
|
|
|
- --gpu-memory-utilization=0.95
|
|
|
|
|
- --max-model-len=32768
|
2026-04-20 02:20:08 +00:00
|
|
|
- --enable-auto-tool-choice
|
|
|
|
|
- --trust-remote-code
|
|
|
|
|
- --dtype=auto
|
2026-04-21 01:49:00 +00:00
|
|
|
- --tool-call-parser hermes
|
2026-04-20 02:20:08 +00:00
|
|
|
- --enable-prefix-caching
|
2026-04-21 01:49:00 +00:00
|
|
|
|
2026-04-20 02:20:08 +00:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 8000
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
nvidia.com/gpu: 1
|
2026-04-21 01:49:00 +00:00
|
|
|
memory: "30Gi"
|
2026-04-20 02:20:08 +00:00
|
|
|
cpu: "8"
|
|
|
|
|
requests:
|
|
|
|
|
nvidia.com/gpu: 1
|
|
|
|
|
memory: "16Gi"
|
|
|
|
|
cpu: "4"
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: model-cache
|
|
|
|
|
mountPath: /root/.cache/huggingface
|
|
|
|
|
volumes:
|
|
|
|
|
- name: model-cache
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: vllm-model-cache-pvc-l4
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
|
metadata:
|
|
|
|
|
name: vllm-model-cache-pvc-l4
|
|
|
|
|
namespace: customer1
|
|
|
|
|
spec:
|
|
|
|
|
accessModes:
|
|
|
|
|
- ReadWriteOnce
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
storage: 50Gi
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
|
|
|
|
name: openclaw-brain-service-l4
|
|
|
|
|
namespace: customer1
|
|
|
|
|
spec:
|
|
|
|
|
selector:
|
|
|
|
|
app: openclaw-brain-l4
|
|
|
|
|
ports:
|
|
|
|
|
- protocol: TCP
|
|
|
|
|
port: 8000
|
|
|
|
|
targetPort: 8000
|
|
|
|
|
type: ClusterIP
|