Loading Custom and Fine-Tuned Evo 2 NIM Model Checkpoints
Prerequisites
Before proceeding, ensure the following prerequisites are met:
- Your model has been trained or fine-tuned using the NVIDIA BioNeMo Framework.
- The model is saved in the NeMo format (the default output format of the BioNeMo Framework).
Specifying a Custom Evo 2 NIM Model Checkpoint
To configure NIM to load a custom checkpoint, follow these steps:
-
Disable automatic model downloading
Set the
NIM_DISABLE_MODEL_DOWNLOADenvironment variable to1. This prevents NIM from attempting to download the default model from NGC. -
Mount and specify the model path
Mount your custom checkpoint directory into the Docker container and set the
MODEL_PATHenvironment variable inside the container so that it points to the mounted directory.
Example: Loading a Custom or Manually Downloaded Evo 2 Model
You can test this process by manually downloading the original Evo 2 7B 1M model and instructing NIM to load it as a custom checkpoint, even if you have not performed fine-tuning.
-
Set the required variables and paths:
-
Download the model:
-
Run NIM with the appropriate mount points and environment variables:
This sequence of commands starts the NIM container and loads your custom model checkpoint. The example downloads the 7B model, which the hardware table lists as a single-GPU configuration. For additional examples, refer to the Quickstart Guide for Evo 2 NIM.