deploy.yaml 2.78 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-8gpu
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
      replicas: 1
      resources:
        limits:
          gpu: "8"
32
      volumeMounts:
33
34
        - name: model-cache
          mountPoint: /opt/model
35
36
37
38
      sharedMemory:
        size: 80Gi
      extraPodSpec:
        mainContainer:
39
          image: nvcr.io/nvidia/ai-dynamo/sglang-runtime:1.0.0
40
          workingDir: /workspace
41
          command:
42
43
44
            - python3
            - -m
            - dynamo.sglang
45
          args:
46
            - --model-path
47
            - deepseek-ai/DeepSeek-R1
48
49
50
51
52
53
54
55
56
57
58
59
60
61
            - --served-model-name
            - deepseek-ai/DeepSeek-R1
            - --tp
            - "8"
            - --dp
            - "8"
            - --enable-dp-attention
            - --ep-size
            - "8"
            - --trust-remote-code
            - --disaggregation-mode
            - decode
            - --disaggregation-bootstrap-port
            - "30001"
62
63
            - --mem-fraction-static
            - "0.75"
64
65
            - --host
            - 0.0.0.0
66
            - --prefill-round-robin-balance
67
68
            - --watchdog-timeout
            - "3600"
69
70
    prefill:
      componentType: worker
71
      subComponentType: prefill
72
73
74
75
      replicas: 1
      resources:
        limits:
          gpu: "8"
76
      volumeMounts:
77
78
        - name: model-cache
          mountPoint: /opt/model
79
80
81
82
      sharedMemory:
        size: 80Gi
      extraPodSpec:
        mainContainer:
83
          image: nvcr.io/nvidia/ai-dynamo/sglang-runtime:1.0.0
84
          workingDir: /workspace
85
          command:
86
87
88
            - python3
            - -m
            - dynamo.sglang
89
          args:
90
            - --model-path
91
            - deepseek-ai/DeepSeek-R1
92
93
94
95
96
97
98
99
100
101
102
            - --served-model-name
            - deepseek-ai/DeepSeek-R1
            - --tp
            - "8"
            - --ep-size
            - "8"
            - --trust-remote-code
            - --disaggregation-mode
            - prefill
            - --disaggregation-bootstrap-port
            - "30001"
103
104
            - --mem-fraction-static
            - "0.75"
105
            - --host
106
107
            - 0.0.0.0
            - --load-balance-method
108
109
110
            - round_robin
            - --watchdog-timeout
            - "3600"