Deployment export
You can run a deployment without Nuemetrix. The export gives you a Helm chart for any Kubernetes cluster with NVIDIA GPUs.
Export a deployment#
ember deployments export dep_... --out ./my-model-chart
The folder gets:
Chart.yamlandvalues.yaml: the image by digest, the runtime arguments, the GPUs, CPU and memory, and the environment of the revision.templates/: a Kubernetes Deployment and Service with the same security settings that Nuemetrix uses (no root user, read-only file system, no service account token).cosign.pub: the public key that signs Nuemetrix images.README.md: the steps below.
Only a revision that is ready can be exported. With the API, use GET /control/v1/deployments/{deployment_id}/export. To make the chart again later without the API, save that JSON and use ember deployments export --from-file export.json --out ./chart.
Run the chart#
- Check the image signature:
cosign verify --key cosign.pub <image>. - Copy the image to your registry, or give pull credentials in
imagePullSecrets. - Put the model weights in a volume claim and set
weights.existingClaim. - Make a Kubernetes Secret with the keys in
secretEnv.namesand setsecretEnv.existingSecret. - Install:
helm install my-model ./my-model-chart.
What is not in the export#
- Secret values. The export gives their names only.
- The weights. For a hub model, the export gives the hub source. For a model that you uploaded, use your own copy.
- Scale to zero. The chart runs a fixed number of replicas. Add the autoscaler of your choice.