Utilities
NIM includes a set of utility scripts to assist with NIM operation.
Utilities can be launched by adding the name of the desired utility to the docker run command. For example, you can execute the list-model-profiles utility with the following command:
You can get more information about each utility with the -h flag:
List Available Model Profiles
Prints to the console the system information detected by NIM, and the list of all profiles for the chosen NIM. Profiles are categorized by whether or not they are compatible with the current system, based on the system information detected.
Example
Download Model Profiles to NIM Cache
Downloads selected or default model profile(s) to NIM cache. Can be used to pre-cache profiles prior to deployment. Requires NGC_API_KEY and LOCAL_NIM_CACHE in environment. The folder $LOCAL_NIM_CACHE needs to be writable (with mode 777).
Example
Create Model Store
Extracts files from a cached model profile and creates a properly formatted directory. If the profile is not already cached, it will be downloaded to the model cache. Downloading the profile requires NGC_API_KEY in environment.
Example
Check NIM Cache
Checks if the NIM cache directory is present and can be written to.
Example
Set Cache Environment Variables
Prints commands for setting cache environment variables to console.