gcloud-lab/apps/base/customer1/openclaw/vllm-l4.yaml

96 lines
2.2 KiB
YAML
Raw Normal View History

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:
workload: "llm-analyst"
tolerations:
- key: "nvidia.com/gpu"
operator: "Equal"
value: "present"
effect: "NoSchedule"
containers:
- name: vllm-brain-l4
2026-04-21 02:00:24 +00:00
image: vllm/vllm-openai:latest
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
args:
2026-04-21 02:54:01 +00:00
- --model=p-e-w/Qwen3-8B-heretic
2026-04-21 02:39:30 +00:00
- --host=0.0.0.0
- --port=8000
- --tensor-parallel-size=1
- --gpu-memory-utilization=0.95
2026-04-21 03:03:59 +00:00
- --max-model-len=16384
- --max-num-batched-tokens=2048
- --max-num-seqs=128
- --enable-chunked-prefill
- --enable-auto-tool-choice
- --trust-remote-code
- --dtype=auto
2026-04-21 02:09:31 +00:00
- --tool-call-parser=hermes
- --enable-prefix-caching
2026-04-21 02:54:01 +00:00
2026-04-21 01:49:00 +00:00
ports:
- containerPort: 8000
resources:
limits:
nvidia.com/gpu: 1
2026-04-21 01:49:00 +00:00
memory: "30Gi"
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