OpenFold3
Biomolecular structure prediction model.
Deployment guide
This guide uses amdenterpriseai/aim-instinct-model-openfold-openfold3:2026.14.0. The latest release is 2026.26.0.
This guide gives step-by-step instructions to deploy the AMD Inference Microservice (AIM) container for the openfold/openfold3 model in different environments. Follow these instructions to run the model on AMD accelerators. This guide assumes a MI300X accelerator on the target system.
This AIM has an API of its own, shaped by what the model takes and returns. See Testing your deployment for the endpoints and payloads of this model.
Prerequisites
- AMD Instinct™ GPU with ROCm support (e.g., MI300X, MI325X)
- Docker installed and configured with GPU support
- A host directory for the model cache, if the model downloads its weights at first start
Docker deployment
Running the container
Set AIM_PROFILE_ID to one of the profiles listed in the README. The runtime then uses that profile
and does not select a profile from the detected hardware.
mkdir -p /path/to/model-cache
docker run \ -e AIM_ID=openfold/openfold3 \ -e AIM_PROFILE_ID=bentoml-mi300x-fp16-tp1-latency \ -v /path/to/model-cache:/workspace/model-cache \ --device=/dev/kfd --device=/dev/dri \ --group-add video --ipc=host \ -p 8000:8000 \ amdenterpriseai/aim-instinct-model-openfold-openfold3:2026.14.0Customizing deployment with environment variables
Customize your deployment with optional environment variables:
docker run \ -e AIM_ID=openfold/openfold3 \ -e AIM_PROFILE_ID=bentoml-mi300x-fp16-tp1-latency \ -e AIM_CACHE_PATH=/workspace/model-cache \ -e AIM_LOG_LEVEL=INFO \ -e AIM_PORT=8080 \ -v /path/to/model-cache:/workspace/model-cache \ --device=/dev/kfd --device=/dev/dri \ --group-add video --ipc=host \ -p 8080:8080 \ amdenterpriseai/aim-instinct-model-openfold-openfold3:2026.14.0Without AIM_PROFILE_ID, the runtime selects a profile from the detected hardware.
AIM_ACCELERATOR_COUNT changes the accelerator count that the selection uses. The runtime does not use it when
AIM_PROFILE_ID is set.
Kubernetes deployment
Deployment
It is possible to deploy AIM with Kubernetes. This section gives a sample Kubernetes deployment manifest.
Create deployment.yaml with the following content:
apiVersion: apps/v1kind: Deploymentmetadata: name: minimal-aim-deployment labels: app: minimal-aim-deploymentspec: progressDeadlineSeconds: 3600 replicas: 1 selector: matchLabels: app: minimal-aim-deployment template: metadata: labels: app: minimal-aim-deployment spec: containers: - name: minimal-aim-deployment image: amdenterpriseai/aim-instinct-model-openfold-openfold3:2026.14.0 imagePullPolicy: Always env: - name: AIM_ID value: "openfold/openfold3" - name: AIM_PROFILE_ID value: "bentoml-mi300x-fp16-tp1-latency" - name: AIM_CACHE_PATH value: "/workspace/model-cache" - name: AIM_LOG_LEVEL_ROOT value: "INFO" - name: AIM_LOG_LEVEL value: "INFO" - name: AIM_PORT value: "8000" ports: - name: http containerPort: 8000 resources: requests: memory: "64Gi" cpu: "8" amd.com/gpu: "1" limits: memory: "64Gi" cpu: "8" amd.com/gpu: "1" startupProbe: httpGet: path: /healthz port: http periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 360 readinessProbe: httpGet: path: /readyz port: http periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3 livenessProbe: httpGet: path: /healthz port: http periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 30 volumeMounts: - name: model-cache mountPath: /workspace/model-cache - name: ephemeral-storage mountPath: /tmp - name: dshm mountPath: /dev/shm volumes: - name: model-cache persistentVolumeClaim: claimName: minimal-aim-model-cache - name: ephemeral-storage emptyDir: sizeLimit: 256Gi - name: dshm emptyDir: medium: Memory sizeLimit: 32GiThe startup probe gives the start up to one hour: 360 checks at 10-second intervals. That covers a first start that downloads weights, as described in the Model caching for production section. The pod stays out of the service endpoints until this probe succeeds, so no request reaches a model that is still loading. A later start reads the cache and succeeds much sooner.
The readiness probe checks /readyz every 10 seconds. After three failed checks (30 seconds) Kubernetes takes the
pod out of the service endpoints, so a worker that fails after a successful start stops receiving requests until it
recovers. The liveness probe below is slower on purpose and only restarts the container.
Kubernetes runs the liveness probe only after the startup probe succeeds. The liveness probe then accepts 30 failed checks, which is five minutes, before it restarts the container. This tolerates a model that does more work after the health endpoint answers.
The memory and cpu values above are a starting point. Raise them if the profile uses more than one accelerator,
because this AIM starts one worker process per accelerator, and each worker holds its own copy of
the model.
Create the cache volume claim in pvc.yaml:
apiVersion: v1kind: PersistentVolumeClaimmetadata: name: minimal-aim-model-cachespec: accessModes: - ReadWriteOnce resources: requests: storage: 100GiCreate a service configuration in the service.yaml file:
apiVersion: v1kind: Servicemetadata: name: minimal-aim-deployment labels: app: minimal-aim-deploymentspec: type: ClusterIP ports: - name: http port: 80 targetPort: 8000 selector: app: minimal-aim-deploymentCustomize the deployment further to fit your needs. Apply it to the Kubernetes cluster with kubectl:
kubectl apply -f . -n <YOUR_K8S_NAMESPACE>This page covers Docker and Kubernetes. The full deployment guide also covers model caching for production, testing your deployment, advanced deployment scenarios, monitoring and troubleshooting, and security considerations.
View full deployment guide