disagg.yaml 1.51 KB
Newer Older
1
2
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# 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
      dynamoNamespace: vllm-disagg
12
      componentType: frontend
13
14
15
      replicas: 1
      extraPodSpec:
        mainContainer:
16
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
17
    VllmDecodeWorker:
18
      dynamoNamespace: vllm-disagg
19
      envFromSecret: hf-token-secret
20
      componentType: worker
21
      subComponentType: decode
22
23
24
      replicas: 1
      resources:
        limits:
25
          gpu: "1"
26
27
      extraPodSpec:
        mainContainer:
28
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
29
          workingDir: /workspace/examples/backends/vllm
30
          command:
31
32
33
          - python3
          - -m
          - dynamo.vllm
34
          args:
35
36
            - --model
            - Qwen/Qwen3-0.6B
37
    VllmPrefillWorker:
38
      dynamoNamespace: vllm-disagg
39
      envFromSecret: hf-token-secret
40
      componentType: worker
41
      subComponentType: prefill
42
43
44
      replicas: 1
      resources:
        limits:
45
          gpu: "1"
46
47
      extraPodSpec:
        mainContainer:
48
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:my-tag
49
          workingDir: /workspace/examples/backends/vllm
50
          command:
51
52
53
          - python3
          - -m
          - dynamo.vllm
54
          args:
55
56
57
            - --model
            - Qwen/Qwen3-0.6B
            - --is-prefill-worker