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

apiVersion: nvidia.com/v1alpha1
kind: DynamoGraphDeployment
metadata:
  name: sglang-disagg-planner
spec:
  envs:
    - name: DYNAMO_NAMESPACE
      value: "dynamo"
12
13
14
  pvcs:
    - name: dynamo-pvc
      create: false # Must be pre-created before deployment and SLA profiler must have been run
15
16
17
  services:
    Frontend:
      dynamoNamespace: dynamo
18
      componentType: frontend
19
20
21
      replicas: 1
      extraPodSpec:
        mainContainer:
22
          image: my-registry/sglang-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: dynamo
      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: my-registry/sglang-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=sglang
            - --adjustment-interval=60
            - --profile-results-dir=/data/profiling_results
63
    decode:
64
65
66
      dynamoNamespace: dynamo
      envFromSecret: hf-token-secret
      componentType: worker
67
      subComponentType: decode
68
69
70
71
72
73
      replicas: 2
      resources:
        limits:
          gpu: "1"
      extraPodSpec:
        mainContainer:
74
          image: my-registry/sglang-runtime:my-tag
75
          workingDir: /workspace/components/backends/sglang
julienmancuso's avatar
julienmancuso committed
76
          command:
77
            - python3
78
          args:
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
            - -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
95
    prefill:
96
97
98
      dynamoNamespace: dynamo
      envFromSecret: hf-token-secret
      componentType: worker
99
      subComponentType: prefill
100
101
102
103
104
105
      replicas: 2
      resources:
        limits:
          gpu: "1"
      extraPodSpec:
        mainContainer:
106
          image: my-registry/sglang-runtime:my-tag
107
          workingDir: /workspace/components/backends/sglang
julienmancuso's avatar
julienmancuso committed
108
          command:
109
            - python3
110
          args:
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
            - -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