# Hot Dog or Not? Teach a local AI to sort and describe your photos with Nemotron 3 Nano Omni

> Run NVIDIA's Nemotron 3 Nano Omni on your own GPU, have it judge hot dogs with a confidence score and describe every photo, then laugh at what it thinks it sees.

Level: Intermediate
Tool: DGX Spark
Category: Building
Time: About 60 minutes
Checked: 2026-10-29
Tools: [Nemotron 3 Nano Omni (NVFP4) on Hugging Face](https://huggingface.co/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-NVFP4), [NVIDIA Open Model Agreement (the model's license)](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-agreement/), [vLLM](https://docs.vllm.ai), [vLLM: Reproducibility](https://docs.vllm.ai/en/stable/usage/reproducibility/), [TypeSafe: Introducing System One Models & Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev), [CLM-8B model card](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B)
HTML page: https://easyaihowtos.com/guides/hot-dog-or-not-nemotron-3-nano-omni

Remember the "Hot Dog / Not Hot Dog" app from the TV show *Silicon Valley*? I started out building my own on my DGX Spark, but the fun was in the doing. NVIDIA's **Nemotron 3 Nano Omni** turned out to be great at two things: judging a picture with a real confidence score, and describing what it sees in plain words.

So I built both and threw 60 tricky pictures at them, including a dachshund, a crayon drawing and a carrot in a bun. The detector got 55 right, and when it said 99% or more, it was right every time. The descriptions were the best part, because they show *why* it slipped up: sausages that look like cherries, relish that looks like guacamole. Here's how to build both, and what to point them at next.

## What you need

- An NVIDIA GPU that can hold the model: NVIDIA lists an RTX 5090 (32 GB) as the minimum for the NVFP4 version, and a DGX Spark is supported. I used my DGX Spark.
- Linux with Docker and the NVIDIA Container Toolkit, plus about 21 GB of disk for the model download
- A free Hugging Face account, to download the model
- Python 3 with the requests package
- A folder of pictures: hot dogs, lookalikes, things that aren't hot dogs at all, and later your own photos
- About an hour, most of it waiting for the download

## Steps

### 1. What you'll make

Two little tools that run on your own computer, with nothing uploaded anywhere. Point them at a picture and you get a verdict with a confidence score, plus a description in plain words:

```text
$ python hotdog.py hd_chicago.png
>>> HOT DOG   P(hot dog) = 0.971

$ python describe.py hd_chicago.png
This image displays a hot dog in a bun, which appears to be made of a
synthetic material due to its smooth, uniform texture and vibrant colors.
The hot dog is topped with a red sausage, green relish, yellow mustard,
and a dark, granular topping, possibly poppy seeds or a similar condiment. ...
```

![An AI-generated Chicago-style hot dog with relish, mustard and tomato slices](/dgx-spark/hot-dog-not-hot-dog/chicago-dog.jpg)

That's a real answer from my DGX Spark, and yes, it noticed the picture looks a bit fake (it is: every test image here was made by an image generator).

- **The detector** answers one yes/no question, "is this a hot dog?", and tells you how sure it is. That number comes straight from the model, not from a sentence it wrote.
- **The describer** writes 2 or 3 sentences about what's in the photo.

Then comes the fun part. I threw 60 tricky pictures at both, including a dachshund, a crayon drawing and a carrot in a bun. The detector got 55 right. And when it got one wrong, the description usually showed why: it saw the sausages as **cherries**, the relish as **guacamole**, and the carrot as a **"yellow sausage-like filling"**.

Hot dogs are just the excuse. The same two tools can sort your photo library, write alt text for your blog or tell you what's in your fridge.

### 2. Two tricks, in plain English

Both tools use the same model. They just ask it different kinds of questions.

**Trick 1: a yes/no answer with a real probability.** A language model writes one word-piece (a **token**) at a time. For every possible next token, it works out a probability.

- Those probabilities are called **logprobs** (the log of the probability, which is easier for computers to store). Many servers, including vLLM, will send them back if you ask.
- So ask a yes/no question, allow exactly **one** token of answer, and see how much probability went to "yes" versus "no". That's your P(hot dog).
- Set **temperature to 0**, which tells the model to stop adding randomness and always pick its top answer.

This is the same idea as the "decision models" some companies now sell: you get back a fixed answer plus a probability, with no essay to parse. Mine is a home-made, Jev-style version (TypeSafe's Jev takes only text, so it can't look at a photo).

**Trick 2: a description.** Here you let the model talk. You ask for 2 or 3 literal sentences about what's in the picture, with up to 200 tokens to answer. No probabilities, just words, and they turn out to be a window into what the model thinks it's looking at.

### 3. Start the model on your GPU

I used **Nemotron 3 Nano Omni**, an NVIDIA model that understands images, audio, video and text. Its weights are free to download under the **NVIDIA Open Model Agreement** (open weights, but not an Apache or "open source" license, so give it a read). I ran the **NVFP4** version, a compact 4-bit build that's about a 21 GB download, and all my results below come from it.

Sign in to Hugging Face on the machine (`hf auth login`), then start the vLLM server in Docker. NVIDIA's model card says it needs vLLM 0.20.0:

```bash
docker run --rm -it --gpus all --ipc=host -p 8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:v0.20.0 \
  --model nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-NVFP4 \
  --served-model-name nemotron_3_nano_omni \
  --trust-remote-code \
  --max-model-len 32768 \
  --gpu-memory-utilization 0.7
```

The first start downloads the model, so give it a while. If the download asks for a token, add `-e HF_TOKEN=$HF_TOKEN` to the command. When it's ready, this should list `nemotron_3_nano_omni`:

```bash
curl -s http://localhost:8000/v1/models
```

On a DGX Spark, NVIDIA's card suggests `--gpu-memory-utilization 0.70` and a smaller `--max-model-len` if you run out of memory, which is why they're in the command above. The server is only on your own machine at `localhost`. Don't open port 8000 to the internet.

No suitable GPU? Any vision model on an OpenAI-compatible server can stand in. The detector also needs the server to return logprobs. Change `MODEL` and `ENDPOINT` in the scripts, and expect different numbers from mine.

### 4. Tool 1: the hot dog detector

Save this as `hotdog.py`. It asks two questions about each picture:

- **is_hot_dog**, a yes/no question. P(hot dog) is the probability on "yes", divided by the total on "yes" plus "no".
- **what_is_it**, a 4-way choice: hot dog, a sausage that isn't a hot dog, other food, or not food. The options become letters A to D, so each answer is a single token.

It also reports **coverage**, how much of the model's probability landed on a valid answer at all. If coverage is low, the model wanted to say something else ("Maybe"), and you shouldn't trust the result.

```python
"""hotdog.py - ask a local vision model typed questions and read the probability
behind its answer from the answer-token logprobs.

Usage:  python hotdog.py my_photo.png
"""
import base64
import json
import math
import mimetypes
import os
import sys

import requests

ENDPOINT = os.environ.get("ENDPOINT", "http://localhost:8000/v1")
MODEL = os.environ.get("MODEL", "nemotron_3_nano_omni")

IS_HOT_DOG = {"id": "is_hot_dog", "type": "yes_no",
              "question": "Is this a hot dog: a sausage served in a bun?"}
WHAT_IS_IT = {"id": "what_is_it", "type": "choice",
              "question": "What is in this picture?",
              "options": ["hot_dog", "sausage_not_hot_dog", "other_food", "not_food"]}
LETTERS = "ABCD"


def first_token_probs(image_path, prompt):
    """Ask for a one-token answer and return {token: probability} for the top candidates."""
    mime = mimetypes.guess_type(image_path)[0] or "image/png"
    with open(image_path, "rb") as f:
        b64 = base64.b64encode(f.read()).decode()
    r = requests.post(f"{ENDPOINT}/chat/completions", timeout=120, json={
        "model": MODEL,
        "messages": [{"role": "user", "content": [
            {"type": "image_url", "image_url": {"url": f"data:{mime};base64,{b64}"}},
            {"type": "text", "text": prompt},
        ]}],
        "max_tokens": 1,
        "temperature": 0,
        "logprobs": True,
        "top_logprobs": 20,
        "chat_template_kwargs": {"enable_thinking": False},  # answer right away, no reasoning first
    })
    r.raise_for_status()
    top = r.json()["choices"][0]["logprobs"]["content"][0]["top_logprobs"]
    probs = {}
    for t in top:
        key = t["token"].strip().lower()  # "Yes", " yes" and "yes" all count as "yes"
        probs[key] = probs.get(key, 0.0) + math.exp(t["logprob"])
    return probs


def ask_yes_no(image_path, q):
    p = first_token_probs(image_path, q["question"] + "\nAnswer with one word: yes or no.")
    yes, no = p.get("yes", 0.0), p.get("no", 0.0)
    coverage = yes + no  # how much of the model's probability landed on a valid answer
    p_yes = yes / coverage if coverage else 0.5
    return {"id": q["id"], "answer": p_yes >= 0.5, "probability": round(p_yes, 6),
            "coverage": round(coverage, 6)}


def ask_choice(image_path, q):
    menu = "\n".join(f"{LETTERS[i]}) {opt}" for i, opt in enumerate(q["options"]))
    p = first_token_probs(image_path, f"{q['question']}\n{menu}\nAnswer with one letter.")
    raw = {opt: p.get(LETTERS[i].lower(), 0.0) for i, opt in enumerate(q["options"])}
    coverage = sum(raw.values())
    probs = {k: round(v / coverage, 6) if coverage else 0.0 for k, v in raw.items()}
    best = max(probs, key=probs.get)
    return {"id": q["id"], "answer": best, "probability": probs[best],
            "probabilities": probs, "coverage": round(coverage, 6)}


def decide(image_path):
    return {"model": MODEL, "image": os.path.basename(image_path),
            "answers": [ask_yes_no(image_path, IS_HOT_DOG), ask_choice(image_path, WHAT_IS_IT)]}


if __name__ == "__main__":
    if len(sys.argv) != 2:
        sys.exit("usage: python hotdog.py <image>")
    res = decide(sys.argv[1])
    print(json.dumps(res, indent=2))
    a = res["answers"][0]
    print(f"\n>>> {'HOT DOG' if a['answer'] else 'NOT HOT DOG'}   P(hot dog) = {a['probability']:.3f}")
```

Two settings matter more than they look. `max_tokens: 1` means the model only gets to say its answer. `enable_thinking: False` turns off this model's reasoning mode, which is on by default. Without it, the first token would be the start of its thinking, not the answer.

Try it:

```bash
python3 -m venv .venv && .venv/bin/pip install requests
.venv/bin/python hotdog.py my_lunch.png
```

Here's my real output for the strangest picture in my test set, which you'll meet in a minute:

```json
{
  "model": "nemotron_3_nano_omni",
  "state": { "image": "hn_carrot_bun.png" },
  "answers": [
    { "id": "is_hot_dog", "type": "noul", "answer": false,
      "probability": 0.484328, "coverage": 0.999876, "latency_ms": 165.4 },
    { "id": "what_is_it", "type": "choice", "answer": "hot_dog",
      "probability": 0.683815,
      "probabilities": { "hot_dog": 0.683815, "sausage_not_hot_dog": 0.004607,
                         "other_food": 0.285061, "not_food": 0.026517 },
      "coverage": 0.999963, "latency_ms": 170.8 }
  ]
}

>>> NOT HOT DOG   P(hot dog) = 0.484
```

My first version named the yes/no type `noul` and added timing fields. The script above calls it `yes_no` and leaves the timing out, but it works the same way.

### 5. Tool 2: make it describe the picture

Now the chatty half. Save this as `describe.py` next to `hotdog.py`. It sends the same picture with a different request: describe it literally, in 2 or 3 sentences.

```python
"""describe.py - ask a local vision model to describe a photo in plain words.

Usage:  python describe.py my_photo.jpg          # print one caption
        python describe.py photos/ captions.csv  # caption a whole folder
"""
import base64
import csv
import mimetypes
import os
import sys
import time
from pathlib import Path

import requests

ENDPOINT = os.environ.get("ENDPOINT", "http://localhost:8000/v1")
MODEL = os.environ.get("MODEL", "nemotron_3_nano_omni")
PROMPT = ("Describe this image objectively in 2-3 sentences. Name the main objects, what they "
          "are made of, how they are arranged, and the setting. Be literal and specific; do not "
          "guess beyond what is visible.")
PHOTO_TYPES = {".jpg", ".jpeg", ".png", ".webp"}


def describe(image_path):
    """Return (caption, milliseconds) for one image."""
    mime = mimetypes.guess_type(str(image_path))[0] or "image/png"
    with open(image_path, "rb") as f:
        b64 = base64.b64encode(f.read()).decode()
    t0 = time.perf_counter()
    r = requests.post(f"{ENDPOINT}/chat/completions", timeout=300, json={
        "model": MODEL,
        "messages": [{"role": "user", "content": [
            {"type": "image_url", "image_url": {"url": f"data:{mime};base64,{b64}"}},
            {"type": "text", "text": PROMPT},
        ]}],
        "max_tokens": 200,
        "temperature": 0,
        "chat_template_kwargs": {"enable_thinking": False},  # describe right away, no reasoning first
    })
    r.raise_for_status()
    ms = (time.perf_counter() - t0) * 1000
    return r.json()["choices"][0]["message"]["content"].strip(), ms


if __name__ == "__main__":
    if len(sys.argv) == 2 and Path(sys.argv[1]).is_file():
        caption, ms = describe(sys.argv[1])
        print(f"{caption}\n\n({ms:.0f} ms)")
    elif len(sys.argv) == 3 and Path(sys.argv[1]).is_dir():
        photos = sorted(p for p in Path(sys.argv[1]).iterdir() if p.suffix.lower() in PHOTO_TYPES)
        with open(sys.argv[2], "w", newline="") as f:
            out = csv.writer(f)
            out.writerow(["filename", "caption", "ms"])
            for p in photos:
                caption, ms = describe(p)
                out.writerow([p.name, caption, round(ms)])
                print(f"{p.name:<30} {ms:6.0f} ms  {caption[:70]}...")
        print(f"\nWrote {len(photos)} captions to {sys.argv[2]}")
    else:
        sys.exit("usage: python describe.py <image>  |  python describe.py <folder> <captions.csv>")
```

These are the exact settings I used: temperature 0, up to 200 tokens, and thinking off. The prompt asks it to be literal and not guess, which makes its mistakes easier to spot.

Describe one picture, or a whole folder at once:

```bash
.venv/bin/python describe.py my_lunch.png
.venv/bin/python describe.py photos/ captions.csv
```

The folder version writes a spreadsheet with one row per photo (file name, description, time taken). Open it and you've got a searchable list of everything in your pictures.

Describing is slower than the yes/no question because the model writes a few sentences instead of one token. On my DGX Spark, a description took **about 1.6 seconds** per picture on average (90% were done within about 1.9 seconds). The detector took **about 0.45 seconds** per picture, for both of its questions together.

### 6. Build a test set that tries to fool it

One picture tells you nothing. To know whether to trust either tool, you need a pile of pictures where you already know the right answer.

I made **60 images** with Stable Diffusion 1.5, an older free image generator, running on the same machine:

- **26 hot dogs:** Chicago style, chili cheese, top-down, two on a plate, wrapped in foil, at a kids' party.
- **19 lookalikes** built to cause trouble: bratwurst with no bun, pigs in a blanket, a sausage roll, a lobster roll, a cucumber in a bun, a carrot in a bun, a dachshund, a dachshund in a costume, a crayon drawing of a hot dog, a neon sign.
- **15 other things:** pizza, sushi, ramen, a banana, an eclair, plus a cat, a car and a shoe.

**Want to skip this step?** [Download my test set](/dgx-spark/hot-dog-not-hot-dog/hot-dog-test-set.zip) for free (a 3.5 MB zip): all 60 pictures as 512 x 512 JPEGs, plus `labels.csv` and a short README. It's exactly what I tested, including the two wrong labels you'll read about below.

To make your own, write a `labels.csv` with the right answer for each file:

```text
filename,label
hd_chicago.jpg,hot_dog
hn_bratwurst_plate.jpg,not_hot_dog
nf_banana.jpg,not_hot_dog
```

**Look at every image before you trust its label.** I learned this the hard way, and it's in "What went wrong" below. Your own phone photos make an even better test, since real photos are messier than AI-made ones.

### 7. Score the detector

Save this as `score.py` next to `hotdog.py`:

```python
"""score.py - run hotdog.py over a labelled folder and print the scorecard.

labels.csv columns: filename,label   (label is hot_dog or not_hot_dog)
Usage:  python score.py images/ labels.csv
"""
import csv
import statistics
import sys
import time
from pathlib import Path

import hotdog

img_dir, labels_csv = Path(sys.argv[1]), sys.argv[2]
rows = []
for lab in csv.DictReader(open(labels_csv)):
    t0 = time.perf_counter()
    a = hotdog.decide(str(img_dir / lab["filename"]))["answers"][0]
    truth = lab["label"] == "hot_dog"
    p = a["probability"]
    rows.append({"file": lab["filename"], "truth": truth, "pred": a["answer"], "p": p,
                 "conf": max(p, 1 - p), "secs": time.perf_counter() - t0})
    print(("OK " if a["answer"] == truth else "XX ") + f"{lab['filename']:<28} P(hot dog)={p:.3f}")

tp = sum(r["pred"] and r["truth"] for r in rows)
fp = sum(r["pred"] and not r["truth"] for r in rows)
fn = sum(not r["pred"] and r["truth"] for r in rows)
tn = sum(not r["pred"] and not r["truth"] for r in rows)
n = len(rows)
print(f"\naccuracy  {(tp + tn) / n:.3f}  ({tp + tn}/{n})")
print(f"precision {tp / (tp + fp) if tp + fp else 0:.3f}   recall {tp / (tp + fn) if tp + fn else 0:.3f}")
print(f"TP {tp}  FN {fn}  FP {fp}  TN {tn}")
print(f"Brier     {statistics.mean((r['p'] - r['truth']) ** 2 for r in rows):.3f}")

print("\nHow sure was it, and was it right?")
for lo, hi in [(0.5, 0.7), (0.7, 0.9), (0.9, 0.99), (0.99, 1.0001)]:
    b = [r for r in rows if lo <= r["conf"] < hi]
    if b:
        ok = sum(r["pred"] == r["truth"] for r in b)
        print(f"  {lo:.2f}-{min(hi, 1):.2f}: {ok}/{len(b)} correct")
print(f"\nmean time per image: {statistics.mean(r['secs'] for r in rows):.2f} s")
```

Run it, and caption the same folder while you're at it:

```bash
.venv/bin/python score.py images/ labels.csv
.venv/bin/python describe.py images/ captions.csv
```

Here's what each number means:

- **Accuracy:** the share of pictures it got right.
- **Precision:** when it says "hot dog", how often it's right. High precision means few false alarms.
- **Recall:** of all the real hot dogs, how many it found. High recall means few misses.
- **TP, FN, FP, TN:** true positives (hot dogs it called hot dogs), false negatives (hot dogs it missed), false positives (non-hot-dogs it called hot dogs) and true negatives (non-hot-dogs it correctly rejected).
- **Brier score:** for each picture, take the gap between its probability and the truth (1 for hot dog, 0 for not), square it, and average them. 0 is perfect. Saying 50/50 on everything scores 0.25. It rewards being confident *and* right, and punishes being confident and wrong.
- **Calibration:** group the answers by how sure the model was, then check how often each group was right. A **well-calibrated** model that says "80% sure" is right about 80% of the time.

### 8. My detector results

Here's the full test set. Green is right, red is a mistake, and `p` is P(hot dog):

![A grid of 60 AI-generated test images labelled with the model's verdict and P(hot dog). 55 have green borders and 5 have red borders](/dgx-spark/hot-dog-not-hot-dog/grid.jpg)

| Measure | Result | In plain English |
|---|---|---|
| Accuracy | **91.7%** (55 of 60) | Right on 11 of every 12 pictures |
| Precision | **0.957** | 22 of its 23 "hot dog" calls were right |
| Recall | **0.846** | It found 22 of the 26 hot dogs, so it missed about 1 in 6 |
| Confusion | 22 TP, 4 FN, 1 FP, 33 TN | 4 misses and 1 false alarm |
| Brier score | **0.051** | Far better than a coin flip's 0.25 |
| 4-way question | **90%** (54 of 60) | Picked the right one of the four categories |
| Speed | **about 0.45 s** per image | For both questions together, on my DGX Spark |

And the part I was most curious about, calibration:

| How sure it was | Images | Average confidence | Right |
|---|---|---|---|
| 99% or more | 31 | 99.8% | **31 of 31** (100%) |
| 90% to 99% | 15 | 96.5% | 14 of 15 (93%) |
| 70% to 90% | 10 | 80.3% | 8 of 10 (80%) |
| 50% to 70% | 4 | 60.2% | 2 of 4 (50%) |

That's surprisingly honest. Every time it was at least 99% sure, it was right. Around 80% sure, it was right 80% of the time. Below 70%, it was a coin flip, and that's exactly where you'd want a human to take a look.

This is one small test, so don't read too much into the exact percentages. The pattern is the lesson: the probability tells you *which* answers to double-check.

### 9. What it thought it saw

This is my favorite part. Put each picture next to its description and you can read the model's mind a little. Every caption below is copied word for word from my run.

**When it gets it right, it really gets it.**

| Picture | What Nemotron 3 Nano Omni wrote |
|---|---|
| ![An AI-generated hot dog with grill marks and a line of yellow mustard in a white bun](/dgx-spark/hot-dog-not-hot-dog/classic-mustard.jpg) | "This image displays a hot dog in a white bread bun, topped with a red sausage and a line of yellow mustard, resting on a dark gray surface. The hot dog features distinct grill marks on the sausage." **P(hot dog) = 0.871** |
| ![An AI-generated chili cheese hot dog with beans and melted cheese](/dgx-spark/hot-dog-not-hot-dog/chili-cheese.jpg) | "The image shows a hot dog in a bun, topped with chili, red beans, and a bright orange sauce that appears to be melted cheese." **P(hot dog) = 0.854** |

**When it's fooled, the caption shows how.**

| Picture | What Nemotron 3 Nano Omni wrote |
|---|---|
| ![An AI-generated top-down photo of hot dogs on a white plate next to a bowl of red sauce](/dgx-spark/hot-dog-not-hot-dog/top-down-hot-dogs.jpg) | "...a white plate holding two hot dog buns filled with red, spherical fruit (resembling cherries)..." It saw **cherries**, not sausages. **P(hot dog) = 0.298, missed.** |
| ![An AI-generated photo of three plates of hot dogs in buns](/dgx-spark/hot-dog-not-hot-dog/two-hot-dogs-on-a-plate.jpg) | "The image displays three plates containing baked goods that resemble hot dog buns or bread rolls." Buns, but **no sausages**. **P(hot dog) = 0.297, missed.** |
| ![An AI-generated split hot dog bun on a green plate](/dgx-spark/hot-dog-not-hot-dog/half-eaten-hot-dog.jpg) | "Inside the bun, a meat patty and chopped green vegetables, likely lettuce, are visible." A **meat patty**? **P(hot dog) = 0.450, missed.** |
| ![An AI-generated carrot in a hot dog bun, next to a sesame burger bun and an orange slice](/dgx-spark/hot-dog-not-hot-dog/carrot-in-a-bun.jpg) | "The main objects are a hot dog and a hamburger... the hot dog bun is split open to reveal a yellow sausage-like filling..." The carrot became a **"yellow sausage-like filling"**. **P(hot dog) = 0.545, the only false alarm.** |
| ![An AI-generated crayon drawing of a hot dog on brown paper](/dgx-spark/hot-dog-not-hot-dog/crayon-drawing.jpg) | "This image displays a drawing of a hot dog on a plain brown background... rendered with colored pencils or crayons." It knew it was a drawing. **P(hot dog) = 0.325, correctly not a hot dog.** |

Notice the pattern? The detector made 5 mistakes, and for every one of them the description told the same story as the verdict. For the 4 hot dogs it missed, it never described a sausage in a bun: it saw cherries, plain rolls, a patty and (below) guacamole. For the carrot, it described a sausage. The two tools are separate questions, so one didn't cause the other. But they stumble on the same pictures, which makes **the description a great way to find out why a verdict went wrong**.

One more, and here the model may have been right:

| Picture | What Nemotron 3 Nano Omni wrote |
|---|---|
| ![An AI-generated round bun filled with bright green sauce, with no sausage visible](/dgx-spark/hot-dog-not-hot-dog/relish-bun.jpg) | "...a sandwich made with a golden-brown, soft-looking bun and a thick layer of bright green, textured filling that resembles guacamole or a similar puree." **P(hot dog) = 0.021, marked wrong.** |

This was supposed to be a "relish hot dog". Look at it: a round bun, green sauce, no sausage. **Guacamole** is a fair guess. More on that in "What went wrong".

### 10. Same picture, different answer

Here's the carrot again. In the full test run, the detector gave it **0.545**: hot dog, just barely.

Then I ran the same image again. And again. Same model, same settings, temperature 0, where you'd expect the exact same answer every time. Over five repeats, P(hot dog) landed anywhere from **0.481 to 0.547**. When I ran the demo, it said **0.484**, which is *not* a hot dog.

It wasn't the only one. I re-ran the six pictures the detector was least sure about, five times each. All six moved a little, between 0.03 and 0.07. Two of them crossed the 0.5 line and flipped: the carrot, and the half-eaten hot dog (0.452 to 0.517).

The descriptions wobble too, and more visibly. Rerunning 5 pictures at temperature 0 gave **5 different wordings**. So if you use `describe.py` for alt text or a photo catalog, don't expect the same sentence twice. The yes/no score was the steadier of the two.

The likely cause is **batching** in vLLM. To go fast, the server groups requests together, and tiny rounding differences change with each group. vLLM's own docs say it doesn't guarantee reproducible results by default. I haven't proven that's what happened here, though.

The lesson isn't "the AI is broken". A score of 0.545 never meant "hot dog". It meant "I really don't know", and that's useful. Anything near 0.5 should go to a human, and the wobble is one more reason why.

### 11. What went wrong

- **Two of my test images were wrong.** Each label came from the prompt that made the picture, and I didn't check the pictures. The "relish hot dog" came out as a round bun with green sauce and no sausage (the guacamole one above). The detector said 0.021 and got marked wrong, but it was arguably right. The "corn dog" came out as corn on the cob, and the description said so: "several ears of corn on the cob". If I relabel the relish image, accuracy goes from 91.7% to **93.3%** (56 of 60). I kept the original score above, so nothing is quietly improved.
- **How you ask matters.** For the plates of hot dogs, the 4-way question said hot dog at 0.989 while the yes/no question said no. The 4-way question called every one of the 26 pictures labelled hot dog a hot dog. But it also called the carrot and the cucumber in a bun hot dogs, and the yes/no question got the cucumber right (0.008).
- **The 4-way question was confidently wrong sometimes.** It said these egg rolls were "a sausage that isn't a hot dog" at **0.994**. It said the same about a pizza (0.968). A high probability isn't a guarantee, so test each question on its own.

  ![An AI-generated image of crispy egg rolls on a plate](/dgx-spark/hot-dog-not-hot-dog/egg-rolls.jpg)

- **The descriptions are words, not labels.** The describer writes sentences. It doesn't draw boxes around things or give you a tidy list of objects. If you need that, you'll have to ask for it in a different way and test it again.
- **All the pictures are AI-generated.** Synthetic images are cleaner than real photos, so expect real-world results to differ.
- **60 images is small.** A few pictures in each confidence group isn't enough to promise calibration. It's enough to see the pattern.

### 12. Ideas to try next

- **Sort your photo library.** Run `describe.py` over a folder of vacation photos, then search `captions.csv` for "beach", "dog" or "birthday cake". Everything stays on your machine.
- **Write alt text for your blog.** Caption every image in a post, then edit the best ones into alt text. Read each one first: you've seen what it does with relish.
- **Make a fridge-contents describer.** Snap a photo of an open fridge and ask what's in there. Then ask the detector a yes/no question, like "Is there milk in this fridge?", and see how sure it is.
- **Swap the question.** The detector works for "Is this a cat?", "Is this plant healthy?" or "Is this parking spot free?". Change the question text and the labels.
- **Make a "not sure" button.** Only accept answers above 0.9 and send everything else to a person, along with the description so they can see what the model thought it saw.
- **Try to stop the wobble.** vLLM has a beta setting, `VLLM_BATCH_INVARIANT=1`, meant to make results independent of batching. I haven't tried it yet.
- **Hand the description to a decision model.** Stanford and NVIDIA Research released **CLM-8B**, an open, text-only model (Apache 2.0) that only scores the candidates you give it. It can't see pictures, but it could read Nemotron's description and pick "hot dog" or "not a hot dog". That's my next experiment.

## Tips

- Ask for one token when you want a score. If the model writes a sentence first, there's no clean yes/no probability to read.
- Turn reasoning off for both tools. With Nemotron 3 Nano Omni, send enable_thinking: False, or the model starts by thinking instead of answering.
- When a verdict looks wrong, run describe.py on the same picture. The description often shows what the model thought it saw.
- Check coverage. If yes plus no adds up to much less than 1, the model wanted to say something else, so don't trust that answer.
- Look at your test images yourself. Prompt-made labels can be wrong, and a wrong label makes the model look worse (or better) than it is.
- Keep it local. The server only needs to listen on localhost, and your photos never leave the machine.

## FAQ

### Can it draw boxes around the hot dogs?

Not in this project. The describer writes sentences only. I didn't ask it for boxes or a structured list of objects, so I can't tell you how well it does either.

### Why do I get a different description each time?

Temperature 0 removes sampling randomness, but the server's math can still vary slightly depending on what else is batched with your request. When I reran 5 pictures, I got 5 different wordings. vLLM says it doesn't guarantee reproducibility by default. The same effect nudged the yes/no scores by up to 0.07.

### Do I need a DGX Spark?

No. NVIDIA lists an RTX 5090 with 32 GB as the minimum GPU for the NVFP4 version I used. Any vision model on an OpenAI-compatible server can run `describe.py`, and the detector also needs logprobs. Your numbers will differ from mine.

### Can I trust a 99% answer?

In my test, all 31 answers at 99% or more were right. That's a good sign, not a promise. Test on your own pictures before you rely on it.

### Is this Jev?

No. Jev is TypeSafe's hosted decision model, and it only takes text. The detector here borrows the same idea (a fixed answer plus a probability) with a local vision model, and TypeSafe wasn't involved.

---

This guide is from Easy AI How-To (https://easyaihowtos.com). It is independent of the tools named above. Screens and free-plan limits change, so check the date before you rely on a button name.
