Skip to content

Commit

Permalink
helm: support adding labels to models (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 authored Dec 4, 2024
1 parent 5c73336 commit a12fecf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/models/templates/models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ apiVersion: kubeai.org/v1
kind: Model
metadata:
name: {{ $name }}
{{- with $model.labels }}
labels:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
features: {{ $model.features }}
{{- with $model.owner }}
Expand Down
3 changes: 3 additions & 0 deletions charts/models/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ all:

catalog:
llama-3.2-11b-vision-instruct-l4:
# You can optionally add metadata.labels.
# labels:
# tenancy: public
enabled: false
features: [TextGeneration]
url: hf://neuralmagic/Llama-3.2-11B-Vision-Instruct-FP8-dynamic
Expand Down
9 changes: 9 additions & 0 deletions docs/how-to/architect-for-multitenancy.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ spec:
# ...
```

Example Model using Helm chart:
```yaml
catalog:
llama-3.2:
labels:
tenancy: public
# ...
```

Example HTTP requests:

```bash
Expand Down

0 comments on commit a12fecf

Please sign in to comment.