Configuration#
This section describes how to configure the MSA Search NIM container using environment variables, GPU selection, and volume mounting.
GPU Selection#
By default, Docker uses all available GPUs on the system when started with the NVIDIA Container Runtime:
docker run --runtime=nvidia ...
To expose only specific GPUs to the container, use the --gpus flag:
docker run --gpus='"device=1"' ...
The device IDs are listed in the output of nvidia-smi -L. For more information on GPU selection, refer to the NVIDIA Container Toolkit documentation.
Environment Variables#
The following environment variables can be passed to the NIM using the -e flag with docker run:
ENV |
Required? |
Default |
Notes |
|---|---|---|---|
|
Yes |
None |
You must set this variable to the value of your personal NGC API key. |
|
No |
|
Location (in container) where the container caches model artifacts. |
|
No |
|
Port inside the container where the NIM service is published. When using the |
|
No |
|
Controls the GPU Server for MMSeqs2. The GPU Server is enabled by default for optimal performance with the included ColabFold databases. Set to |
|
No |
|
Sets the maximum number of MSA sequences returned. Must be set globally for all requests when GPU Server is enabled (default in version 2.0.0). |
|
No |
|
Maximum number of databases that can be specified in a single API request. |
|
No |
|
Maximum value for the |
|
No |
|
Maximum value for the |
|
No |
|
Maximum number of chains (sequences) allowed in a paired MSA search request. |
|
No |
|
Maximum length of an input protein sequence. |
|
No |
|
Specifies the level of logging detail. Available options: |
Volumes#
The following container paths can be mounted to local directories for persistent storage.
Container Path |
Required |
Notes |
Docker Argument Example |
|---|---|---|---|
|
Recommended |
Directory where model artifacts and databases are cached. If not mounted, the container will re-download on each startup. Ensure the local directory has read-write-execute permissions ( |
|
Custom path (set via |
Optional |
Mount custom databases by setting |
|