Indexing Databases for GPU Server
The MSA Search NIM includes GPU-accelerated search through the GPU Server, which requires databases to be indexed with specific parameters. This guide explains how to index custom databases using the MMseqs2 tools included in the NIM container.
When to Index
Databases downloaded from NGC are already pre-indexed and ready for GPU Server use. No additional indexing is required for these databases.
Indexing is only required when:
- You have created a custom MMseqs2 database from FASTA sequences
- You are using third-party databases not downloaded from NGC
Using MMseqs2 From the NIM Container
The NIM container includes MMseqs2 with GPU support. Define a helper function to simplify running MMseqs2 commands:
You can run any MMseqs2 command with that helper function.
For example, to see all available commands:
Example: Re-Indexing a Downloaded Database
This example demonstrates the indexing process by downloading the PDB70 database, removing its index files, and re-creating them.
1. Install and Authenticate the NGC CLI
The ngc command used below is not included with Docker. Before you run ngc registry model download-version, install the NGC CLI for your platform and register it with your NGC account (for example, ngc config set using your NGC API key). Ensure NGC_API_KEY is exported in your environment if the CLI or download flow requires it. For account setup and Docker registry login, refer to Prerequisites and Support Matrix.
2. Download the Database
3. Examine the Database Files
The pdb70_220313 directory contains:
- Core database files:
pdb70_220313,pdb70_220313.dbtype, andpdb70_220313_h - Index files:
pdb70_220313.idxandpdb70_220313.idx.index
4. Remove Existing Index Files
5. Re-Create the Index for GPU Server
The key parameters for GPU Server indexing are:
--split 1: Single split for GPU memory--index-subset 2: Create GPU-compatible index subset
6. Verify the Index Was Created
You should see new index files created.
MMseqs2 Command Reference
For comprehensive MMseqs2 documentation, run:
Or for help on a specific command:
For additional information, refer to the MMseqs2 User Guide.