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