deploy.yaml 1.7 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
4
5
6
7
8
# SPDX-License-Identifier: Apache-2.0
apiVersion: nvidia.com/v1alpha1
kind: DynamoGraphDeployment
metadata:
  name: llama3-70b-agg
spec:
  backendFramework: vllm
9
10
11
  pvcs:
    - name: model-cache
      create: false
12
13
14
  services:
    Frontend:
      componentType: frontend
15
16
      volumeMounts:
        - name: model-cache
17
          mountPoint: /opt/models
18
19
      extraPodSpec:
        mainContainer:
20
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:1.0.0
21
          workingDir: /workspace/examples/backends/vllm
22
23
24
      envs:
        - name: HF_HOME
          value: /opt/models
25
26
27
28
      replicas: 1
    VllmPrefillWorker:
      componentType: worker
      envFromSecret: hf-token-secret
29
30
      volumeMounts:
        - name: model-cache
31
          mountPoint: /opt/models
32
33
34
35
      sharedMemory:
        size: 20Gi
      extraPodSpec:
        mainContainer:
36
37
38
39
          env:
            - name: SERVED_MODEL_NAME
              value: "RedHatAI/Llama-3.3-70B-Instruct-FP8-dynamic"
            - name: MODEL_PATH
40
              value: "RedHatAI/Llama-3.3-70B-Instruct-FP8-dynamic"
41
42
            - name: HF_HOME
              value: /opt/models
43
          args:
44
          - "python3 -m dynamo.vllm --model $MODEL_PATH --served-model-name $SERVED_MODEL_NAME --tensor-parallel-size 4 --data-parallel-size 1 --gpu-memory-utilization 0.90 --no-enable-prefix-caching --block-size 128"
45
46
47
          command:
          - /bin/sh
          - -c
48
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:1.0.0
49
          workingDir: /workspace/examples/backends/vllm
50
51
52
      replicas: 1
      resources:
        limits:
53
          gpu: "4"
54
        requests:
55
          gpu: "4"