disagg_router.yaml 1.45 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
7
8
9
10
apiVersion: nvidia.com/v1alpha1
kind: DynamoGraphDeployment
metadata:
  name: vllm-v1-disagg-router
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
18
      envs:
        - name: DYN_ROUTER_MODE
          value: kv
19
20
21
22
    VllmDecodeWorker:
      envFromSecret: hf-token-secret
      componentType: worker
      replicas: 2
23
24
25
      resources:
        limits:
          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
            - --is-decode-worker
38
39
40
    VllmPrefillWorker:
      envFromSecret: hf-token-secret
      componentType: worker
41
      replicas: 2
42
43
44
      resources:
        limits:
          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
56
            - --model
            - Qwen/Qwen3-0.6B
            - --is-prefill-worker