A vision model in llama.cpp is two files: the language model and the multimodal projector (mmproj) that turns an image into tokens the model can read. When you load a model with --hf-repo, the matching mmproj downloads automatically unless you pass --no-mmproj.
Load a vision model and send an image
Start the server with a vision model, for example llama serve -hf <vision-model-repo>, and let it fetch the mmproj alongside the model. Then send a chat completion to the server’s OpenAI-compatible endpoint with the image attached — the server’s multimodal support is experimental, and the image travels in the message content as an image URL, base64 included.
llama serve -hf <vision-model-repo>
# mmproj downloads automatically unless you add --no-mmproj
# then POST /v1/chat/completions with the image in the message content
Multimodal support in llama.cpp is experimental, so expect rough edges: some image sizes or formats may fail, and a model without a projector cannot see images at all. Check the server log for the mmproj line before blaming the request — if the projector did not load, the image is invisible to the model.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Vision model loaded | The server runs a vision model | A text-only model cannot see images |
| mmproj present | The log shows the projector loaded | Do not pass –no-mmproj |
| Image accepted | The chat call returns without an image error | Check the image format and size |
| Answer about image | The reply describes the image | Test with an image you can judge |
Expected result. We checked the llama.cpp server README, which says mmproj is downloaded automatically when a model is fetched with –hf-repo and can be disabled with –no-mmproj, and lists multimodal support as experimental. We did not run a vision model on this machine.
Limits
This guide covers the vision setup only. Multimodal support is experimental, and image handling varies by model. We did not test any vision call ourselves.
