torchserve
by Intel
TorchServe is a performant, flexible and easy to use tool for serving PyTorch models in production on Intel GPUs.
About this chart
TorchServe with Intel Optimizations
TorchServe is a performant, flexible and easy to use tool for serving PyTorch models in production on Intel GPUs.
For more information about how to use TorchServe with Intel Optimizations, check out the container documentation.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| deploy.env | object | {"configMapName":"intel-proxy-config","enabled":true} | Add Environment mapping |
| deploy.image | string | "intel/intel-optimized-pytorch:2.3.0-serving-cpu" | Intel Optimized torchserve image |
| deploy.modelConfig | string | "/home/model-server/config.properties" | Model Server Configuration file location |
| deploy.models | string | "all" | Models to be loaded |
| deploy.replicas | int | 1 | Number of pods |
| deploy.resources.limits | object | {"cpu":"4000m","memory":"1Gi"} | Maximum resources per pod |
| deploy.resources.requests | object | {"cpu":"1000m","memory":"512Mi"} | Minimum resources per pod |
| deploy.storage.nfs | object | {"enabled":false,"path":"nil","readOnly":true,"server":"nil","subPath":"nil"} | Network File System (NFS) storage for models |
| deploy.tokens_disabled | bool | true | Set token authentication on or off. Checkout the latest torchserve docs for more details. |
| fullnameOverride | string | "" | Full qualified Domain Name |
| nameOverride | string | "" | Name of the serving service |
| pvc.size | string | "1Gi" | Size of the storage |
| service.type | string | "NodePort" | Type of service |
Next Steps
There are some additional steps that can be taken to prepare your service for your users:
- Enable Autoscaling via Prometheus
- Enable Intel GPU
- Enable Metrics and Metrics API.
- Enable Profiling.
- Export an INT8 Model for IPEX
- Integrate an Ingress to your service to serve to a hostname rather than an ip address.
- Integrate MLFlow.
- Integrate an SSL Certificate in your model config file to serve models securely.
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy torchserve with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has torchserve 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 charttorchserve is pinned at v0.1.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