seldon-mab
by Helm
Chart to deploy a multi-armed bandits router over two Seldon Core v1 deployments, so that traffic is sent to the best performing model. You will need to utilize both the `predict` and `send_feedback` API methods.
About this chart
seldon-mab
Chart to deploy a multi-armed bandits router over two Seldon Core v1 deployments,
so that traffic is sent to the best performing model.
You will need to utilize both the predict and send_feedback API methods.
Usage
To use this chart, you will first need to add the seldonio Helm repo:
helm repo add seldonio https://storage.googleapis.com/seldon-charts
helm repo update
Once that's done, you should then be able to use the inference graph template as:
helm template $MY_MODEL_NAME seldonio/seldon-mab --namespace $MODELS_NAMESPACE
Note that you can also deploy the inference graph directly to your cluster using:
helm install $MY_MODEL_NAME seldonio/seldon-mab --namespace $MODELS_NAMESPACE
Homepage: https://github.com/SeldonIO/seldon-core
Source Code
- https://github.com/SeldonIO/seldon-core
- https://github.com/SeldonIO/seldon-core/tree/master/helm-charts/seldon-mab
Values
| Key | Type | Default | Description |
|---|---|---|---|
| engine.env.SELDON_LOG_MESSAGES_EXTERNALLY | bool | false | |
| engine.env.SELDON_LOG_MESSAGE_TYPE | string | "seldon.message.pair" | |
| engine.env.SELDON_LOG_REQUESTS | bool | false | |
| engine.env.SELDON_LOG_RESPONSES | bool | false | |
| engine.resources.requests.cpu | string | "0.1" | |
| mab.branches | int | 2 | |
| mab.epsilon | float | 0.2 | |
| mab.image.name | string | "seldonio/mab_epsilon_greedy" | |
| mab.image.version | string | "1.19.0" | |
| mab.name | string | "eg-router" | |
| mab.verbose | int | 1 | |
| modela.image.name | string | "seldonio/mock_classifier" | |
| modela.image.version | string | "1.19.0" | |
| modela.name | string | "classifier-1" | |
| modelb.image.name | string | "seldonio/mock_classifier" | |
| modelb.image.version | string | "1.19.0" | |
| modelb.name | string | "classifier-2" | |
| predictor.name | string | "default" | |
| predictorLabels.fluentd | string | "true" | |
| predictorLabels.version | string | "1.19.0" | |
| replicas | int | 1 | |
| sdepLabels.app | string | "seldon" |
Deploy seldon-mab with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has seldon-mab 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 chartseldon-mab is pinned at v0.2.0 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