disagg_planner.yaml 2.34 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
# 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
9
10
spec:
  services:
    Frontend:
11
      componentType: frontend
12
      replicas: 1
13
14
      extraPodSpec:
        mainContainer:
15
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
16
17
18
    Planner:
      componentType: planner
      replicas: 1
19
20
      extraPodSpec:
        mainContainer:
21
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
22
          workingDir: /workspace/components/src/dynamo/planner
julienmancuso's avatar
julienmancuso committed
23
          command:
24
25
26
          - python3
          - -m
          - planner_sla
27
          args:
28
29
30
            - --environment=kubernetes
            - --backend=vllm
            - --adjustment-interval=60
31
32
33
34
35
36
37
38
39
40
41
            - --profile-results-dir=/workspace/profiling_results
          volumeMounts:
            - name: planner-profile-data
              mountPath: /workspace/profiling_results
              readOnly: true
        volumes:
          - name: planner-profile-data
            configMap:
              # Must be pre-created before deployment by the profiler
              # See docs/planner/sla_planner_quickstart.md for more details
              name: planner-profile-data
42
    VllmDecodeWorker:
43
      envFromSecret: hf-token-secret
44
      componentType: worker
45
      subComponentType: decode
46
      replicas: 1
47
48
      resources:
        limits:
49
          gpu: "1"
50
51
      extraPodSpec:
        mainContainer:
52
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
53
          workingDir: /workspace/examples/backends/vllm
54
          command:
55
            - python3
56
          args:
57
58
59
60
            - -m
            - dynamo.vllm
            - --model
            - Qwen/Qwen3-0.6B
61
    VllmPrefillWorker:
62
      envFromSecret: hf-token-secret
63
      componentType: worker
64
      subComponentType: prefill
65
      replicas: 1
66
67
      resources:
        limits:
68
          gpu: "1"
69
70
      extraPodSpec:
        mainContainer:
71
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
72
          workingDir: /workspace/examples/backends/vllm
73
          command:
74
            - python3
75
          args:
76
77
78
79
            - -m
            - dynamo.vllm
            - --model
            - Qwen/Qwen3-0.6B
80
81
            - --disaggregation-mode
            - prefill