Topic 6 of 6 · 6 min read
Running vision and speech models locally
Goal: Run a local transcription or image-description job and check its output against the source.
Local vision and speech models turn images and audio into text on your own machine, which keeps the files private, but each one adds memory use and each output must be checked against its source.
Check yourself · 1 of 3
What input format does whisper.cpp expect for audio?
Why it matters
Screenshots, scanned forms, meeting recordings and customer calls often cannot be sent to a cloud service. A local vision-language model (VLM) describes images and reads screenshots. A speech model transcribes audio. Both run offline, and both make mistakes you will not see unless you compare with the original.
Vision models
A VLM accepts an image plus a text prompt. In Ollama, pull a vision-capable model and pass the image with the prompt:
ollama run qwen2.5vl "Describe this screenshot and list any error text: ./shot.png"
In llama.cpp, a vision model needs two files: the language model and a separate multimodal projector (mmproj). Pass both: llama-server -m model.gguf --mmproj mmproj.gguf -ngl 99. In LM Studio, models with vision show an image icon and accept dropped images.
Memory: the projector file adds to the model size, and each image is turned into many tokens that fill the context. Several large images can use the whole window, so keep the context larger than you would for text alone.
Speech with whisper.cpp
whisper.cpp runs Whisper transcription models without Python.
sh ./models/download-ggml-model.sh base.en
ffmpeg -i call.mp3 -ar 16000 -ac 1 -c:a pcm_s16le call.wav
./build/bin/whisper-cli -m models/ggml-base.en.bin -f call.wav -otxt
The input must be 16 kHz WAV, so convert other formats first. Models range from tiny to large. Larger ones are more accurate and need more memory and time. Names ending in .en are English only.
Checking the output
- Transcription: listen to a random 30 seconds and compare. Look for dropped sentences, wrong names, numbers and technical terms.
- Image description: check every number, label and piece of text against the image. VLMs read text well at large sizes and badly in small fonts.
- Never trust totals or figures read from a screenshot without verifying them.
Before and after
Weak: transcribing a 40-minute meeting with the tiny model, then copying action items straight into a ticket.
Better: use a larger model for the real run, spot-check three segments and names against the audio, and mark the transcript "machine generated, checked in part".
What goes wrong
- Wrong audio format. The file is silently misread or the tool errors out.
- Out of memory. The vision model plus projector plus images no longer fit.
- Invented text. On silence or noise, speech models can output words that were never said.
Examples
Transcribe a call
sh ./models/download-ggml-model.sh small.en
ffmpeg -i call.m4a -ar 16000 -ac 1 -c:a pcm_s16le call.wav
./build/bin/whisper-cli -m models/ggml-small.en.bin -f call.wav -otxt
Check the .txt against the audio at three random points, especially names and figures.
Describe an invoice image
Prompt: "List the invoice number, date and total from this image. If a field is unreadable, say so." Compare each field with the image. A model that fills a smudged total with a plausible number is the failure to look for.
Key points
- Local vision and speech models keep files on your machine, but you must still verify the output.
- In llama.cpp a vision model needs the language GGUF plus a separate mmproj projector file.
- Each image becomes many tokens, so vision work needs more context and memory than text alone.
- whisper.cpp needs 16 kHz WAV input; convert other formats with ffmpeg first.
- Spot-check names, numbers and quoted text against the audio or image before using the result.
Common mistakes
- Feeding an MP3 straight to whisper.cpp without converting to 16 kHz WAV.
- Loading a vision GGUF without its mmproj file and expecting images to work.
- Copying figures read from a screenshot into a report without checking them.
- Using an English-only model on a recording in another language.
Check yourself · 2 of 3
You load a vision GGUF in llama-server and images are ignored. What is missing?
Check yourself · 3 of 3
A local model transcribes a meeting and you plan to paste action items into a ticket. What is the best step first?
Practice items, not counted towards your mastery.
Start here
- Ollama documentation (opens in a new tab)DocsFree
Install steps, the Modelfile format, context length and the local API in one place.
- LM Studio docs (opens in a new tab)DocsFree
How the desktop app downloads models, sets GPU offload and serves a local API.
- llama.cpp (opens in a new tab)ToolFree
The reference runtime for GGUF files: build options, llama-cli and llama-server flags.
More for this topic
- whisper.cpp (opens in a new tab)ToolFree
Local speech transcription: model download, audio format and command-line usage.