Llama 3.2 Vision available in Ollama

Llama 3.2 Vision is now available for local execution via Ollama, providing multimodal capabilities in 11B and 90B parameter sizes. This release enables users to process images and text simultaneously on their own hardware.

Model Sizes and Hardware Requirements

Llama 3.2 Vision is offered in two primary configurations to balance performance and resource availability:

  • 11B Model: Requires a minimum of 8GB of VRAM.
  • 90B Model: Requires a minimum of 64GB of VRAM.

Multimodal Capabilities

Llama 3.2 Vision supports a variety of visual understanding tasks. Key capabilities demonstrated include:

  • Handwriting Recognition: The model can interpret and transcribe handwritten text.
  • Optical Character Recognition (OCR): The model can extract printed text from images.
  • Charts and Tables: The model can analyze and interpret data presented in graphical formats or tabular structures.
  • Image Question and Answer (Q&A): The model can answer specific questions based on the visual content of a provided image.

Implementation and Usage

To use Llama 3.2 Vision, users must have Ollama 0.4 installed. The models can be pulled and executed via the command line using ollama run llama3.2-vision (for the 11B version) or ollama run llama3.2-vision:90b (for the 90B version).

Integration via Libraries

Ollama provides multiple ways to integrate Llama 3.2 Vision into applications:

  • Python: Using the ollama-python library, images can be passed within the messages array using the images key.
  • JavaScript: Using the ollama-js library, the chat method accepts an image path or base64 data within the message object.
  • cURL: The API allows for direct interaction via HTTP requests to http://localhost:11434/api/chat, where images are sent as base64-encoded data.

Local Interaction

In the terminal, users can add images to a prompt by dragging and dropping the image file or by specifying the file path to the image on Linux systems.

Sources

Related

  • Dispatch
  • Dispatch
  • Dispatch
  • Dispatch
  • Dispatch