/


Vision language models are quickly becoming a core part of modern AI systems. They can look at an image and describe what they see in natural language. This ability is already powering use cases like medical imaging diagnostics, product search, and automated content generation.
What makes these models especially valuable is how adaptable they are. With the right data and fine-tuning, a general-purpose model can turn into a domain-specific system. It starts to understand your visual data, your terminology, and your workflows.
In this article, I explain how vision language models work and how they are trained. I also walk through how to fine-tune them for real-world use cases, including a practical example of structured data extraction.
A vision language model (VLM) is an AI system that combines computer vision and natural language processing. It can understand images and express that understanding in natural language. Most VLMs use a vision encoder to convert images into embeddings and a language model to interpret and generate text.
For example, a VLM can analyze an image of a damaged product and generate a report describing the issue. Depending on the task, it can produce captions, answer questions, or return structured data.
Trained on large datasets of image-text pairs, VLMs learn to connect visual patterns with language. This allows them to move beyond simple detection and into reasoning about visual content.
To understand how this works in practice, let’s look at how vision language models process and connect images with text.
Vision language models process images and text together to generate meaningful outputs. At a high level, the workflow follows three steps. First, the image is converted into embeddings that capture visual features. Next, the text input is processed into language tokens. Finally, both representations are aligned so the model can generate a response grounded in the image.

This process relies on three core components:
Together, these components enable multimodal reasoning. To understand how models learn this alignment, let’s look at how vision language models are trained.
Training vision language models involves aligning visual and textual data so the model can understand both together. This is typically done using large datasets of image-text pairs and a combination of training techniques.
Contrastive learning teaches the model to match images with the correct text descriptions. It minimizes the distance between related image-text pairs and separates unrelated ones. Models like CLIP use this approach to learn strong visual-text alignment at scale.
Masking hides parts of an image or text input and asks the model to predict the missing information. This improves reasoning and helps the model understand context rather than memorizing patterns.
Generative training focuses on producing outputs, such as generating captions from images or answering visual questions. This enables VLMs to perform real-world tasks like summarization and structured extraction.
These training methods allow VLMs to understand both visual and textual context at scale. To better understand where they fit, let’s compare vision language models with LLMs and traditional computer vision systems.
To understand the role of vision language models, it helps to compare them with traditional AI systems focused on either text or images.
| Model Type | Input | Output | Strength |
|---|---|---|---|
| LLMs | Text | Text | Language reasoning |
| Computer Vision Models | Images | Labels | Visual detection |
| Vision Language Models | Image + Text | Text | Multimodal reasoning |
Unlike traditional computer vision models that are limited to predefined classes, VLMs can generalize across tasks using natural language prompts. They can describe images, answer questions, and generate structured outputs without task-specific retraining.
This flexibility makes them far more adaptable in real-world applications. To unlock their full potential in production, fine-tuning becomes essential. Let’s explore why fine-tuning matters.
Also Read
Pretrained VLMs can describe an image of a cat, identify a street sign, and answer simple visual questions. They know a little about everything but not enough about your world. But in real applications like e-commerce catalogs, radiology, agricultural monitoring, logistics, these models must follow your rules and vocabulary.
Fine-tuning helps the model:
It essentially teaches the model to act like an expert in your environment instead of a visitor who’s only vaguely familiar with it.
And thanks to parameter-efficient methods like LoRA, this can be done with modest hardware and small datasets. Let’s take a look at how to fine-tune a VLM with an example.
To illustrate the process, let’s look at a real-world scenario: turning fashion product images into clean, structured JSON attributes for an e-commerce catalog.
The goal is simple yet powerful:
Given a product image, the model returns a JSON containing product type, color, gender, season, usage, and product name.
To ground the concepts, let’s explore how to fine-tune a VLM to extract structured attributes from fashion product images, product name, type, color, gender, season, and usage.
This example uses the unsloth/Llama-3.2-11B-Vision-Instruct model and the public dataset ashraq/fashion-product-images-small.
Each item contains:
The notebook constructs a conversation-style dataset where the user message contains the image + an instruction, and the assistant message is the JSON target.
For each example:
def convert_to_conversation(example):
target = json.dumps(build_target_json(example), ensure_ascii=False)
messages = [
{
"role": "user",
"content": "" + INSTRUCTION,
"image": example["image"],
},
{
"role": "assistant",
"content": target,
},
]
return {"messages": messages}
This structure teaches the model how to “respond” to an image with structured data.
With the data ready, we load the base VLM, unsloth/Llama-3.2-11B-Vision-Instruct, using Unsloth’s optimized FastVisionModel, enabling 4-bit quantization to save memory:
model, tokenizer = FastVisionModel.from_pretrained(
model_name = "unsloth/Llama-3.2-11B-Vision-Instruct",
load_in_4bit = True,
use_gradient_checkpointing = "unsloth",
device_map = "auto",
)
model = FastVisionModel.get_peft_model(
model,
finetune_vision_layers=True,
finetune_language_layers=True,
finetune_attention_modules=True,
finetune_mlp_modules=True,
r=8,
lora_alpha=16,
)
Only a small set of LoRA parameters is trained; the main model remains frozen, dramatically reducing compute needs.
The fine-tuning process uses Hugging Face TRL’s SFTTrainer:
trainer = SFTTrainer(
model=model,
tokenizer=tokenizer,
data_collator=UnslothVisionDataCollator(model, tokenizer),
train_dataset=converted_dataset,
args=SFTConfig(
per_device_train_batch_size=1,
gradient_accumulation_steps=4,
learning_rate=2e-4,
num_train_epochs=1,
fp16=True,
output_dir="outputs",
),
)
Even with a dataset of 5,000 images, this is feasible on a single 16-24 GB GPU thanks to quantization and LoRA. With just a single epoch, the model quickly adapts thanks to the clean, structured dataset.
Once fine-tuned, the model can look at an image and produce a structured JSON object.
Here’s the inference function:
def predict_attributes_from_image(image_path: str):
image = Image.open(image_path).convert("RGB")
user_instruction = (
"Reply ONLY with a JSON object with the keys: "
"product_name, product_type, color, gender, season, usage."
)
messages = [
{
"role": "user",
"content": [
{"type": "image"},
{"type": "text", "text": user_instruction},
],
}
]
input_text = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
inputs = tokenizer(image, input_text, return_tensors="pt").to(device)
with torch.no_grad():
output = model.generate(max_new_tokens=256, temperature=0.1, top_p=0.9)
decoded = tokenizer.decode(output[0], skip_special_tokens=True)
return decoded
The output is a clean JSON object, easy to store, index, and use downstream.
Given a picture of a hoodie, for example, the model might output:
{
"product_name": "Men’s Blue Sweatshirt",
"product_type": "Sweatshirt",
"color": "Blue",
"gender": "Men",
"season": "Fall",
"usage": "Casual"
}
This structured output is especially powerful for e-commerce platforms that need scalable, consistent catalog metadata.
The beauty of fine-tuned VLMs lies in how closely they mirror human perception. When people look at an object, they do more than identify shapes or colors. They interpret what those details mean, connect them to prior knowledge, and describe them using the vocabulary of the situation. Decisions come from this blend of visual understanding and contextual reasoning.
Fine-tuned VLMs replicate this process with surprising fidelity:
This style of multimodal intelligence moves beyond simple captioning. It allows AI systems to behave like specialists that understand both what they see and how that information should be communicated for your use case. Let’s take a look at some of the best vision language models you can use for your applications.
Here are five of the top vision language models right now, each offering unique strengths depending on your application needs.
A highly practical and well-rounded VLM that delivers strong performance on core tasks like image captioning, visual question answering (VQA), and image-text retrieval. It uses a unified encoder-decoder architecture that integrates vision and language tasks in one model. This makes it a great starting point when you want reliability and broad generalization without extra complexity.

One of the newest open-source entrants optimized for efficiency and reproducibility. It offers competitive or superior performance across many vision-language benchmarks while being designed to train with moderate compute resources. For workflows where you want state-of-the-art results without massive infrastructure requirements, this model stands out.

As a part of the latest generation of models from its family, Gemma 3 brings strong support for multimodal inputs with high context windows. Its flexibility and multilingual capabilities make it compelling when you need a VLM that handles diverse data types such as images, text, possibly video, and longer input contexts.

Designed to provide unified processing of vision and text data, Qwen2-VL treats image and textual tokens equally, making it simpler and often more efficient in scenarios where you want interleaved vision + text inputs. This design choice can make integration easier if your application mixes images and text frequently.

A powerful multimodal model focused on grounding vision and language in a unified representation space. It is especially strong when you need the model to reason about objects, their spatial relationships, and to produce grounded text that refers precisely to visual elements (for example, bounding boxes or annotated outputs). This makes it suitable for tasks like scene analysis, mapping, and image-based reasoning workflows.

Which one to pick?
These models reflect the latest advances in VLM research and engineering, giving you a solid toolkit for building multimodal applications across domains. Now, let’s take a closer look at some of the real-world applications of VLMs.
Here are some scenarios where fine-tuned multimodal systems provide real impact by blending vision and language the way humans do:
Vision language models are moving from experimental AI to production-ready systems. Organizations are already using them to automate visual workflows, improve accuracy, and reduce manual effort across industries.
With the right data and fine-tuning approach, a general-purpose model can become a domain-specific system. It can understand your visual inputs, follow your structure, and generate reliable outputs that fit directly into real workflows.
The real value appears when these models move beyond demos and start driving measurable outcomes. From product tagging to medical analysis, the same pattern applies across use cases.
If you’re exploring how to implement vision language models in your workflows, the next step is turning these concepts into a practical solution. Book an exploration call with Omdena to discuss your use case and how to build a custom VLM solution for your organization.