Configuration Alternatives at Runtime
This section provides a comprehensive guide on how to configure alternative runtimes using OpenFold3.
Start the OpenFold3 NIM
To start the NIM:
- The
-poption sets the port for the NIM. - The
-eoptions define the environment variables, which are passed into the NIM’s container at runtime. --rmremoves the container when it exists.-itallows interacting with the container directly at the CLI.
Using an Alternative Port for OpenFold3 NIM Requests
If you have other HTTP servers running (for example, other NIMs), you may need to make the 8000 port available by using another port for your NIM. To use an alternative port:
- Change the exposed port by setting the
-poption. - Set the
NIM_HTTP_API_PORTenvironment variable to the new port.
The following is an example of setting the NIM to run on port 6626:
Backend Optimization Options
By default, the NIM will run in TensorRT mode for supported GPUs. You can override the default backend optimization by setting the NIM_OPTIMIZED_BACKEND environment variable.
The following backend options are available:
trt(default): TensorRT support for optimized performance on supported GPUstorch: PyTorch with cuEquivariance for GPU accelerationtorch_baseline: PyTorch with DeepSpeed for distributed training and inference
Running with PyTorch+cuEquivariance
The following is an example of setting the NIM to run with PyTorch+cuEquivariance:
Running with PyTorch+DeepSpeed
The following is an example of setting the NIM to run with PyTorch+DeepSpeed: