Skip to content

Commit b013ff2

Browse files
authored
Merge pull request #131 from stackhpc/nodeGroupSelector
Add nodeGroupSelector option to LLM UI
2 parents 462da46 + 8bcf1c7 commit b013ff2

File tree

8 files changed

+27
-2
lines changed

8 files changed

+27
-2
lines changed

charts/azimuth-chat/azimuth-ui.schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ controls:
2121
sortOrder:
2222
- /azimuth-llm/huggingface/model
2323
- /azimuth-llm/huggingface/token
24+
- /azimuth-llm/api/azimuthNodeGroupSelector
2425
- /azimuth-llm/ui/appSettings/model_instruction
2526
- /azimuth-llm/ui/appSettings/page_title
2627
- /azimuth-llm/api/image/version

charts/azimuth-chat/values.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"default": "v0.11.0"
4444
}
4545
}
46+
},
47+
"azimuthNodeGroupSelector": {
48+
"type": "string",
49+
"title": "Node Group",
50+
"description": "(Optional) Require that the LLM runs on a particular node group. Must match a node group name in the cluster."
4651
}
4752
}
4853
},

charts/azimuth-image-analysis/azimuth-ui.schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ controls:
2121
sortOrder:
2222
- /azimuth-llm/huggingface/model
2323
- /azimuth-llm/huggingface/token
24+
- /azimuth-llm/api/azimuthNodeGroupSelector
2425
- /azimuth-llm/ui/appSettings/page_title
2526
- /azimuth-llm/api/image/version
2627
- /azimuth-llm/ui/appSettings/llm_params/temperature

charts/azimuth-image-analysis/values.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"modelMaxContextLength": {
4444
"title": "Model Context Length",
4545
"description": "An override for the maximum context length to allow, if the model's default is not suitable."
46+
},
47+
"azimuthNodeGroupSelector": {
48+
"type": "string",
49+
"title": "Node Group",
50+
"description": "The node group to deploy the API backend to. Must match a node group label in the cluster. Leave empty to use any available node."
4651
}
4752
}
4853
},

charts/azimuth-llm/azimuth-ui.schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ controls:
2121
sortOrder:
2222
- /huggingface/model
2323
- /huggingface/token
24+
- /api/azimuthNodeGroupSelector
2425
- /ui/appSettings/model_instruction
2526
- /ui/appSettings/page_title
2627
- /api/image/version

charts/azimuth-llm/templates/api/deployment.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,14 @@ spec:
8282
emptyDir:
8383
medium: Memory
8484
sizeLimit: 1Gi
85-
{{- with $.Values.api.nodeSelector }}
85+
{{- with .Values.api }}
86+
{{- if .azimuthNodeGroupSelector }}
8687
nodeSelector:
87-
{{- toYaml . | nindent 8 }}
88+
capi.stackhpc.com/node-group: {{ .azimuthNodeGroupSelector | quote }}
89+
{{- else if .nodeSelector }}
90+
nodeSelector:
91+
{{- toYaml .nodeSelector | nindent 8 }}
92+
{{- end }}
8893
{{- end }}
8994
{{- with $.Values.api.affinity }}
9095
affinity:

charts/azimuth-llm/values.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
"default": "v0.11.0"
4141
}
4242
}
43+
},
44+
"azimuthNodeGroupSelector": {
45+
"type": "string",
46+
"title": "Node Group",
47+
"description": "The node group to deploy the API backend to. Must match a node group label in the cluster. Leave empty to use any available node."
4348
}
4449
}
4550
},

charts/azimuth-llm/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ api:
104104
# - name: FOO
105105
# value: "bar"
106106
extraEnv: []
107+
# Azimuth node group selector label
108+
azimuthNodeGroupSelector: ""
107109
# Pod node selector labels
108110
nodeSelector: {}
109111
# Pod tolerations

0 commit comments

Comments
 (0)