llava

Runs vision-language inference and fine-tuning with LLaVA models for image understanding tasks.

2|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill llava-shubh2310-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llava
Source: https://github.com/Shubh2310-developer/ENGUNITYCORE/tree/main/.claude/skills/multimodal-llava
Command: npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill llava-shubh2310-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires transformers, torch, pillow, and includes references (resource) components.

What problem does it solve? Building image-understanding features like visual question answering, image captioning, and multi-turn image chat typically requires expensive proprietary APIs. This Skill provides complete guidance for running the open-source LLaVA vision-language model locally, from installation and inference to custom fine-tuning. ## Core Features & Use Cases - Vision-Language Inference: Load LLaVA models (7B, 13B, 34B) with transformers and torch to answer questions about images, generate captions, and hold multi-turn image conversations. - Flexible Deployment: Run via Python API, CLI, or a Gradio web interface, with 4-bit and 8-bit quantization options to reduce VRAM requirements. - Custom Fine-Tuning: Train on your own instruction data using full fine-tuning with DeepSpeed or memory-efficient LoRA, following the two-stage pretrain/finetune pipeline. - Use Case: Build a document-understanding chatbot that answers questions about scanned forms by loading llava-v1.5-7b with 4-bit quantization on a single GPU. ## Quick Start Ask the AI to load the liuhaotian/llava-v1.5-7b model and describe what is in a given image file.

Frequently Asked Questions about llava

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run LLaVA for visual question answering in Python?

Load a pretrained model with llava.model.builder.load_pretrained_model, process the image with the image processor, build a conversation prompt with the image token, and call model.generate. The decoded output answers your question about the image.

What is the difference between LLaVA 7B, 13B, and 34B models?

The 7B model needs about 14 GB VRAM and offers good quality, the 13B needs about 28 GB with better quality, and the 34B needs about 70 GB for the best results. Using 4-bit quantization reduces VRAM requirements by roughly four times.

Can LLaVA run on a GPU with limited VRAM?

Yes, enable 4-bit quantization with load_4bit=True when loading the model, which cuts VRAM usage by about 4x, bringing the 7B model down to roughly 4 GB. CPU inference is possible but extremely slow and not recommended.

How do I fine-tune LLaVA on custom image data?

Format your data as JSON with image paths and human/gpt conversation pairs, then run the fine-tune script with DeepSpeed. For lower memory usage, apply LoRA adapters targeting q_proj and v_proj layers, which allows training a 7B model on a single A100.

What are the limitations of LLaVA for image understanding?

LLaVA can hallucinate objects not present in images, struggles with precise spatial reasoning and small text, and counts objects imprecisely. It also requires a capable GPU and runs slower than simpler models like CLIP.