From d0b4b47f07343d1b62687101e9209b7079067f5a Mon Sep 17 00:00:00 2001 From: Lianhao Lu Date: Thu, 12 Dec 2024 11:07:36 +0000 Subject: [PATCH] tgi: Fix permission issue of non-root user Fix issue #639 Signed-off-by: Lianhao Lu --- helm-charts/common/tgi/templates/configmap.yaml | 1 + helm-charts/common/tgi/templates/deployment.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/helm-charts/common/tgi/templates/configmap.yaml b/helm-charts/common/tgi/templates/configmap.yaml index 82be971e4..0b7385870 100644 --- a/helm-charts/common/tgi/templates/configmap.yaml +++ b/helm-charts/common/tgi/templates/configmap.yaml @@ -19,6 +19,7 @@ data: no_proxy: {{ .Values.global.no_proxy | quote }} {{- if contains "tgi-gaudi" .Values.image.repository }} HABANA_LOGS: "/tmp/habana_logs" + TRITON_CACHE_DIR: "/tmp/triton_cache" {{- end }} NUMBA_CACHE_DIR: "/tmp" HF_HOME: "/tmp/.cache/huggingface" diff --git a/helm-charts/common/tgi/templates/deployment.yaml b/helm-charts/common/tgi/templates/deployment.yaml index 17b682820..9335234f4 100644 --- a/helm-charts/common/tgi/templates/deployment.yaml +++ b/helm-charts/common/tgi/templates/deployment.yaml @@ -100,6 +100,8 @@ spec: name: shm - mountPath: /tmp name: tmp + - mountPath: /usr/src/out + name: tokenizer ports: - name: http containerPort: {{ .Values.port }} @@ -136,6 +138,8 @@ spec: sizeLimit: {{ .Values.shmSize }} - name: tmp emptyDir: {} + - name: tokenizer + emptyDir: {} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}