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

apiVersion: nvidia.com/v1alpha1
kind: DynamoGraphDeployment
metadata:
  name: sgl-dsr1-16gpu
spec:
9
10
11
  envs:
    - name: HF_HOME
      value: /opt/model
12
  pvcs:
13
    - name: model-cache
14
      create: false
15
16
17
18
  services:
    Frontend:
      componentType: frontend
      replicas: 1
19
20
21
      volumeMounts:
        - name: model-cache
          mountPoint: /opt/model
22
23
      extraPodSpec:
        mainContainer:
24
          image: nvcr.io/nvidia/ai-dynamo/sglang-runtime:1.0.0
25
26
    decode:
      componentType: worker
27
      subComponentType: decode
28
29
30
31
32
33
      replicas: 1
      multinode:
        nodeCount: 2
      resources:
        limits:
          gpu: "8"
34
      volumeMounts:
35
36
        - name: model-cache
          mountPoint: /opt/model
37
38
39
40
      sharedMemory:
        size: 80Gi
      extraPodSpec:
        mainContainer:
41
          image: nvcr.io/nvidia/ai-dynamo/sglang-runtime:1.0.0
42
          workingDir: /sgl-workspace/dynamo
43
          command:
44
45
46
            - python3
            - -m
            - dynamo.sglang
47
          args:
48
            - --model-path
49
            - deepseek-ai/DeepSeek-R1
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
            - --served-model-name
            - deepseek-ai/DeepSeek-R1
            - --tp
            - "16"
            - --dp
            - "16"
            - --enable-dp-attention
            - --ep-size
            - "16"
            - --trust-remote-code
            - --skip-tokenizer-init
            - --disaggregation-mode
            - decode
            - --disaggregation-bootstrap-port
            - "30001"
            - --mem-fraction-static
            - "0.75"
            - --host
            - 0.0.0.0
69
            - --prefill-round-robin-balance
70
71
            - --watchdog-timeout
            - "3600"
72
73
    prefill:
      componentType: worker
74
      subComponentType: prefill
75
76
77
78
79
80
      replicas: 1
      multinode:
        nodeCount: 2
      resources:
        limits:
          gpu: "8"
81
      volumeMounts:
82
83
        - name: model-cache
          mountPoint: /opt/model
84
85
86
87
      sharedMemory:
        size: 80Gi
      extraPodSpec:
        mainContainer:
88
          image: nvcr.io/nvidia/ai-dynamo/sglang-runtime:1.0.0
89
          workingDir: /sgl-workspace/dynamo
90
          command:
91
92
93
            - python3
            - -m
            - dynamo.sglang
94
          args:
95
            - --model-path
96
            - deepseek-ai/DeepSeek-R1
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
            - --served-model-name
            - deepseek-ai/DeepSeek-R1
            - --tp
            - "16"
            - --ep-size
            - "16"
            - --trust-remote-code
            - --skip-tokenizer-init
            - --disaggregation-mode
            - prefill
            - --disaggregation-bootstrap-port
            - "30001"
            - --mem-fraction-static
            - "0.75"
            - --host
112
113
            - 0.0.0.0
            - --load-balance-method
114
115
116
            - round_robin
            - --watchdog-timeout
            - "3600"