disagg.yaml 2.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
spec:
  services:
    Frontend:
      dynamoNamespace: sglang-disagg
12
      componentType: frontend
13
14
15
      replicas: 1
      extraPodSpec:
        mainContainer:
julienmancuso's avatar
julienmancuso committed
16
          image: my-registry/sglang-runtime:my-tag
17
    decode:
18
19
20
      envFromSecret: hf-token-secret
      dynamoNamespace: sglang-disagg
      componentType: worker
21
      subComponentType: decode
22
23
24
25
26
27
      replicas: 1
      resources:
        limits:
          gpu: "1"
      extraPodSpec:
        mainContainer:
julienmancuso's avatar
julienmancuso committed
28
          image: my-registry/sglang-runtime:my-tag
29
          workingDir: /workspace/examples/backends/sglang
30
          command:
31
32
33
          - python3
          - -m
          - dynamo.sglang
34
          args:
35
36
37
38
39
40
41
42
43
44
45
46
47
48
            - --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
49
50
51
52
            - --disaggregation-bootstrap-port
            - "12345"
            - --host
            - "0.0.0.0"
53
    prefill:
54
55
56
      envFromSecret: hf-token-secret
      dynamoNamespace: sglang-disagg
      componentType: worker
57
      subComponentType: prefill
58
59
60
61
62
63
      replicas: 1
      resources:
        limits:
          gpu: "1"
      extraPodSpec:
        mainContainer:
julienmancuso's avatar
julienmancuso committed
64
          image: my-registry/sglang-runtime:my-tag
65
          workingDir: /workspace/examples/backends/sglang
66
          command:
67
          - python3
68
69
          - -m
          - dynamo.sglang
70
          args:
71
72
73
74
75
76
77
78
79
80
81
82
83
84
            - --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
85
86
87
88
            - --disaggregation-bootstrap-port
            - "12345"
            - --host
            - "0.0.0.0"