disagg.yaml 3.34 KB
Newer Older
1
2
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
Alec's avatar
Alec committed
3

4
5
6
apiVersion: nvidia.com/v1alpha1
kind: DynamoGraphDeployment
metadata:
7
  name: vllm-v1-disagg
8
9
10
11
12
13
spec:
  services:
    Frontend:
      dynamoNamespace: vllm-v1-disagg
      componentType: main
      replicas: 1
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
      livenessProbe:
        httpGet:
          path: /health
          port: 8000
        initialDelaySeconds: 60
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
      readinessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - 'curl -s http://localhost:8000/health | jq -e ".status == \"healthy\""'
        initialDelaySeconds: 60
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
32
33
34
35
36
37
38
39
40
      resources:
        requests:
          cpu: "1"
          memory: "2Gi"
        limits:
          cpu: "1"
          memory: "2Gi"
      extraPodSpec:
        mainContainer:
41
          image: nvcr.io/nvidian/nim-llm-dev/vllm_v1-runtime:dep-216.4
Alec's avatar
Alec committed
42
          workingDir: /workspace/components/backends/vllm
43
          args:
44
            - "python3 -m dynamo.frontend --http-port 8000"
45
46
47
    VllmDecodeWorker:
      dynamoNamespace: vllm-v1-disagg
      envFromSecret: hf-token-secret
48
      componentType: worker
49
      replicas: 1
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
      livenessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - "exit 0"
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
      readinessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - 'grep "VllmWorker.*has been initialized" /tmp/vllm.log'
        initialDelaySeconds: 60
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
69
70
71
72
      resources:
        requests:
          cpu: "10"
          memory: "20Gi"
73
          gpu: "1"
74
75
76
        limits:
          cpu: "10"
          memory: "20Gi"
77
          gpu: "1"
78
79
      extraPodSpec:
        mainContainer:
80
          image: nvcr.io/nvidian/nim-llm-dev/vllm_v1-runtime:dep-216.4
Alec's avatar
Alec committed
81
          workingDir: /workspace/components/backends/vllm
82
          args:
83
            - "python3 -m dynamo.vllm --model Qwen/Qwen3-0.6B --enforce-eager 2>&1 | tee /tmp/vllm.log"
84
85
86
    VllmPrefillWorker:
      dynamoNamespace: vllm-v1-disagg
      envFromSecret: hf-token-secret
87
      componentType: worker
88
      replicas: 1
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
      livenessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - "exit 0"
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
      readinessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - 'grep "VllmWorker.*has been initialized" /tmp/vllm.log'
        initialDelaySeconds: 60
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
108
109
110
111
      resources:
        requests:
          cpu: "10"
          memory: "20Gi"
112
          gpu: "1"
113
114
115
        limits:
          cpu: "10"
          memory: "20Gi"
116
          gpu: "1"
117
118
      extraPodSpec:
        mainContainer:
119
          image: nvcr.io/nvidian/nim-llm-dev/vllm_v1-runtime:dep-216.4
Alec's avatar
Alec committed
120
          workingDir: /workspace/components/backends/vllm
121
          args:
122
            - "python3 -m dynamo.vllm --model Qwen/Qwen3-0.6B --enforce-eager --is-prefill-worker 2>&1 | tee /tmp/vllm.log"