OpenFold2 Prerequisites
To get started with the OpenFold2 NIM, you must complete the necessary prerequisites.
Hardware
Refer to the Support Matrix for the supported NVIDIA GPUs and system hardware requirements.
Software
Install the following software dependencies:
- Begin with a Docker-supported operating system
- Install Docker - minimum version: 23.0.1
- Install NVIDIA Drivers - minimum version: 590.44.01
- Install the NVIDIA Container Toolkit - minimum version: 1.13.5
- Verify your container runtime supports NVIDIA GPUs by running:
Example output:
- The
CUDA Versionreported bynvidia-smiis the CUDA version bundled with the installed driver, not the one used by the container. The OpenFold2 container ships with a CUDA 13.2 runtime and can run on systems that meet the documented minimum driver requirement for OpenFold2, through CUDA minor version compatibility. - For more information on enumerating multi-GPU systems, refer to the NVIDIA Container Toolkit’s GPU Enumeration Docs.
NIM Cache
The NIM cache stores previously downloaded models so you do not need to download them again on later runs. The container runs as UID 1000 (user nvs). That user owns /opt/nim and /output, and model initialization creates /opt/nim/workspace under /opt/nim. The cache directory must be owned by UID 1000 and writable by that owner only.
Create the directory, restrict it to the owner, and assign it to the container user:
chown needs sudo when your host account is not UID 1000. Start the container as this default user. It can then write the bind-mounted cache and create /opt/nim/workspace. On a shared system, chmod 750 with a controlled group is an alternative to 700; the owner must still be UID 1000.
Running as another UID requires a cache that UID owns, plus a writable mount for every other path that UID must write. /opt/nim and /output stay owned by UID 1000, so a different non-root UID cannot create /opt/nim/workspace and initialization fails with PermissionError.
If the cache was already created for the default container user, assign it to this account before starting. chmod does not change an existing owner.
~/nim-workspace is mounted at /opt/nim/workspace, which nimlib creates during initialization. ~/nim-output is mounted at /output (NIM_OUTPUT_PATH), where the server writes result JSON. HOME=/tmp gives the custom user a writable home directory inside the container.
Running on Slurm With Enroot
This section describes how to run the OpenFold2 NIM on a Slurm-based HPC cluster using Enroot to run the NGC container. Enroot version 3.4.1 or newer is supported.
To run the OpenFold2 NIM on Slurm, complete the following steps:
-
Check that Enroot is available.
On the login node, verify Enroot is installed:
If Enroot is not installed, contact your cluster administrator. Typical path:
/usr/bin/enroot. Create the Enroot config directory if it does not exist: -
Configure and run the Slurm job script.
Copy the following script to a file, such as
openfold2_srun.sh. Set the variables at the top for your cluster and paths:- ACCOUNT: Slurm account name
- PARTITION: Slurm partition (for example,
interactiveorgpu) - ROOT_DIR: Your working directory on the cluster (for example, Lustre or NFS path)
- NGC_IMAGE: NGC image with tag; use
#between registry and image path for Enroot (refer to the following example)
Use a shared filesystem path for
ROOT_DIRandCACHE_PATHso that the SQSH image and cache are visible from the node where the job runs. Use a node-local or large-quota path forTMP_PATHif/tmphas strict quotas (for example, Lustre scratch).Save the following as
openfold2_srun.shand run it withbash openfold2_srun.sh:Submit the job (interactive):
Alternatively, for a batch job, wrap the same script body in an
sbatchscript and setACCOUNT,PARTITION, and other Slurm directives as needed. -
Call the API from your machine.
After the container is running on a compute node, the script prints the node name and saves it to
ROOT_DIR/.openfold2_node.First, from your laptop or the login node, create an SSH tunnel to that node:
Or use the node name directly if you know it:
Then, in another terminal (with the tunnel still open), run a test request:
If the request succeeds, you get a JSON response containing the prediction result.