model-server-sample

by joaquinito2051

Helm chartv0.1.6

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

NameEmailUrl
Red Hat AI Development Teamhttps://github.com/redhat-ai-dev

Source Code

Requirements

Kubernetes: >= 1.27.0-0

Values

KeyTypeDefaultDescription
model.initContainerstring""The image used for the initContainer of the model service deployment.
model.maxModelLengthint4096The maximum sequence length of the model. It is used only for the vllm case and the default value is 4096.
model.modelInitCommandstring""The model service initContainer command.
model.modelNamestring"ibm-granite/granite-3.1-8b-instruct"The name of the model. It is used only in the vLLM use case.
model.modelPathstring""The path of the model file inside the model service container.
model.modelServiceContainerstring""The image used for the model service. For the VLLM case please see vllmModelServiceContainer.
model.modelServicePortint8001The exposed port of the model service.
model.vllmModelServiceContainerstring"quay.io/redhat-ai-dev/vllm-openai-ubi9:v0.6.6"The image used for the model service for the vLLM use case.
model.vllmSelectedbooltrueAdds 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmodel-server-sample is pinned at v0.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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