Skip to content

Commit 7e6e9e6

Browse files
committed
Add nvidia runtime class for Ollama deployment
1 parent 0544654 commit 7e6e9e6

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{- if .Values.runtimeClassName }}
2+
---
3+
apiVersion: node.k8s.io/v1
4+
kind: RuntimeClass
5+
metadata:
6+
name: {{ .Values.runtimeClassName | quote }}
7+
labels:
8+
{{- include "ollama.labels" . | nindent 4 }}
9+
handler: {{ .Values.runtimeClassName | quote }}
10+
{{- end }}
11+

helm/ollama/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ extraEnv:
160160
value: "compute,utility"
161161
- name: NVIDIA_VISIBLE_DEVICES
162162
value: "all"
163+
- name: LD_LIBRARY_PATH
164+
value: "/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/lib/x86_64-linux-gnu"
163165
- name: DP_DISABLE_TELEGRA
164166
value: "1"
165167
- name: FAIL_ON_INIT_ERROR

0 commit comments

Comments
 (0)