Hardware & VRAM

Next-Gen Local Vision: Qwen3-VL 8B vs 30B — Live OCR, Receipt & Diagram Benchmark on RTX 5080

Qwen3-VL 8B vs 30B: Local Vision & OCR Benchmark on RTX 5080

🧭 Guide Navigation

Uploading receipts, tax invoices, internal architecture diagrams, and Linux terminal screenshots to cloud AI services is an immediate privacy leak. In 2026, local Vision-Language Models (VLMs) have reached a turning point where a consumer GPU can extract fine print, debug stack traces, and parse multi-node system diagrams with 100% accuracy and zero bytes leaving your machine.

We ran a live hardware benchmark on an NVIDIA GeForce RTX 5080 (16 GB VRAM) comparing qwen3-vl:8b, the flagship MoE qwen3-vl:30b, multimodal gemma4:12b, and legacy llava:13b across three ground-truth tasks: a dense multilingual fiscal receipt, a Linux cudaMalloc OOM terminal screenshot, and a 5-port production architecture diagram. The headline result: the 8B model matched 30B at 12/12 (100% accuracy) while running 17× faster.

148.5 tok/s
qwen3-vl:8b on RTX 5080

12 / 12
100% OCR & Diagram Score

6.6 GB
VRAM with num_ctx=8192

17× Faster
8B vs 30B on 16 GB GPU

1. 2-Minute Quick Start

Pre-requisites: Ollama (v0.6+), any 8 GB+ VRAM GPU (or 16 GB+ Apple Silicon Mac), and a local .png or .jpg image.

🚀 Step 1–2: Pull Qwen3-VL 8B and Parse Your First Image

Run these commands in your system terminal. Pick your OS tab below:



# Download model weights (6.2 GB)
ollama pull qwen3-vl:8b

# Parse a local receipt or screenshot directly from PowerShell
ollama run qwen3-vl:8b `
  "Extract Tax ID, date, and grand total from: C:\scans\receipt.png"

# Download model weights (6.2 GB)
ollama pull qwen3-vl:8b

# Parse a local receipt or screenshot directly from Bash
ollama run qwen3-vl:8b \
  "Extract Tax ID, date, and grand total from: ~/scans/receipt.png"

# Download model weights (6.2 GB, accelerated via Apple Metal)
ollama pull qwen3-vl:8b

# Parse a screenshot from your Desktop 100% offline
ollama run qwen3-vl:8b \
  "Extract Tax ID, date, and grand total from: ~/Desktop/receipt.png"

2. Complex Terms Explained Simply

💡 Complex Terms Explained Simply
  • VLM (Vision-Language Model): an AI model that processes both image pixels and text together. Unlike legacy OCR tools like Tesseract, it understands table layout, diagram arrows, and terminal error context rather than dumping raw characters.
  • Vision Projector (mmproj): the built-in visual adapter that slices an image into patches and translates them into tokens the language backbone can reason over.
  • TTFT (Time To First Token): the wait time between sending an image and seeing the first output token. High-res images and VRAM spillovers drastically increase TTFT.
  • CPU Offload: when a model exceeds your GPU’s VRAM, Ollama spills leftover layers into system RAM over PCIe, slashing generation speed by 10–20×.

3. Live RTX 5080 Benchmark: Qwen3-VL 8B vs 30B vs Gemma 4

We tested four local models against three deterministic ground-truth images (12 exact facts total, 4 per image) via Ollama’s /api/chat endpoint at temperature=0.0 and num_ctx=8192:

  1. Dense Multilingual Fiscal Receipt: Tax ID, timestamp, line-item total, and 20% VAT amount.
  2. Linux OOM Terminal Screenshot: exit code 137, root cause cudaMalloc failed: out of memory, systemd override path, and target environment variable.
  3. Production Architecture Diagram: traffic flow, all service ports (443, 8000, 11434, 5432), and highlighted bottleneck node.
Live RTX 5080 Vision Benchmark: Qwen3-VL 8B vs 30B vs Gemma 4 12B
Live RTX 5080 (16 GB VRAM) results: qwen3-vl:8b hits 12/12 (100% accuracy) at 148.5 tok/s — 17× faster than 30B.
Model Memory (ollama ps) GPU / CPU Split Speed Avg TTFT OCR Accuracy
qwen3-vl:8b 6.6 GB 100% GPU 148.5 tok/s 442 ms 12/12 (100%)
gemma4:12b 8.4 GB 100% GPU 93.2 tok/s 141 ms 11/12 (91.7%)
qwen3-vl:30b 20.0 GB 69% GPU / 31% CPU 8.7 tok/s 17.5 s 12/12 (100%)
llava:13b 8.0 GB API Failure — — HTTP 500 (legacy)

gemma4:12b emerged as an impressive dark horse: running without a hidden thinking block, it delivered an ultra-low 141 ms warm TTFT and aced both the terminal screenshot (4/4) and architecture diagram (4/4), missing only one VAT line on the receipt (11/12). Meanwhile, legacy llava:13b threw HTTP 500 on modern Ollama’s llamacpp vision runner — it is officially obsolete in 2026.

4. The Hidden num_predict Thinking Trap

During our first automated run, we caught a silent failure that trips up almost every developer building local OCR pipelines. With a typical short cap like num_predict: 420, qwen3-vl:8b returned empty or truncated answers on wide technical screenshots.

The culprit: Ollama’s default qwen3-vl:8b checkpoint emits 1,300–1,700 characters (~350–450 tokens) of internal thinking before writing its final response. If your num_predict budget is too tight, the model exhausts its token limit mid-thought and never populates message.content.

Qwen3-VL 8B num_predict trap: 420 vs 1400 tokens
Raising num_predict to 1400+ (or pulling the non-thinking qwen3-vl:8b-instruct tag) immediately unlocks 12/12 accuracy at 148.5 tok/s.
⚙️ Fixing the Ollama API Payload (Before → After)
«options»: {
«temperature»: 0.0,
— «num_predict»: 420
+ «num_ctx»: 8192,
+ «num_predict»: 1400
}

5. The 16 GB VRAM Cliff & Saving 3.4 GB Instantly

Inspecting live ollama ps telemetry on our RTX 5080 revealed two critical hardware realities:

  • Default 32K context wastes 3.4 GB of VRAM: out of the box, qwen3-vl:8b allocates a 32,768-token context window, inflating its footprint to 10.0 GB. Setting num_ctx: 8192 drops usage to just 6.6 GB — easily fitting inside 8 GB GPUs.
  • Why 30B MoE collapses on 16 GB GPUs: even though qwen3-vl:30b only activates 3B parameters per token, all 30B weights plus the vision projector and KV cache require 20.0 GB. On a 16 GB card, 31% of layers spill into system DDR5 RAM, crashing throughput 17× from 148.5 to 8.7 tok/s and bloating TTFT 40× to 17.5 seconds.
VRAM Anatomy: Qwen3-VL 8B (6.6 GB GPU) vs 30B (31% CPU Offload)
Live ollama ps memory footprint on RTX 5080: 6.6 GB 100% GPU vs 20.0 GB with 31% CPU spill.

6. Copy-Paste Local Python Vision Parser

Pre-requisites: Python 3.10+ and requests (pip install requests). Runs 100% offline against localhost port 11434 with zero API keys.

⚡ Private Local OCR Script Using Qwen3-VL 8B (ocr_local.py)

Save as ocr_local.py and run python ocr_local.py receipt.png:

import base64
import sys
from pathlib import Path
import requests

img_path = Path(sys.argv[1])
b64_img = base64.b64encode(
    img_path.read_bytes()
).decode("ascii")

payload = {
    "model": "qwen3-vl:8b",
    "stream": False,
    "messages": [
        {
            "role": "user",
            "content": (
                "Extract all totals, dates, IDs, "
                "and errors as a structured list."
            ),
            "images": [b64_img],
        }
    ],
    "options": {
        "temperature": 0.0,
        "num_ctx": 8192,
        "num_predict": 1400,
    },
}

resp = requests.post(
    "http://127.0.0.1:11434/api/chat",
    json=payload,
    timeout=120,
)
resp.raise_for_status()
print(resp.json()["message"]["content"])

7. 8 GB VRAM & Apple Silicon (Mac) Setup

The best takeaway from our benchmark is that you do not need a $1,500 flagship GPU for production-grade local vision:

Local Vision Model Selection Matrix for 8-24 GB VRAM and Mac
Recommended local Vision models across 8 GB, 12 GB, 16 GB, 24 GB GPUs and Apple Silicon Macs.
  • 8 GB VRAM (RTX 4060 / 3070 / 3060 Ti): run qwen3-vl:8b-instruct with num_ctx: 4096–8192. At 6.6 GB, it stays 100% in VRAM at 60–90 tok/s with zero CPU offload.
  • 12–16 GB VRAM (RTX 3060 12GB / 4060 Ti 16GB / 5080): pair qwen3-vl:8b (100% OCR accuracy) with gemma4:12b (141 ms TTFT for instant UI and code debugging).
  • Apple Silicon Macs (M1–M4): 16 GB Macs run qwen3-vl:8b effortlessly; 32–64 GB Unified Memory Macs are actually the sweet spot for qwen3-vl:30b, since all 20 GB fit in Metal GPU memory without PCIe bottlenecks.
🏆 Engineering Verdict

On 8–16 GB VRAM GPUs, qwen3-vl:8b (configured with num_ctx=8192 and num_predict=1400+, or the :8b-instruct tag) is the undisputed winner. It matches qwen3-vl:30b at 12/12 (100% accuracy) while running 17× faster (148.5 tok/s) and saving 13.4 GB of memory. Only deploy qwen3-vl:30b if you have 24+ GB VRAM (RTX 3090/4090) or a 32+ GB Apple Silicon Mac.

8. Frequently Asked Questions (FAQ)

How is Qwen3-VL 8B better than classic OCR like Tesseract?

Tesseract only dumps raw character strings and breaks on multi-column tables, terminal logs, and arrowed diagrams. Qwen3-VL understands visual layout and semantics: it can output clean JSON from a crumpled receipt or diagnose a systemd error from a dark terminal screenshot.

Why is image parsing slower in Open-WebUI than in your benchmark?

By default, Open-WebUI sends full 4K smartphone photos and leaves num_ctx at 32K. Cap num_ctx to 8192 in model settings and downscale photos to 1280–1600 px wide — TTFT drops 3–5× with zero loss in text readability.

Can I parse multi-page PDFs with Qwen3-VL?

Yes: render each PDF page to PNG at 150–200 DPI (using pymupdf or pdf2image) and pass 1–2 pages per request. For 100-page text-native PDFs without scanned graphics, standard local RAG (AnythingLLM or Open-WebUI) is faster.

Does any image data ever leave my local machine?

Never. Once ollama pull qwen3-vl:8b finishes, all weights live locally on disk. You can disconnect Wi-Fi or unplug Ethernet completely and vision parsing continues running 100% offline.

🎁 Practical Masterclasses & Cheatsheets

Watch step-by-step 4K tutorials with live terminal code on YouTube, quick mobile tests on TikTok, and grab production-ready configs in our Telegram channel.

▶ YouTube @ai-content-tech ✈ Telegram 🎵 TikTok @ai_content_tech

💬 Discussion & Engineering Feedback 0

Ask questions about terminal errors, model deployment configs, or share your benchmark results.

Leave a Comment or Question

🛡 Initial comments are moderated for spam prevention. Code snippets and technical logs are welcome. Required fields are marked *