Understanding NVIDIA NGC file
The NVIDIA NGC specification file lists the NVIDIA NGC (NIM) Models that you can download for an air-gapped environment.
For each Model, the file lists variants, and for each variant, optimization profiles. An optimization profile describes how a Model is packaged and optimized for specific hardware and for a specific goal, for example, low latency or high throughput.
The file has the following structure:
models:
- name: ...
modelVariants:
- variantId: ...
optimizationProfiles:
- profileId: ...
The profileId of an optimization profile is the repository ID that you
specify with the -ri parameter of the script. For example, to download the
optimization profile nim/meta/llama-3.1-8b-instruct:fp8-tool-calling,
run:
python3 import_to_airgap.py -do -rt ngc -ri nim/meta/llama-3.1-8b-instruct:fp8-tool-calling -ns ngc_spec.yaml
Optimization profile ID
An optimization profile ID has the format
nim/<publisher>/<model>:<profile>. The
<profile> part is an identifier. Do not rely on it to determine the
hardware requirements. To choose a profile, use its displayName in the
specification file. The display name contains the GPU type, the number of GPUs, the
precision, and the optimization goal. For example:
Llama 3.1 Nemotron Nano 8B V1 H100x2 FP8 Latency
-
H100x2: The profile requires two NVIDIA H100 GPUs.GENERICx1means one GPU of any supported type. -
FP8: The precision is FP8, the 8-bit floating-point format. -
Latency: The profile is optimized for low latency.Throughputprofiles are optimized for high throughput.
Finding the profile ID of a Model
The specification file is a long YAML file. To find the optimization profiles of a Model, search the file for the Model, and display the two lines that follow each match:
grep -A2 "profileId: nim/meta/llama-3.1-8b-instruct" ngc_spec.yaml
Each match shows the profile ID, the framework, and the display name of an optimization
profile. Select the profile that matches your hardware, and specify its profile ID with the
-ri parameter.
