disagg_planner.yaml 3.08 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-disagg-planner
8
spec:
9
10
11
  envs:
    - name: DYNAMO_NAMESPACE
      value: "vllm-disagg-planner"
12
13
  services:
    Frontend:
14
      dynamoNamespace: vllm-disagg-planner
15
      componentType: frontend
16
      replicas: 1
17
18
      extraPodSpec:
        mainContainer:
19
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
    Planner:
      dynamoNamespace: vllm-disagg-planner
      envFromSecret: hf-token-secret
      componentType: planner
      replicas: 1
      livenessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - "exit 0"
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
      readinessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - "exit 0"
        initialDelaySeconds: 60
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
      pvc:
        create: false
46
        name: dynamo-pvc # Must be pre-created before deployment and SLA profiler must have been run
47
        mountPoint: /data
48
49
      extraPodSpec:
        mainContainer:
50
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
51
          workingDir: /workspace/components/planner/src/dynamo/planner
julienmancuso's avatar
julienmancuso committed
52
          command:
53
54
55
          - python3
          - -m
          - planner_sla
56
          args:
57
58
59
60
            - --environment=kubernetes
            - --backend=vllm
            - --adjustment-interval=60
            - --profile-results-dir=/data/profiling_results
61
    VllmDecodeWorker:
62
      dynamoNamespace: vllm-disagg-planner
63
      envFromSecret: hf-token-secret
64
      componentType: worker
65
      subComponentType: decode
66
      replicas: 2
67
68
      resources:
        limits:
69
          gpu: "1"
70
71
      extraPodSpec:
        mainContainer:
72
73
74
75
76
77
          startupProbe:
            httpGet:
              path: /health
              port: 9090
            periodSeconds: 10
            failureThreshold: 60
78
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
Alec's avatar
Alec committed
79
          workingDir: /workspace/components/backends/vllm
80
          command:
81
            - python3
82
          args:
83
84
85
86
            - -m
            - dynamo.vllm
            - --model
            - Qwen/Qwen3-0.6B
87
    VllmPrefillWorker:
88
      dynamoNamespace: vllm-disagg-planner
89
      envFromSecret: hf-token-secret
90
      componentType: worker
91
      subComponentType: prefill
92
      replicas: 2
93
94
      resources:
        limits:
95
          gpu: "1"
96
97
      extraPodSpec:
        mainContainer:
98
99
100
101
102
103
          startupProbe:
            httpGet:
              path: /health
              port: 9090
            periodSeconds: 10
            failureThreshold: 60
104
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
Alec's avatar
Alec committed
105
          workingDir: /workspace/components/backends/vllm
106
          command:
107
            - python3
108
          args:
109
110
111
112
113
            - -m
            - dynamo.vllm
            - --model
            - Qwen/Qwen3-0.6B
            - --is-prefill-worker