Live VLM WebUI
Run a visual agent on Jetson Thor for live scene understanding and visual question answering.
What is a Vision Language Model?
A Vision Language Model (VLM) combines visual understanding with language. It accepts an image or video together with a text prompt, then returns a text response.
Unlike a detector with a fixed class list, a VLM can answer open-ended questions and apply criteria supplied in a prompt. For example, it can describe how objects relate to one another, check a visible condition, or identify a possible hazard. This flexibility makes one model useful for several related visual tasks, but its output must be validated before an application acts on it.
| Detector or classifier | Vision Language Model |
|---|---|
| Fixed output classes | Open text output |
| Task encoded during training | Task specified partly by the prompt |
| Predictable output schema | Schema must be requested and checked |
| Often optimized for one task | Can cover several related tasks |
Industry Use Cases for VLMs
| Domain | Example use case |
|---|---|
| Manufacturing | Review assembly steps and flag missing or misplaced parts |
| Warehousing and logistics | Check package condition, visible labels, and object placement |
| Retail | Identify empty shelf spaces or misplaced products |
| Robotics | Describe workspace objects and their spatial relationships |

This example shows a visual agent checking whether nine installation steps were completed in the required order.
Prerequisites for workshop
Complete Connect to Your Workshop Jetson and keep your VS Code remote window open. You need a laptop with a webcam and a browser that can reach your assigned Jetson.
Use this section only when preparing a Jetson that does not already have the workshop dependencies. Docker with the NVIDIA container runtime must be available. See the Live VLM WebUI setup guide for setup details. Run these commands on the Jetson.
Install Ollama:
curl -fsSL https://ollama.com/install.sh | shDownload Gemma 4 E4B:
ollama pull gemma4:e4bClone Live VLM WebUI:
mkdir -p ~/workshop/repo
git clone https://github.com/NVIDIA-AI-IOT/live-vlm-webui.git ~/workshop/repo/live-vlm-webuiPull the latest Jetson Thor container:
docker pull ghcr.io/nvidia-ai-iot/live-vlm-webui:latest-jetson-thorIf setup fails, follow the Live VLM WebUI setup guide and Ollama on Jetson guide before continuing.
Command location
Commands run in the VS Code terminal connected to your Jetson. The web interface opens in your laptop browser, which also provides the webcam.
Step 1: Load Gemma and Start Live VLM WebUI
Live VLM WebUI captures the browser camera over WebRTC, sends selected frames to the VLM, and displays responses over the video. In VS Code, select Terminal → New Terminal in your Jetson remote window and load the downloaded model:
ollama run gemma4:e4b
Open a second VS Code terminal and start Live VLM WebUI:
In the Terminal panel, select the + button in the upper-right corner. You can also use Terminal → New Terminal from the menu. A second VS Code terminal appears in the list. Keep Gemma running in the first VS Code terminal and run the commands below in the new one.
cd ~/workshop/repo/live-vlm-webui
chmod +x scripts/start_container.sh
bash scripts/start_container.sh --version latest
The launcher starts the WebUI using the downloaded image. Answer the prompts it displays:
| Launcher prompt | Enter |
|---|---|
| Stop and remove an existing Live VLM WebUI container? | y to recreate the workshop container |
| Pull latest image from registry? (y/N) | n to use the downloaded image |
| Continue without jtop? (y/N) | y. Captions work without GPU monitoring |
The existing-container and jtop prompts appear only when applicable. Recreating the container resets its settings. Set the model and prompt in Step 2.
Step 2: Start the Camera
Wait for the VS Code terminal to confirm that the container started successfully:

Data path
The camera is your laptop’s webcam. The browser streams frames to the Jetson over the workshop connection, and the model runs on the Jetson.
Self-signed certificate
The page uses HTTPS so your browser allows webcam access. A security warning appears the first time. This is expected.
-
Click Advanced.

-
Click Proceed to <IP_ADDRESS> (unsafe).

-
Allow camera access when prompted.
Important: Turn Thinking Off
For the workshop’s latency target of under 1 second, set Prompt Editor → Thinking → Off before starting the camera. Keep it Off as you try different presets.
Check the latency after the first few responses. Longer prompts and answers can take more than one second even with Thinking off.
After allowing camera access:
- VLM API Configuration defaults to
http://localhost:11434/v1withgemma4:e4bselected. This connects the WebUI to Ollama on the Jetson. - Under Prompt Editor, set Thinking → Off. This is the workshop setting for the under-1-second latency target.
- Select Webcam and click Start.
Wait for the first caption. The interface shows the live video, the latest answer, its latency, and live GPU and memory usage when jtop is available. You are ready when both the camera preview and a model answer appear.
Step 3: Try the Quick Presets
Quick Presets are application-specific prompt templates. They show how the same VLM can move from a general scene description to a specific output format without retraining the model.
While the camera runs, open Prompt Editor → Quick Presets and select an example. Selecting a preset fills Custom Prompt and applies it automatically. Keep Thinking set to Off while trying the presets. Wait for the next response to see the result.
Explore the presets available in the dropdown:
| Quick Preset | What to try |
|---|---|
| Scene Description | Point the camera around the room and compare the short scene summaries. |
| Object Detection | Place a few objects in view and check the list of objects the model identifies. |
| Activity Recognition | Wave or perform another simple action and read its description. |
| Safety Monitoring | Show a cluttered area and inspect the model’s visible-hazard assessment. |
| Emotion Detection | Explore the preset’s descriptions of visible facial expressions. |
| Accessibility | Compare a detailed scene description with the shorter Scene Description preset. |
| OCR / Text Reading | Hold up printed text and check the transcription. |
| Yes/No Question | Move into and out of the camera view and check whether the response changes. |
Switch presets or change the camera view to see how the same model responds to different tasks. To customize a preset, edit Custom Prompt and press Tab to apply your changes.
Troubleshooting
The model list is empty or requests fail
Check that the model server is still running and reachable from the Jetson:
curl http://localhost:11434/v1/modelsIf Ollama is not running, restart its service:
sudo systemctl restart ollamaAnswers are slow
First check that Prompt Editor → Thinking is set to Off, then try a short-response preset such as Yes/No Question and check the displayed latency. During a caption request, run:
ollama psConfirm that gemma4:e4b reports 100% GPU. If responses remain slow, request a shorter answer in the prompt and lower Max Tokens in the Prompt Editor.
The first request can take longer while the model loads. Frame interval controls how often a frame is analyzed. It does not make an individual caption complete faster.
GPU memory remains in use after stopping a server
Stop Live VLM WebUI and unload the model:
docker stop live-vlm-webui
ollama stop gemma4:e4bLimitation
Each request evaluates a selected frame independently. The model does not remember previous frames or track people and objects over time.
Before Moving On
Stop Live VLM WebUI and unload Gemma 4 E4B before Chapter 3:
docker stop live-vlm-webui
ollama stop gemma4:e4b