Configuration
This page explains how to configure NIM for BMD using environment variables during container launch, apply per-request overrides for molecular dynamics parameters, and manage model and GPU settings.
Environment Variables
Pass environment variables when you launch the container:
Use the environment variables in the following table to configure NIM for BMD:
Refer to Environment Variables for a complete reference of all environment variables and their defaults.
DFT-D3 Parameters
When ALCHEMI_NIM_DFT3_ENABLED is true, you can provide custom damping parameters using the ALCHEMI_NIM_DFT3_PARAM environment variable. The value must be a JSON string (for example, '{"s8": 0.3908, "a1": 0.5660, "a2": 3.1280}').
For detailed information on DFT-D3(BJ) dispersion corrections, refer to the ALCHEMI Toolkit-Ops documentation.
Per-Request MD Configuration
The config field in requests accepts the following parameters to override defaults for a specific request.
Time and Integration
Use the following parameters to set time and integration:
Temperature Control (NVT)
Use the following parameters to control temperature:
Pressure Control (NPT)
Use the following parameters to control pressure:
External Fields (AIMNet2 only)
Use the following parameter to control external fields in AIMNet2:
Model Configuration
For supported models and sourcing details, refer to Supported Models. For step-by-step download hints and container launch arguments for each model type (MACE, AIMNet2, TensorNet), refer to Custom Models.
For non-bundled models (such as TensorNet and AIMNet2), mount the content of the model directory into the container and set ALCHEMI_NIM_MODEL_PATH to the mounted path inside the container:
The mounted directory should contain the model files as downloaded from the model repository. For specific model requirements, refer to Custom Models.
GPU and Memory Configuration
- Shared memory: Use
--shm-size=8gto support large simulations. - Batch size: The NIM estimates the optimal and maximum batch size for available GPU memory at startup. Override this behavior by setting
ALCHEMI_NIM_BATCH_SIZE. - Multi-GPU: The NIM automatically uses all available GPUs. Each GPU runs an independent worker.