Skip to content

Commit

Permalink
tgi: Fix permission issue of non-root user
Browse files Browse the repository at this point in the history
Fix issue #639

Signed-off-by: Lianhao Lu <[email protected]>
  • Loading branch information
lianhao committed Dec 17, 2024
1 parent d1cccf8 commit d0b4b47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm-charts/common/tgi/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/common/tgi/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ spec:
name: shm
- mountPath: /tmp
name: tmp
- mountPath: /usr/src/out
name: tokenizer
ports:
- name: http
containerPort: {{ .Values.port }}
Expand Down Expand Up @@ -136,6 +138,8 @@ spec:
sizeLimit: {{ .Values.shmSize }}
- name: tmp
emptyDir: {}
- name: tokenizer
emptyDir: {}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit d0b4b47

Please sign in to comment.