disagg_planner.yaml 3.16 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
4
5
6
7
8
9
10
# SPDX-License-Identifier: Apache-2.0

apiVersion: nvidia.com/v1alpha1
kind: DynamoGraphDeployment
metadata:
  name: sglang-disagg-planner
spec:
  services:
    Frontend:
11
      componentType: frontend
12
13
14
      replicas: 1
      extraPodSpec:
        mainContainer:
15
          image: my-registry/sglang-runtime:my-tag
16
17
18
19
20
21
    Planner:
      envFromSecret: hf-token-secret
      componentType: planner
      replicas: 1
      extraPodSpec:
        mainContainer:
22
          image: my-registry/sglang-runtime:my-tag
23
          workingDir: /workspace/components/src/dynamo/planner
julienmancuso's avatar
julienmancuso committed
24
          command:
25
26
27
          - python3
          - -m
          - planner_sla
28
          args:
29
30
31
            - --environment=kubernetes
            - --backend=sglang
            - --adjustment-interval=60
32
33
34
35
36
37
38
39
40
41
42
            - --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
43
    decode:
44
45
      envFromSecret: hf-token-secret
      componentType: worker
46
      subComponentType: decode
47
48
49
50
51
52
      replicas: 2
      resources:
        limits:
          gpu: "1"
      extraPodSpec:
        mainContainer:
53
          image: my-registry/sglang-runtime:my-tag
54
          workingDir: /workspace/examples/backends/sglang
julienmancuso's avatar
julienmancuso committed
55
          command:
56
            - python3
57
          args:
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
            - -m
            - dynamo.sglang
            - --model-path
            - Qwen/Qwen3-0.6B
            - --served-model-name
            - Qwen/Qwen3-0.6B
            - --page-size
            - "16"
            - --tp
            - "1"
            - --trust-remote-code
            - --skip-tokenizer-init
            - --disaggregation-mode
            - decode
            - --disaggregation-transfer-backend
            - nixl
74
75
76
77
            - --disaggregation-bootstrap-port
            - "12345"
            - --host
            - "0.0.0.0"
78
    prefill:
79
80
      envFromSecret: hf-token-secret
      componentType: worker
81
      subComponentType: prefill
82
83
84
85
86
87
      replicas: 2
      resources:
        limits:
          gpu: "1"
      extraPodSpec:
        mainContainer:
88
          image: my-registry/sglang-runtime:my-tag
89
          workingDir: /workspace/examples/backends/sglang
julienmancuso's avatar
julienmancuso committed
90
          command:
91
            - python3
92
          args:
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
            - -m
            - dynamo.sglang
            - --model-path
            - Qwen/Qwen3-0.6B
            - --served-model-name
            - Qwen/Qwen3-0.6B
            - --page-size
            - "16"
            - --tp
            - "1"
            - --trust-remote-code
            - --skip-tokenizer-init
            - --disaggregation-mode
            - prefill
            - --disaggregation-transfer-backend
            - nixl
109
110
111
112
            - --disaggregation-bootstrap-port
            - "12345"
            - --host
            - "0.0.0.0"