Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ models:
chatTemplate: # if you want to use a custom chat template. Usually left empty. The template must exist in the docker image to work
repository:
tag:
env: # optional: extra environment variables to set on the model container.
- name: MY_VAR
value: my-value
- name: SECRET_VAR
valueFrom:
secretKeyRef:
name: my-secret
key: my-key
resources: # the compute resources to request
requests: # specifies typical usage requests
cpu: 1
Expand Down
6 changes: 6 additions & 0 deletions templates/models/knative-serving.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ spec:
value: "0.0.0.0"
- name: VERBOSE
value: "true"
{{- if $model.env }}
{{- toYaml $model.env | nindent 12 }}
{{- end }}
startupProbe:
httpGet:
path: /health
Expand Down Expand Up @@ -190,6 +193,9 @@ spec:
{{- if or $persistence.enabled $cacheDir }}
- name: VLLM_CACHE_ROOT
value: {{ $cachePath }}/.cache/vllm
{{- end }}
{{- if $model.env }}
{{- toYaml $model.env | nindent 12 }}
{{- end }}
startupProbe:
httpGet:
Expand Down
8 changes: 8 additions & 0 deletions tools/helm/lint-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ models:
internal: true
apiKey: dummy
persistence: { enabled: true } # renders models/pvc.yaml and the chart-owned claim
env: # exercises the custom env vars templated into knative-serving.yaml
- name: MODEL_CUSTOM_VAR
value: custom-value
- name: MODEL_SECRET_VAR
valueFrom:
secretKeyRef:
name: my-secret
key: my-key
resources:
requests: { cpu: 1, memory: 1G }
limits: { cpu: 2, memory: 2G }
Expand Down
Loading