Protein Structure Prediction Deployment Guide#

Solution Blueprints are provided as Helm Charts. The recommended approach to deploy them is to pipe the output of helm template to kubectl apply -f -. We don’t recommend helm install, which by default uses a Secret to keep track of the related resources. This does not work well with Enterprise clusters that often have limitations on the kinds of resources that regular users are allowed to create.

This blueprint is designed to run on AMD Instinct GPUs.

Default deployment#

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/silogenai/aimsb-protein-prediction \
  | kubectl apply -f - -n $namespace

You can create a namespace with kubectl create namespace $namespace.

Known issue (Helm 4.2.1+): Helm 4.2.1 and newer leak Pulled:/Digest: metadata to stdout (helm#32215), which breaks the piped helm template … | kubectl apply -f -. Until the fix ships, either use Helm 3.16 – 4.2.0, or split the pull and template steps, e.g.:

helm pull oci://registry-1.docker.io/silogenai/aimsb-protein-prediction --untar
helm template $name ./aimsb-protein-prediction \
  | kubectl apply -f - -n $namespace

Using an existing inference service#

Set inference.existingService to skip the inference Deployment and Service. Pass a Kubernetes Service name, name.namespace.svc.cluster.local, or a full http:// URL. The UI then calls that address on inference.port (8000), unless the value already starts with http.

name="my-deployment"
namespace="my-namespace"
servicename="protein-prediction-inference"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-protein-prediction \
  --set inference.existingService=$servicename \
  | kubectl apply -f - -n $namespace

Uploaded .npz files are written under /msa and sent to the AIM as filesystem paths. That works with an external service only when that service mounts the same volume at msa.mountPath. Inline .a3m text does not need the shared volume.

MSA storage#

The chart creates a PersistentVolumeClaim named aimsb-protein-prediction-$name-msa with access mode ReadWriteMany and size msa.quantity (default 10 GiB). Both pods mount it at /msa. Set msa.storageClassName when the default class cannot provision ReadWriteMany volumes.

A ReadWriteOnce volume fails when the UI pod and the inference pod run on different nodes: the inference container cannot open the .npz path. Use a ReadWriteMany class, or keep both pods on one node.

The UI deletes the job directory after the prediction result is stored in memory. Browser uploads are capped by msa.maxUploadBytes (default 32 MiB).

Image overrides#

helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-protein-prediction \
  --set inference.image=docker.io/amdenterpriseai/aim-instinct-target-openfold-openfold3-model-openfold-openfold3:0.13.0 \
  --set ui.image.repository=registry-1.docker.io/amdenterpriseai/image-aimsb-protein-prediction-ui \
  --set ui.image.tag=0.1.0 \
  | kubectl apply -f - -n $namespace

Using imagePullSecrets#

To pull the UI and inference images from a private registry, provide a pre-existing Kubernetes image pull secret:

secretname="my-registry-secret"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-protein-prediction \
  --set imagePullSecrets[0].name=$secretname \
  | kubectl apply -f - -n $namespace

Prediction defaults#

The Configuration fields start from prediction in values.yaml. The UI pod receives them as DEFAULT_SEED, DEFAULT_DIFFUSION_SAMPLES, and MAX_DIFFUSION_SAMPLES.

helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-protein-prediction \
  --set prediction.defaultSeed=7 \
  --set prediction.defaultDiffusionSamples=5 \
  --set prediction.maxDiffusionSamples=5 \
  | kubectl apply -f - -n $namespace

defaultDiffusionSamples has to be from 1 through maxDiffusionSamples. A request above the cap is rejected.

Connecting#

Wait until pods report Running and Ready:

kubectl get pods -n $namespace

Port forwarding#

kubectl port-forward services/aimsb-protein-prediction-$name 8080:80 -n $namespace

Open http://localhost:8080.

HTTPRoute#

HTTPRoute is off by default. The route sends traffic only to the UI Service.

The Gateway defaults are name https in namespace envoy-gateway-system.

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-protein-prediction \
  --set http_route.enabled=true \
  | kubectl apply -f - -n $namespace

The URL is the release full name plus the gateway hostname:

echo "https://aimsb-protein-prediction-$name$(kubectl get gtw https -n envoy-gateway-system -o jsonpath='{.spec.listeners[?(@.name=="https")].hostname}' | tr -d '*')/"

Clean up#

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-protein-prediction \
  | kubectl delete -f - -n $namespace

Warning: The MSA volume is part of that manifest and is deleted with it.