Skip to main content

Model guide

LLaVA-Llama-3 8B v1.1

This XTuner LLaVA checkpoint adds image input to Llama 3 8B Instruct. It is a distinct multimodal conversion, not ordinary Llama 3.1 with an image attached. Use the matching language weights and projector to compare questions about pictures with your existing text-chat setup.

8.03BVision language4,096 token contextView the model card →

At a glance

Parameters
8.03B
Accepts
Text · Image
Returns
Text
Published context limit
4,096 tokens
Model format
GGUF
Software and download hosts
Ollama · llama.cpp. Follow the exact setup below; this list does not establish support for every format, input type or software version.
Suggested compression
Q4
Model-weight download
INT4 weights · 4.92 GBxtuner (model publisher)llava-llama-3-8b-v1_1-int4.gguf
Image-projector download
llava-llama-3-8b-v1_1-mmproj-f16.gguf · 0.62 GB. Both downloads total 5.55 GB.
Languages
English

Will it fit?

LLaVA-Llama-3 8B v1.1 · INT4 download. Fit depends on your computer, the app you run it in and the conversation length you need. Image processing and any companion files need additional memory.

Check on your computer

Best for

  • Check relative positions in a screenshot using XTuner’s Llama 3 model and its own image projector.

Choose something else when

  • A Vicuna-family projector belongs to a different model. Use the XTuner download listed here.

Using image input

Image setup: follow the image check.

First setup

Check a representative task

Test the XTuner image path with a spatial question whose answer is visible.

Setup for this check: Open llama.cpp image setup and start the server with the matching projector.

Test image

In the llama.cpp vision session, attach this image and paste the question below. Keep the answer key out of the prompt. Crop to the table if you cannot save the image.

From the image layout, what is directly below the desk? What is immediately left of the door? Do not describe colors.

Check the result: Chair is directly below Desk. Desk is immediately left of Door. No colors are specified.

The image attachment and matching image-processing components must actually be loaded. A text-only run, or an answer inferred from pasted text, does not pass the image check. This small fixture does not establish accuracy on scans, complex charts or real documents.

This creates a 4,096-token copy of llava-llama3:8b named llava-llama3-8b-v1-1-short-context. Save the following as a file named Modelfile in your working folder:

FROM llava-llama3:8b
PARAMETER num_ctx 4096

Then run these commands from that folder:

ollama pull llava-llama3:8b
ollama create llava-llama3-8b-v1-1-short-context -f ./Modelfile
ollama run llava-llama3-8b-v1-1-short-context

Run the task check. Attach the image in a client that supports image input for this model. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.

The recorded Ollama package is Q4_K_M: 4.92 GB of model weights and 0.62 GB of media companion weights. Use Ollama 0.40.18 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.

See Ollama context settings and the Modelfile instructions.

Other models for this task