Configure the VLM
This page describes how to configure the VLM for the VSS agent workflow—both local (NIM on the same machine as the agent) and remote (VLM served elsewhere). You can run the LLM and VLM locally or remotely, in any combination that suits your setup.
For remote VLMs, as long as the API is OpenAI compatible, you can point the agent to it for video analysis during report generation, video understanding, video summarization, and more. Remote endpoints can enable rapid startup when they are already up and running.
Local VLM customization
When deploying with a local VLM, the agent workflow uses a default NIM endpoint. You can customize it as follows:
- Default model: Local VLMs are served by RT-VLM. The Base, Alerts, and Live Video Search profiles use Cosmos3 Nano Reasoner BF16 (
nim_nvidia_cosmos3-nano-reasoner_bf16-final); Search uses the FP8 checkpoint (nim_nvidia_cosmos3-nano-reasoner_modelopt-fp8-final_format_fix) to share the GPU with its critic workload. TheVLM_NAMEvalue is the model ID advertised by RT-VLM, not the checkpoint name.
Use an NGC Personal API Key when you explicitly deploy the standalone Cosmos3 Reasoner NIM. The default developer profiles serve Cosmos3 through RT-VLM instead; use an authorized NGC credential for the RT-VLM image and model artifacts.
-
Custom NIM env file: Set
VLM_ENV_FILEin the selected profile’s*-overrides.envfile to the path (absolute or relative todeploy/docker) of an env file that overrides NIM settings. See NIM configuration settings in Prerequisites. -
Different local model: For a local VLM, configure RT-VLM rather than selecting a standalone NIM Compose profile. Set
VLM_NAME,VLM_NAME_SLUG=none,VLM_MODEL_TYPE=rtvi,RTVI_VLM_MODEL_PATH, andRTVI_VLM_MODEL_TO_USEtogether in the selected profile’s*-overrides.envfile.The supported model selections map to the following RT-VLM values:
nvidia/cosmos3-reasoner is a supported selection name. For the current
profiles it maps to the Cosmos3 Nano BF16 RT-VLM checkpoint above; it is not a
direct VLM_NAME value. Use the FP8 selection for the smaller-footprint
checkpoint, including the Search profile default.
The selection names above cover the Cosmos3 Nano checkpoints only. Cosmos3 Super
has no selection name: set VLM_NAME and RTVI_VLM_MODEL_PATH directly to a
matching pair instead. For the Search profile, see
Available VLM Models,
which also covers which precision to use when RT-VLM shares a GPU with RTVI-CV.
-
Compatibility: The profile defaults are the shipped local configurations. For another model, ensure GPU memory meets its requirements and refer to VLM NIM documentation.
-
Custom VLM weights: Set
VLM_CUSTOM_WEIGHTSto the path of a directory containing custom VLM weights. See VLM Custom Weights in Prerequisites for download instructions. -
GPU assignment: Set
VLM_DEVICE_IDandRT_VLM_DEVICE_IDto pin the local VLM to a specific GPU (e.g. when sharing with a local LLM). See the quickstart deploy tab-set for examples.
Setup assumptions for remote VLMs
Before you start, make sure you followed the Prerequisites section. It is also recommended to review the different parameters described in the Quickstart guide.
-
Register an account at NVIDIA NGC. Get an NGC API key.
-
Similarly login to NVIDIA NIM API catalog. Get a NIM CATALOG API key.
-
Ensure you are logged in to the NGC registry for docker to pull container images:
Run in the deployment host terminal -
Ensure you have
NGC_CLI_API_KEYset in your environment for the agent workflow to pull NIM containers:Run in the deployment host terminal
Copy the checked-in template to any filename matching *-overrides.env before
modifying it. Files matching that pattern are ignored by Git so local settings
and credentials are not committed. This guide uses user-overrides.env as a
concrete example; if you choose another name, use it consistently in the
deployment commands:
For every configuration below, save the shown values in
deploy/docker/developer-profiles/dev-profile-base/user-overrides.env, then validate and start
the profile with the native Docker Compose command in Quickstart.
Managed remote VLMs
Using frontier OpenAI models
-
Register an account at the OpenAI API platform. Get an API key.
-
Choose a compatible model from the list in
curl https://api.openai.com/v1/models -H "Authorization: Bearer <PASTE_API_KEY_HERE>". -
Deploy the agent workflow and point it to the chosen model name. Set
VLM_MODEL_TYPE=openai:
Examples of compatible openAI models:
Using other cloud-hosted models
Reka
-
Register an account at the Reka Platform. Get an API key.
-
Choose a compatible model from the list in
curl "https://api.reka.ai/v1/models" -H "X-Api-Key: <PASTE_API_KEY_HERE>". -
Create a custom VSS Agent configuration from the shipped base profile configuration, then set
VSS_AGENT_CONFIG_FILEto point to that custom file:Run in the deployment host terminalIn
deploy/docker/developer-profiles/dev-profile-base/user-overrides.env, setVSS_AGENT_CONFIG_FILE=/path/to/config_reka.yml. -
Deploy the blueprint and point it to the chosen model name. Set
VLM_MODEL_TYPE=reka:
Self-hosted remote VLMs
Using downloadable NIM Containers
-
Check GPU requirements to ensure the machine that will host the VLM NIM container is supported.
-
Set
NGC_API_KEYin your environment to be passed to the containers so they can pull model weights:Run in the VLM host terminal -
On the compatible remote machine within your own infrastructure, start the VLM NIM container and ensure it is reachable by the VSS agent workflow machine:
Run in the VLM host terminal
In case you want to run several models (LLMs, VLMs) on the same machine, make sure to assign different GPUs using —gpus ‘device=1’ flag. You may assign multiple GPUs using —gpus ‘device=1,2,3’ etc.
-
Start the VSS agent workflow and point it to the remote VLM NIM container:
Examples of downloadable NIM containers:
- nvcr.io/nim/nvidia/cosmos3-reasoner:1.7
- nvcr.io/nim/nvidia/cosmos-reason2-8b:latest
- nvcr.io/nim/nvidia/cosmos-reason2-2b:latest
Using vLLM Container
You can deploy an open-source VLM from Hugging Face or any other source using the NVIDIA vLLM container. Check the NVIDIA vLLM container documentation for an introduction to vLLM and the vLLM container.
-
Check GPU requirements to ensure the machine that will host the VLM is supported.
-
On the compatible remote machine within your own infrastructure, start the NVIDIA vLLM container with a Hugging Face model and ensure it is reachable by the VSS agent workflow machine:
Run in the VLM host terminal
In case you want to run several models (LLMs, VLMs) on the same machine, make sure to assign different GPUs using —gpus ‘device=1’ flag. You may assign multiple GPUs using —gpus ‘device=1,2,3’ etc.
If you see errors such as ValueError: To serve at least one request with the models's max seq len (262144), you may need to use the --max-model-len flag to limit the maximum context window (input + output tokens per request) to allow the model to fit on smaller GPUs.
While some models support up to 256K tokens, VSS agent requests typically use under 10K-20K tokens. Setting a lower value (e.g. 65536) reduces GPU memory reserved for KV cache.
-
Start the VSS agent workflow and point it to the remote vLLM model:
Using Nemotron Omni (audio-enabled VLM)
NVIDIA Nemotron-3-Nano-Omni analyzes video and audio in a single MP4 clip.
Typical layout
- LLM: local on the VSS host (Nemotron Nano NIM)
- VLM: remote Omni on another GPU (or the same machine on a different GPU), port 30082
Before you start
- Remote VLM only: VSS does not bundle Omni weights when
VLM_MODE=remote. Serve the model yourself (step 3). - Enable audio: Set
ENABLE_AUDIO=truein the localuser-overrides.envfile. Audio-aware prompts and full-MP4 delivery apply only whenomniappears inVLM_NAME. - Non-Omni VLMs: Cosmos and other VLMs ignore the audio track even with
ENABLE_AUDIO=true; the agent logs a warning and falls back to JPEG frame sampling. - Step order: Run steps 1–3 in order. Video Q&A with audio needs the vLLM server (step 3) running. Deployed VSS in step 1 before vLLM was up? Finish step 3, then update
VLM_NAMEinuser-overrides.envand recreatevss-agent(see step 3).
-
Deploy the VSS blueprint (local LLM, remote VLM)
Complete Prerequisites and the Quickstart base profile deploy flow. Use remote VLM layout.
Profile settings (in
developer-profiles/dev-profile-base/user-overrides.env):ENABLE_AUDIO=trueindeploy/docker/developer-profiles/dev-profile-base/user-overrides.envVLM_BASE_URL→ vLLM host from step 3; usehttp://with no trailing/v1(for examplehttp://<VLM_HOST>:30082)- VLM host IP unknown? Deploy in step 1 anyway, then set
VLM_BASE_URLand redeploy after step 3
Configure (
HARDWARE_PROFILE,HOST_IP, andEXTERNAL_IP; see the Quickstart tab-set for your GPU):Verify
deploy/docker/developer-profiles/dev-profile-base/user-overrides.envcontains:VLM_MODE=remoteVLM_BASE_URLENABLE_AUDIO=trueVLM_NAME(set in step 3 once/v1/modelsis available)
-
Download model weights (Hugging Face)
On the VLM GPU host, prepare weights per the Nemotron-3-Nano-Omni model card for the checkpoint you serve in step 3 (for example
nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-NVFP4). -
Serve the VLM on port 30082 (vLLM)
On the VLM host, set
VLM_HOSTto an IP or hostname reachable from the VSS host, pin a GPU, and start the OpenAI-compatible server:Run in the VLM host terminalGet model id (use for
VLM_NAME):Run in the VLM host terminal
A mismatch between VLM_NAME and the id from /v1/models produces HTTP 404 on chat completions.
Reachability from the VSS host:
If step 1 ran before vLLM was ready — set VLM_NAME in user-overrides.env to the returned id, then recreate vss-agent:
Known Issues
- Alert verification workflow is optimized with Cosmos3 Nano Reasoner model and might not work with other models.