VLM Customization — VSS Alerts Blueprint
When to use
Use this skill when the user wants to:
- repoint the VSS Alerts Blueprint to a different VLM endpoint,
- run
rtvi-vlmstandalone with either an OpenAI-compatible endpoint or the in-container vLLM path, - fix the assumption that changing one VLM config automatically updates
rtvi-vlm,vlm-as-verifier, andvss-agent.
Do not use this skill for CV detector swaps inside vss-rt-cv; use rtvi-cv-customize-model for those.
Instructions
- Treat
rtvi-vlm,vlm-as-verifier, andvss-agentas three separate VLM consumers. Do not imply that changing onlyRTVI_VLM_*automatically repoints the verifier or the agent UI. - Treat all paths in this skill as relative to a checkout of the public VSS Blueprint repository. Blueprint deployment files live under
deploy/docker/...; customer-accessible RT-VLM source and standalone deployment files live underservices/rtvi/rt-vlm/.... None of these paths resolve inside the DeepStream repository. - For blueprint-side OpenAI-compatible routing, cover all three surfaces:
RTVI_VLM_*env vars,${VSS_PROFILE_DIR}/vlm-as-verifier/configs/config.yml, and thevss-agentVLM_MODEL_TYPE/VLM_NAME/VLM_BASE_URLsettings, then mention force-recreate plus log checks. - For standalone
vllm-compatible, setVLM_MODEL_TO_USE=vllm-compatible, pointMODEL_PATHat the weights source, mentionHF_TOKENonly when the model actually needs auth. Do not treat a log line as proof of a working deployment: v3.2.1 logsWarmup VlmProcess-0 doneeven when warm-up raised an exception. Require the absence of anError during warmupline, readiness, and one successful/v1/chat/completionsresponse. - Never paste credentials into chat or logs; capture with a silent prompt (
read -rsp),chmod 600the env file, and never commitgenerated.env.
Examples
- "Point the VSS Alerts Blueprint at a host-side NIM on
http://host.docker.internal:30082for all RTVI-VLM calls." - "Run
rtvi-vlmstandalone with Qwen3-VL-8B-Instruct served inside the container." - "I changed only
RTVI_VLM_ENDPOINTingenerated.env. That should repointvlm-as-verifierandvss-agenttoo, right?"
Source locations
This skill is documentation-only — no VSS sources ship here. Use a VSS v3.2.1 or compatible checkout and run every command from its root. Clone/LFS, Alerts profile paths, RT-VLM tree, pinned images, and VSS_* vars: references/vss-source-layout.md.
Which modes this applies to
| Mode flag | Workflow | VLM role |
|-----------|----------|----------|
| --mode real-time (2d_vlm) | Real-time VLM alerts | Primary — every alert is VLM-driven |
| --mode verification (2d_cv) | CV + VLM verification | Verifier — VLM confirms each CV incident |
VLM customization applies to both modes. Three services each make their own VLM calls with separate configuration:
| Service | When used | Config location |
|---------|-----------|----------------|
| rtvi-vlm | Real-time alert generation; rtvi_vlm_alert tool calls from agent UI | RTVI_VLM_* vars in ${VSS_PROFILE_DIR}/.env / generated.env |
| vlm-as-verifier (alert-bridge) | Post-processing: confirms each mdx-incidents event (2d_cv only) | ${VSS_PROFILE_DIR}/vlm-as-verifier/configs/config.yml |
| vss-agent | Interactive agent UI queries | VLM_MODEL_TYPE, VLM_BASE_URL, VLM_NAME in ${VSS_PROFILE_DIR}/.env |
All three can point at the same model endpoint — they don't have to.
alert-bridge and vss-agent are closed-source; their pinned images (and the
rtvi-vlm image tag) are listed in
references/vss-source-layout.md.
RTVI-VLM: Two Deployment Methods
The implementation is selected by VLM_MODEL_TO_USE (standalone) or
RTVI_VLM_MODEL_TO_USE (VSS blueprint).
Method A: OpenAI-Compatible Endpoint (`openai-compat`)
The RTVI container makes HTTP calls to an external inference server; it does
not load the model itself. This covers local or remote NIM, external vLLM, and
OpenAI.
Method B: vLLM Inside the RTVI Container (`vllm-compatible`)
The container downloads and serves the model using its bundled vLLM engine. No
external inference server is needed.
Hard constraint: The model architecture must be supported by the vLLM
version shipped in the selected RTVI image. Check the supported-model guidance