New Tool Radar

Local AI

How to Run LLaVA with Ollama to Describe an Image

Run LLaVA locally with Ollama and ask it to describe a photo in a chat.

Schematic illustration with three step boxes for How to Run LLaVA with Ollama to Describe an Image.

LLaVA is an early open vision-language model that pairs a vision encoder with a language model, and Ollama ships the 7B build. This guide pulls it, sends it a photo, and checks the description against the photo itself.

Before you start

  • Ollama installed and running.
  • At least 8 GB of free RAM for the 7B build, plus about 5 GB of free disk.
  • A photo file on your machine.

Pull the model

Download the 7B build:

ollama pull llava:7b

Then start a chat:

ollama run llava:7b

Attach the image and ask a specific question

Attach the photo and ask a specific question about it, such as what is happening in the scene or what objects are visible. Keep the question to one thing.

Check the description against the photo

Open the photo and compare each claim. LLaVA is an older vision model, so expect mistakes on detail and counts.

Worked example

Sample prompt, with a photo of a dog catching a red frisbee in a park:

What is the dog doing in this photo, and what colour is the frisbee?

The expected answer is that the dog is catching a red frisbee. If the model names a different colour or action, it misread the image.

Expected result

UNTESTED in this guide: no image chat was run while writing it. The expected result is that LLaVA says the dog is catching a red frisbee, matching the photo.

Limitations

LLaVA is an older vision model and weaker than current ones on detail, text and counting. Use it for the main subject and action in a photo, and check every claim against the image.

Sources

See all