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