disagg.yaml 1.44 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
            - --is-decode-worker
36
37
    VllmPrefillWorker:
      envFromSecret: hf-token-secret
38
      componentType: worker
39
      subComponentType: prefill
40
41
42
      replicas: 1
      resources:
        limits:
43
          gpu: "1"
44
45
      extraPodSpec:
        mainContainer:
46
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
47
          workingDir: /workspace/examples/backends/vllm
48
          command:
49
50
51
          - python3
          - -m
          - dynamo.vllm
52
          args:
53
54
55
            - --model
            - Qwen/Qwen3-0.6B
            - --is-prefill-worker