Skip to navigation

Model-Specific Deployment Considerations

View as MarkdownOpen in Claude

Some NIM LLM and VLM containers, including the Model-Free NIMs, need extra profile selection or startup settings beyond the standard Get Started path. Use this page for those models.

Check the version of the NIM you are deploying. This page only covers NIMs for the current release version. Refer to the previous versions of the documentation for NIMs that have already been released.

For generic profile selection, refer to Model Profiles and Selection. For validated GPU and precision combinations, refer to the Support Matrix for NIMs. Check the Release Notes for the requirements that apply to your image version.

Inkling Small

Note the following when deploying this model-specific NIM:

  • Shared memory: All profiles for this model use tensor parallelism across 2 or more GPUs and need more shared memory than the Docker default of 64 MB. Add --shm-size=16GB to docker run. Without it, the container stops during startup with Insufficient space in /dev/shm. For example:

    docker run --gpus=all --shm-size=16GB \
    -e NGC_API_KEY=$NGC_API_KEY \
    -v "$LOCAL_NIM_CACHE:/opt/nim/.cache" \
    -p 8000:8000 \
    nvcr.io/nim/thinkingmachines/inkling-small:2.1.4-variant
  • Reasoning: Reasoning is on by default. Reasoning tokens count against max_tokens, and the reasoning text is returned in message.reasoning (delta.reasoning when streaming), not in reasoning_content. To turn reasoning off for a request, set "reasoning_effort": "none". Supported values are none, low, medium, and high. The chat_template_kwargs flags enable_thinking and thinking have no effect on this model, and include_reasoning: false only hides reasoning that is still generated and billed. Use max_tokens of 2048 or higher when reasoning is on. With a budget of 100 to 256 tokens, the response returns content: null with finish_reason: "length".

  • Media: Text, image, and audio inputs are supported. Audio is accepted as an audio_url content part or as OpenAI input_audio. Video input is not supported. A video part returns At most 0 video(s) may be provided in one prompt.

  • Context length: The context length is 1,048,576 tokens (1M) on all profiles. A request whose prompt and generated tokens together exceed this limit returns HTTP 400 with the limit and the token counts. GPU memory utilization differs by profile (0.80 to 0.90), so the number of concurrent long-context requests depends on the GPU.

  • NVFP4 on Hopper GPUs: The container sets NIM_ALLOW_NVFP4_EMULATION=1 by default. All NVFP4 profiles on Hopper GPUs (H100, H100 NVL, H200, and H200 NVL) run through NVFP4 emulation because these GPUs do not have native FP4 tensor cores. Do not unset this variable on Hopper GPUs. If you unset it, the NVFP4 profiles are not selected. Refer to Advanced Configuration for NVFP4 emulation settings.

  • Request size: The HTTP front end accepts request bodies up to 10 MB. Larger bodies (for example, many base64 images) return HTTP 413.

  • Default passthrough arguments: The image sets NIM_PASSTHROUGH_ARGS="--tokenizer-mode inkling --reasoning-parser inkling --tool-call-parser inkling --enable-auto-tool-choice --exclude-tools-when-tool-choice-none --trust-remote-code --no-enable-log-requests --disable-uvicorn-access-log". A user-supplied NIM_PASSTHROUGH_ARGS replaces this whole string, so include every flag that you still need. To add one flag and keep the rest, append the flag to the container command instead (for example docker run ... nvcr.io/nim/thinkingmachines/inkling-small:2.1.4-variant --max-num-seqs 64). Run the container with --dry-run to print the effective vllm serve command.

  • Profile selection: NIM_MODEL_PROFILE accepts the 64-character profile ID from the optimized profiles table or the full profile description printed by list-model-profiles (for example vllm-nvidia-b200-nvfp4-tp2-pp1-throughput-10.0-2901:10de-2-1). Short names such as vllm-nvfp4-tp2-pp1 are not accepted. An explicitly set profile skips the GPU compatibility check, so confirm that the profile matches the GPU. An explicitly set profile that needs more GPUs than are visible fails during engine start with World size (4) is larger than the number of available GPUs (2).

  • Startup time: On 2x NVIDIA B200 with the weights already in the cache, the container reports /v1/health/live after about 15 seconds and /v1/health/ready after 8 to 12 minutes, because the optimized profiles run a kernel autotune step of about 5 minutes on every start. Wait on /v1/health/ready before you send requests, and set Kubernetes startup probes accordingly.

After starting the container, wait for the readiness endpoint to return HTTP 200 before sending inference requests:

until curl --fail --silent --output /dev/null http://localhost:8000/v1/health/ready; do
sleep 10
done

If readiness does not succeed within the startup probe budget, check the container logs. A live endpoint or an exit status of 0 alone does not confirm a successful start. Refer to startup errors that exit with status 0.

Muse Glimmer

muse-glimmer reasons before it answers every request, and its container enforces the cache-directory permission step that the Get Started path lists as optional. Account for both before you follow the standard quickstart.

Cache Permissions Are Required

The muse-glimmer container checks the mounted cache directory during startup and exits if the directory is not writable by the container user. A cache created with mkdir -p alone fails that check about one second after the container starts:

ERROR: Cache directory /opt/nim/.cache is not accessible by the container user (UID=1000, GID=0).

Apply the cache-permission step from configuration before you start the container. For muse-glimmer, this step is required:

export LOCAL_NIM_CACHE=~/.cache/nim/muse-glimmer
mkdir -p "$LOCAL_NIM_CACHE"
chmod -R a+rwxt "$LOCAL_NIM_CACHE"

As an alternative that needs no chmod, run the container as your own user in the root group by adding -u $(id -u):0 to the docker run command.

Reasoning Is Always On

muse-glimmer emits a reasoning section on every request. For /v1/chat/completions, read reasoning text from message.reasoning_content, or from delta.reasoning_content when streaming, and read the answer from message.content. This container uses SGLang’s reasoning_content field instead of the reasoning field shown in vLLM examples. For the Messages response format, refer to Messages (Anthropic-compatible).

Reasoning cannot be turned off. chat_template_kwargs.enable_thinking, thinking, and reasoning_effort: "none" have no effect on this model.

To reduce the amount of reasoning, set reasoning_strength in chat_template_kwargs. The packaged chat template accepts low, medium, high, and xhigh, and defaults to high.

Budget Enough Output Tokens

Reasoning tokens count against max_tokens. A request with a small budget spends the whole budget inside the reasoning section and returns an empty content with finish_reason: "length". Chat examples elsewhere in this documentation that use 64 to 256 output tokens return no answer text on muse-glimmer for this reason.

Use a max_tokens value of at least 1024 for chat and Messages requests, or lower reasoning_strength when the budget must stay small. The following request sets both and reads the two fields separately:

curl -s http://localhost:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "meta/muse-glimmer",
"messages": [{"role": "user", "content": "Hello! How are you?"}],
"max_tokens": 1024,
"chat_template_kwargs": {"reasoning_strength": "low"}
}' | jq '.choices[0] | {content: .message.content, reasoning_content: .message.reasoning_content, finish_reason}'

Use the served model name that GET /v1/models reports for your image in the model field.

A stop sequence is matched inside the reasoning section as well as in the answer, so a short stop string can end the response before any answer text is produced. Constrained output has its own limitations with this model. Refer to the muse-glimmer entries in the Release Notes.

Nemotron 3.5 Bolt E4B

The nvcr.io/nim/nvidia/nemotron-3.5-bolt-e4b-4gb:2.1.4 image sets NIM_PASSTHROUGH_ARGS to the following value, which turns on tool calling, reasoning parsing, and reasoning by default:

--enable-auto-tool-choice --tool-call-parser gemma4 --reasoning-parser gemma4 --default-chat-template-kwargs {\"enable_thinking\":true}

If you set NIM_PASSTHROUGH_ARGS, your value replaces this one. Include these flags in your value to keep these features. Refer to Advanced Configuration for argument precedence and Custom Parsers and Chat Templates for parser options. To turn off reasoning for a request, set "chat_template_kwargs": {"enable_thinking": false}.

The profile includes a DFlash draft model and enables speculative decoding by default. To turn it off or change its settings, refer to Speculative Decoding.

If you start the container from a model store, which you create with create-model-store and pass in NIM_MODEL_PATH, NIM 2.1.4 does not apply the DFlash and batching settings of the profile. To keep them, save the following content as runtime_config.json at the root of the model store before you start the container:

{"speculative_config": {"method": "dflash", "model": "dflash", "num_speculative_tokens": 7, "attention_backend": "flash_attn"}, "max_num_seqs": 256, "max_num_batched_tokens": 2048}

When you select the profile with NIM_MODEL_PROFILE, including from the offline cache, NIM applies these settings without this step. Refer to Air-Gap Deployment for both methods.

On NVIDIA RTX PRO 4500 Blackwell Server Edition (32 GB), keep concurrency at 16 or lower for prompts of about 8,000 tokens. At 32 concurrent requests, time to first token increases sharply.

With audio input, include a text instruction such as “Transcribe the speech”. Without one, the model responds to the spoken content itself, and the reply varies between requests. For the request format, refer to Image, Audio, and Video Input.

MiniMax-M3

MiniMax-M3 accepts text, image, and video input and returns text. Audio input is not supported. Run the model with the vLLM Model-Free NIM. NVFP4 and BF16 checkpoints are supported; LoRA adapters are not validated in this release.

Checkpoint Selection

Set NIM_MODEL_PATH to the checkpoint for the precision you want:

MiniMax-M3 Checkpoints

PrecisionNIM_MODEL_PATHApproximate Download SizeSafetensors Shards
NVFP4hf://nvidia/MiniMax-M3-NVFP4250 GB88
BF16hf://MiniMaxAI/MiniMax-M3854 GB59

Set NIM_SERVED_MODEL_NAME=minimaxai/minimax-m3 and use this ID in the model field of each request. If you do not set NIM_SERVED_MODEL_NAME, the NIM derives the served name from the model source. For validated GPU and precision combinations, refer to MiniMax-M3.

Required Startup Settings

Apply the settings for your configuration:

MiniMax-M3 Required Startup Settings

ConfigurationRequired Setting
Tuned NVFP4 profile on NVIDIA GB200Add --shm-size=380g or --ipc=host to docker run.
Any other validated profileAdd --shm-size=16GB to docker run.
Video inputKeep video in NVIDIA_DRIVER_CAPABILITIES.
Virtual machines with PCIe GPU passthroughDeploy on bare metal. Virtual machines with PCIe GPU passthrough are not supported in this release.

The tuned GB200 profile uses a 400 GB CPU KV-cache offload tier in /dev/shm. Insufficient shared memory reduces or disables this tier and lowers throughput at high concurrency. For details, refer to the GB200 shared-memory known issue. For other profiles, Docker’s default shared memory of 64 MB is too small for multi-GPU vLLM.

The image sets NVIDIA_DRIVER_CAPABILITIES=compute,utility,video so the NVIDIA Container Toolkit mounts the video decode libraries. If you override this variable in a Kubernetes manifest or Helm values, retain video. For details, refer to the video driver capabilities known issue.

For the virtual machine restriction, refer to the virtual machine known issue.

For example, to run the NVFP4 checkpoint on a host with NVIDIA B200 GPUs, run the following:

export LOCAL_NIM_CACHE=~/.cache/nim/minimax-m3
mkdir -p "$LOCAL_NIM_CACHE"
chmod a+rwxt "$LOCAL_NIM_CACHE"
docker run --rm --gpus=all --shm-size=16GB \
-e NGC_API_KEY \
-e HF_TOKEN \
-e NIM_MODEL_PATH=hf://nvidia/MiniMax-M3-NVFP4 \
-e NIM_SERVED_MODEL_NAME=minimaxai/minimax-m3 \
-v "$LOCAL_NIM_CACHE:/opt/nim/.cache" \
-p 8000:8000 \
nvcr.io/nim/nvidia/vllm-model-free-nim:2.1.4-minimax-m3

The first startup downloads the checkpoint and prepares the engine. For example, the first startup with the NVFP4 checkpoint on NVIDIA H200 took about 17 minutes and used about 233 GB of disk space. The image sets VLLM_ENGINE_READY_TIMEOUT_S=14400, so the engine can take up to 4 hours to become ready before the NIM stops waiting.

Profile Selection

Leave NIM_MODEL_PROFILE unset to let the NIM select a compatible validated profile for your GPUs. To pin a profile, set NIM_MODEL_PROFILE to a profile ID or description from MiniMax-M3. NIM_MODEL_PROFILE accepts the full profile description printed by --dry-run or /v1/metadata, such as vllm-nvidia-b200-nvfp4-tp2-pp1-throughput-2901:10de-2-1. Do not use NIM_MODEL_PROFILE=default, which selects the first compatible profile rather than the automatically selected validated profile.

To list the profiles, set NIM_MODEL_PATH, which list-model-profiles requires:

docker run --rm --gpus=all \
-e NGC_API_KEY \
-e HF_TOKEN \
-e NIM_MODEL_PATH=hf://nvidia/MiniMax-M3-NVFP4 \
nvcr.io/nim/nvidia/vllm-model-free-nim:2.1.4-minimax-m3 list-model-profiles

list-model-profiles shows the validated profiles listed in the support matrix and generic profiles that the NIM generates for any model. Only the profiles in the support matrix are validated for MiniMax-M3. Profile names containing -emulated- run NVFP4 on Hopper GPUs. Profiles with feat_lora are not validated in this release.

Startup Arguments

The image sets NIM_PASSTHROUGH_ARGS to the following default arguments:

--reasoning-parser minimax_m3 --tool-call-parser minimax_m3 --enable-auto-tool-choice --block-size 128 --structured-outputs-config '{"enable_in_reasoning":true}'

To add arguments and keep the defaults, append the arguments after the container image reference. For example, append --max-num-seqs 128 to the docker run command shown above.

If you replace NIM_PASSTHROUGH_ARGS, include --structured-outputs-config '{"enable_in_reasoning":true}' in the new value. The profile still applies the reasoning parser, tool-call parser, and block size, but it does not restore the structured-output flag. Without this flag, a /v1/completions request with structured_outputs.choice can return text outside the allowed choices.

Run the container with --dry-run to print the effective vllm serve command and the source of each argument.

The image also sets VLLM_MAX_STOP_STRINGS=16, so a request can pass up to 16 stop strings.

Thinking Modes

Set the thinking mode with chat_template_kwargs.thinking_mode:

MiniMax-M3 Thinking Modes

ValueBehavior
Not set or adaptiveDefault. The model decides whether to think before answering.
enabledThe model always thinks before answering.
disabledThe model answers without thinking.

For non-streaming /v1/chat/completions responses, read reasoning text from message.reasoning and the answer from message.content. For streaming responses with thinking_mode: "enabled", read reasoning from delta.reasoning and the answer from delta.content. With thinking_mode: "disabled", the model returns the answer without reasoning.

In this release, streaming with thinking_mode unset or set to adaptive returns reasoning, including the <mm:think> and </mm:think> markers, in the answer content instead of a separate reasoning field. This affects /v1/chat/completions, /v1/messages, and /v1/responses. Set thinking_mode to enabled to separate streaming reasoning from the answer, or to disabled to return only the answer.

For /v1/messages, reasoning is returned in thinking content blocks, except for the default or adaptive streaming behavior described above. For the Messages response format, refer to Messages (Anthropic-compatible).

If a request does not set sampling parameters, the model’s defaults apply: temperature 1.0 and top_p 0.95.

Reasoning tokens count against max_tokens. A request with a small budget can spend the whole budget on reasoning and return an empty or truncated answer. Chat, Messages, and video examples elsewhere in this documentation that use 64 to 512 output tokens can return no answer text on MiniMax-M3 for this reason. Use a max_tokens value of at least 2048, or set thinking_mode to disabled for short answers.

For details about the streaming limitation, refer to the streaming reasoning known issue.

Context Length

MiniMax-M3 supports up to 1,048,576 tokens. The NIM serves the largest context that fits the selected profile. Some validated profiles have a lower limit because of GPU memory. For example, the H200 NVFP4 profile with tensor parallelism (TP) set to four serves 961,152 tokens. For limits by GPU and precision, refer to the context-length known issue. Read max_model_len from /v1/models to check the effective limit for your deployment.

Request Examples

The following streaming request enables thinking, so reasoning and the answer arrive in separate fields:

curl -sN http://localhost:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "minimaxai/minimax-m3",
"messages": [{"role": "user", "content": "Explain briefly why the sky is blue."}],
"max_tokens": 2048,
"stream": true,
"chat_template_kwargs": {"thinking_mode": "enabled"}
}'

Only tool_choice: "auto" is supported in this release. The model can answer without calling a tool. Values such as required, a named function, and none are not enforced. Refer to the tool choice known issue.

The following request lets the model decide whether to call a tool. If it does not call a tool, the command prints null:

curl -s http://localhost:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "minimaxai/minimax-m3",
"messages": [{"role": "user", "content": "What is the weather in Paris?"}],
"max_tokens": 2048,
"tools": [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather for a city.",
"parameters": {
"type": "object",
"properties": {"city": {"type": "string"}},
"required": ["city"]
}
}
}],
"tool_choice": "auto"
}' | jq '.choices[0].message.tool_calls'

Structured output is not supported with thinking_mode: "enabled" in this release. Refer to the structured output with thinking known issue.

The following request returns JSON that matches a schema. Leave thinking_mode unset for this example:

curl -s http://localhost:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "minimaxai/minimax-m3",
"messages": [{"role": "user", "content": "Return the city Paris with temperature 20."}],
"max_tokens": 2048,
"response_format": {
"type": "json_schema",
"json_schema": {
"name": "weather",
"strict": true,
"schema": {
"type": "object",
"properties": {"city": {"type": "string"}, "temperature": {"type": "integer"}},
"required": ["city", "temperature"],
"additionalProperties": false
}
}
}
}' | jq -r '.choices[0].message.content'

DeepSeek-V4.1-Flash

  • Pass --shm-size=16GB to docker run. With Docker’s 64 MB default, startup fails with Insufficient space in /dev/shm.
  • The first start downloads about 475 GiB (FP8) or 491 GiB (NVFP4) of model weights. Download and model loading took 45 to 65 minutes in testing. The container already allows for this startup time; no extra timeout setting is required.

Profiles and Image Input

You do not need to set NIM_MODEL_PROFILE for text. On NVIDIA B200, GB200, and H200, the container selects the optimized FP8 profile, which accepts text input only. A request that includes an image returns HTTP 400 with At most 0 image(s) may be provided in one prompt. (parameter=image).

To send images on these GPUs, set NIM_MODEL_PROFILE to the NVFP4 profile ID for your GPU from the support matrix. Use the full profile ID. The generic names such as vllm-nvfp4-tp4-pp1 do not select a profile, and startup fails with no matching profile_id or profile description is found in manifest.

NVIDIA H100, H100 NVL, H200, and H200 NVL have no native FP4 support. On these GPUs, the NVFP4 profiles run with weight-only FP4 emulation, which the container enables by setting NIM_ALLOW_NVFP4_EMULATION=1, and the startup log warns that the GPU lacks native FP4. These profiles are not tuned for throughput.

Reasoning

Reasoning is on by default, with effort high. The response returns the reasoning separately from the answer: in message.reasoning for non-streaming responses and in delta.reasoning for streaming responses.

Reasoning tokens count toward max_tokens. If the budget runs out during reasoning, content is empty and finish_reason is length. Set max_tokens to at least 2048, or turn reasoning off for short answers.

You can control reasoning per request:

  • Set reasoning_effort to low, high, xhigh, or max. The values medium and minimal return HTTP 400.
  • For a numeric effort, pass an integer from 1 to 100 in chat_template_kwargs, for example "chat_template_kwargs": {"reasoning_effort": 60}.
  • Turn reasoning off with "reasoning_effort": "none" or "chat_template_kwargs": {"thinking": false}.

Tool Calling

The container already sets the parser flags for this model in NIM_PASSTHROUGH_ARGS: --tokenizer-mode deepseek_v41 --reasoning-parser deepseek_v41 --tool-call-parser deepseek_v41 --enable-auto-tool-choice. Tool calling works without additional flags. If you set NIM_PASSTHROUGH_ARGS, keep these flags, because the variable replaces the image’s value. Do not use the deepseek_v3 or deepseek_v31 parsers with this model.

Send a First Request

The general Quickstart and API Reference examples use a different model name and a max_tokens value too small for a reasoning model. For this model, read the served model name from /v1/models and set a larger budget:

MODEL=$(curl -s http://localhost:8000/v1/models | jq -r '.data[0].id')
curl -s http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d "{
\"model\": \"$MODEL\",
\"messages\": [{\"role\": \"user\", \"content\": \"What is the capital of France?\"}],
\"max_tokens\": 2048
}" | jq '.choices[0].message | {reasoning, content}'

The response returns the reasoning in reasoning and the answer in content. For a short answer without reasoning, add "chat_template_kwargs": {"thinking": false} to the request.