model-server-sample
This Helm Chart deploys a model server. While no application is configured, this model server can be utilized in other applications.
About this chart
Model Server Sample Helm Chart
This Helm Chart deploys a model server. While no application is configured, this model server can be utilized in other applications.
Background
This Helm Chart creates the following components:
The Model Service
By default the model-server uses the llama.cpp inference via the ai-lab-recipes model server.
For the vLLM model service case, the Values.model.vllmSelected value should be true, the Values.model.vllmModelServiceContainer and the Values.model.modelName should be configured too.
Installation
Using the OpenShift Developer Catalog
This Helm Chart can be installed from the Developer Catalog using the OpenShift Developer Console.
Using the Helm Install Command
This Helm Chart can be installed via the command line by running the following command:
helm upgrade --install <release-name> --namespace <release-namespace> .
NOTE:
You can create a private-values.yaml file that will be ignored by git to pass values to your Helm Chart.
Just copy the existing values.yaml file in this directory to private-values.yaml and make any necessary edits, then update your installation command as shown below:
helm upgrade --install <release-name> --namespace <release-namespace> -f ./private-values.yaml .
Maintainers
| Name | Url | |
|---|---|---|
| Red Hat AI Development Team | https://github.com/redhat-ai-dev |
Source Code
Requirements
Kubernetes: >= 1.27.0-0
Values
| Key | Type | Default | Description |
|---|---|---|---|
| model.initContainer | string | "" | The image used for the initContainer of the model service deployment. |
| model.maxModelLength | int | 4096 | The maximum sequence length of the model. It is used only for the vllm case and the default value is 4096. |
| model.modelInitCommand | string | "" | The model service initContainer command. |
| model.modelName | string | "ibm-granite/granite-3.1-8b-instruct" | The name of the model. It is used only in the vLLM use case. |
| model.modelPath | string | "" | The path of the model file inside the model service container. |
| model.modelServiceContainer | string | "" | The image used for the model service. For the VLLM case please see vllmModelServiceContainer. |
| model.modelServicePort | int | 8001 | The exposed port of the model service. |
| model.vllmModelServiceContainer | string | "quay.io/redhat-ai-dev/vllm-openai-ubi9:v0.6.6" | The image used for the model service for the vLLM use case. |
| model.vllmSelected | bool | true | Adds support of vLLM instead of llama_cpp. Be sure that your system has GPU support for this case. |
NOTE: Your helm release's name will be used as the name of the application github repository
Deploy model-server-sample with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has model-server-sample on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmodel-server-sample is pinned at v0.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply