disagg.yaml 3.42 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
44
          args:
            - dynamo
45
46
47
48
49
            - run
            - in=http
            - out=dyn
            - --http-port
            - "8000"
50
51
52
    VllmDecodeWorker:
      dynamoNamespace: vllm-v1-disagg
      envFromSecret: hf-token-secret
53
      componentType: worker
54
      replicas: 1
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
      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
74
75
76
77
      resources:
        requests:
          cpu: "10"
          memory: "20Gi"
78
          gpu: "1"
79
80
81
        limits:
          cpu: "10"
          memory: "20Gi"
82
          gpu: "1"
83
84
      extraPodSpec:
        mainContainer:
85
          image: nvcr.io/nvidian/nim-llm-dev/vllm_v1-runtime:dep-216.4
Alec's avatar
Alec committed
86
          workingDir: /workspace/components/backends/vllm
87
          args:
88
            - "python3 components/main.py --model Qwen/Qwen3-0.6B --enforce-eager 2>&1 | tee /tmp/vllm.log"
89
90
91
    VllmPrefillWorker:
      dynamoNamespace: vllm-v1-disagg
      envFromSecret: hf-token-secret
92
      componentType: worker
93
      replicas: 1
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
      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
113
114
115
116
      resources:
        requests:
          cpu: "10"
          memory: "20Gi"
117
          gpu: "1"
118
119
120
        limits:
          cpu: "10"
          memory: "20Gi"
121
          gpu: "1"
122
123
      extraPodSpec:
        mainContainer:
124
          image: nvcr.io/nvidian/nim-llm-dev/vllm_v1-runtime:dep-216.4
Alec's avatar
Alec committed
125
          workingDir: /workspace/components/backends/vllm
126
          args:
127
            - "python3 components/main.py --model Qwen/Qwen3-0.6B --enforce-eager --is-prefill-worker 2>&1 | tee /tmp/vllm.log"