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