Model Profiles and Selection
A model profile is a pre-validated inference configuration that NIM LLM and VLM selects at container startup.
Every model-specific NIM container ships with a model manifest — a catalog of one or more profiles. Each profile is defined by tags for the backend engine, model precision, tensor parallelism size (TP), pipeline parallelism size (PP), and LoRA support.
For model-free NIM, the model manifest is generated at runtime with generic profiles that can deploy the NIM across a wide range of system configurations.
At container startup, NIM selects exactly one profile from the manifest. The selected profile determines which model files are downloaded and how the inference backend is launched.
Profile Naming Convention
Profile descriptions are generated from the tags in the container’s model manifest. A common base form is:
Where:
<backend>is the inference engine in the container image (vllmorsglang). Each image ships only its own engine’s profiles: the SGLang image lists and loadssglang-*profiles, and the vLLM image lists and loadsvllm-*profiles.<precision>is the quantization format (bf16,fp8,mxfp4, ornvfp4)tp<N>is the tensor parallelism degree (number of GPUs)pp1indicates single-stage pipeline parallelism- The
-lorasuffix indicates the profile supports LoRA adapter loading
For example, vllm-bf16-tp4-pp1-lora uses BF16 precision across four GPUs with LoRA support on the vLLM backend, and sglang-bf16-tp4-pp1 runs the equivalent configuration on the SGLang backend.
Descriptions can include additional tag values, such as a GPU name, a
performance variant (throughput or latency), or a minimum-memory value.
The base form above is not a template for reconstructing an exact selector.
Copy the complete description printed by list-model-profiles for the image
version you plan to deploy, or use the full profile ID. The optimized-profile
tables in the Support Matrix for NIMs provide full IDs to distinguish profiles
that share the same precision and parallelism.
List Available Profiles
Before pulling a model-specific NIM image, use the
NIM Metadata API
to inspect published profiles for a container tag over HTTP. The
Choose a Profile for Your Hardware
guide explains how to compare GPU targeting, memory requirements, precision,
and parallelism, then record a profile ID for deployment with NIM_MODEL_PROFILE.
Metadata coverage varies by NIM and tag, and missing fields represent unknown
requirements. If metadata is unavailable, use the Support Matrix for NIMs and
the list-model-profiles command below to inspect the container on your system.
To list the profiles that a container can run, complete the following steps:
Run the list-model-profiles command:
Example output:
The example above shows output from a vLLM container image. The SGLang container image emits profiles with sglang-* descriptions instead (for example, sglang-bf16-tp1-pp1).
Each profile has:
- Profile ID: A unique 64-character profile ID.
- Profile description: A human-readable string constructed by joining tag values with hyphens (for example,
vllm-bf16-tp1-pp1on a vLLM image orsglang-bf16-tp1-pp1on an SGLang image). - Memory annotation: An estimated VRAM requirement per GPU, shown in brackets (for example,
[requires >=18 GB/gpu]).
Memory-Based Profile Classification
NIM estimates the GPU VRAM required by each profile and classifies it into one of three categories based on the available memory on the system:
If a profile is classified as low memory, the listing output includes a suggestion. For example:
To apply the suggestion, pass the --max-model-len argument:
Reducing --max-model-len limits the maximum sequence length (input + output tokens) per request. Choose a value that fits your use case.
How Profile Selection Works
NIM uses a priority-ordered selection chain to decide which profile to use. The chain is evaluated top-to-bottom; the first selector that produces a match wins.
The memory-aware selector runs automatically as part of the selection chain. It estimates GPU memory requirements for each candidate profile by analyzing model weights, KV cache, activations, and overhead. Profiles that do not fit in available GPU memory are excluded from selection.
Select a Profile
The method you use to select a profile depends on your requirements and environment. You can allow NIM to pick a compatible profile automatically, or you can specify the exact profile by ID or by description.
Automatic Selection (Default)
If you do not set NIM_MODEL_PROFILE, NIM automatically selects the best compatible profile from the manifest based on your hardware (GPU device, available VRAM, estimated memory requirements, and parallelism constraints).
To start the container with automatic profile selection, run the container without NIM_MODEL_PROFILE:
Intelligent Default Selection
Setting NIM_MODEL_PROFILE to "default" triggers intelligent default selection. NIM picks the best compatible profile based on the following criteria:
- Hardware compatibility (GPU device, VRAM)
- Backend priority
- LoRA configuration
To use intelligent default selection, set NIM_MODEL_PROFILE to "default" and start the container:
Explicit Selection by Profile ID
Specify the full 64-character profile ID from the manifest of the image you plan to deploy. This selects that exact profile without reconstructing its description. Check the ID again when changing image versions: a profile change can produce a different ID.
To select a profile by ID, set NIM_MODEL_PROFILE to the 64-character profile ID:
Explicit Selection by Profile Description (Friendly Name)
If the value of NIM_MODEL_PROFILE is not a valid Profile ID, NIM tries to match it against the profile description — a human-readable string constructed from ordered profile tags.
To select a profile by description, set NIM_MODEL_PROFILE to the profile description:
On an SGLang container image, use the matching sglang- profile description (or its hash) instead, for example sglang-bf16-tp1-pp1.
Use list-model-profiles to discover the exact profile IDs and descriptions available in your container.
Configuration Precedence
NIM_MODEL_PROFILE selects a model profile. The following sources override its
settings, from highest to lowest priority:
direct container arguments, NIM_PASSTHROUGH_ARGS, NIM environment variables
that map to backend arguments, and runtime_config.json. For the complete
order, refer to Advanced Configuration.
For example, if a profile specifies tp=2 but the user also sets tensor parallelism to 4 (NIM_TENSOR_PARALLEL_SIZE=4, or the canonical flag --tensor-parallel-size 4), the backend launches with TP=4.
When backend arguments override profile settings, the overridden values are resolved before model download. NIM selects and downloads the profile that matches the final resolved configuration, so the downloaded model files always match the launch configuration.
Pass Backend CLI Arguments
Use NIM environment variables or canonical CLI flags for settings shared by both inference engines. NIM translates these flags into the engine’s arguments. For example, set tensor parallelism to 2 with the environment variable:
Passing the canonical flag as a container argument is equivalent:
The following settings work with both vLLM and SGLang:
For LoRA configuration and profile selection, refer to Fine-Tuning with LoRA. Engine-specific arguments must match the backend in your container image.
For a Kubernetes workload, pass the arguments through the container args field. For a NIM
Operator deployment that does not set spec.multiNode, use spec.args. Do not
use spec.args for a multi-node NIMService; the current LeaderWorkerSet path
does not propagate it to the leader or worker NIM containers. The
direct-argument interfaces preserve any
NIM_PASSTHROUGH_ARGS value provided by the image. For details, refer to
Advanced Configuration.
Changes from NIM LLM 1.x
The following profile selection mechanisms from NIM LLM version 1.x are no longer supported:
Use NIM_MODEL_PROFILE with a profile ID or description as a replacement for these deprecated mechanisms. For further guidance, refer to the 1.x Migration Guide.
Next Steps
After you select a profile, download model artifacts and start serving:
- Model Download — Details on NIM model download functionality
- Environment Variables — Full reference for
NIM_MODEL_PROFILEand other configuration variables - About Model-Free NIM — Runtime manifests and generic profiles for model-free containers