disagg.yaml 1.59 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
# SPDX-License-Identifier: Apache-2.0
Alec's avatar
Alec committed
3

4
5
6
apiVersion: nvidia.com/v1alpha1
kind: DynamoGraphDeployment
metadata:
7
  name: vllm-disagg
8
9
10
spec:
  services:
    Frontend:
11
      componentType: frontend
12
13
14
      replicas: 1
      extraPodSpec:
        mainContainer:
15
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
16
17
    VllmDecodeWorker:
      envFromSecret: hf-token-secret
18
      componentType: worker
19
      subComponentType: decode
20
21
22
      replicas: 1
      resources:
        limits:
23
          gpu: "1"
24
25
      extraPodSpec:
        mainContainer:
26
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
27
          workingDir: /workspace/examples/backends/vllm
28
          command:
29
30
31
          - python3
          - -m
          - dynamo.vllm
32
          args:
33
34
            - --model
            - Qwen/Qwen3-0.6B
35
36
            - --disaggregation-mode
            - decode
37
38
    VllmPrefillWorker:
      envFromSecret: hf-token-secret
39
      componentType: worker
40
      subComponentType: prefill
41
42
43
      replicas: 1
      resources:
        limits:
44
          gpu: "1"
45
46
      extraPodSpec:
        mainContainer:
47
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
48
          workingDir: /workspace/examples/backends/vllm
49
          command:
50
51
52
          - python3
          - -m
          - dynamo.vllm
53
          args:
54
55
            - --model
            - Qwen/Qwen3-0.6B
56
57
            - --disaggregation-mode
            - prefill
58
59
            - --kv-transfer-config
            - '{"kv_connector":"NixlConnector","kv_role":"kv_both"}'