disagg.yaml 1.83 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
26
27
        requests:
          custom:
            # Increase this value for larger models
            ephemeral-storage: "2Gi"
28
29
      extraPodSpec:
        mainContainer:
30
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
31
          workingDir: /workspace/examples/backends/vllm
32
          command:
33
34
35
          - python3
          - -m
          - dynamo.vllm
36
          args:
37
38
            - --model
            - Qwen/Qwen3-0.6B
39
40
            - --disaggregation-mode
            - decode
41
42
    VllmPrefillWorker:
      envFromSecret: hf-token-secret
43
      componentType: worker
44
      subComponentType: prefill
45
46
47
      replicas: 1
      resources:
        limits:
48
          gpu: "1"
49
50
51
52
        requests:
          custom:
            # Increase this value for larger models
            ephemeral-storage: "2Gi"
53
54
      extraPodSpec:
        mainContainer:
55
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
56
          workingDir: /workspace/examples/backends/vllm
57
          command:
58
59
60
          - python3
          - -m
          - dynamo.vllm
61
          args:
62
63
            - --model
            - Qwen/Qwen3-0.6B
64
65
            - --disaggregation-mode
            - prefill
66
67
            - --kv-transfer-config
            - '{"kv_connector":"NixlConnector","kv_role":"kv_both"}'