Downloads · 30 days
22
7% of all-time downloads
Dataseeds/LLaVA-OneVision-Qwen2-0.5b-ov-DSD-FineTune
LLaVA-OneVision-Qwen2-0.5b-ov-DSD-FineTune is a image-text-to-text model from Dataseeds. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This model is a LoRA (Low-Rank Adaptation) fine-tuned version of lmms-lab/llava-onevision-qwen2-0.5b-ov specialized for photography scene analysis and description generation. The model was presented in the paper Peer-…
Downloads · 30 days
22
7% of all-time downloads
All-time downloads
298
Public
Repo size
1.1 GB
Likes
4
Public
Click a slice to open those files.
.bin992 MB · 91%
From the Hugging Face model README
This model is a LoRA (Low-Rank Adaptation) fine-tuned version of lmms-lab/llava-onevision-qwen2-0.5b-ov specialized for photography scene analysis and description generation. The model was presented in the paper Peer-Ranked Precision: Creating a Foundational Dataset for Fine-Tuning Vision Models from DataSeeds' Annotated Imagery. The model was fine-tuned on the DataSeeds.AI Sample Dataset (DSD) to enhance its capabilities in generating detailed, accurate descriptions of photographic content.
Code for usage: https://github.com/DataSeeds-ai/DSD-finetune-blip-llava
v_proj, k_proj, q_proj, up_proj, gate_proj, down_proj, o_projmm_mlp_adapter, mm_language_modelThe model was fine-tuned on the DataSeeds.AI Sample Dataset, a curated collection of photography images with detailed scene descriptions focusing on:
| Parameter | Value |
|---|---|
| Learning Rate | 1e-5 |
| Optimizer | AdamW |
| Learning Rate Schedule | Cosine decay |
| Warmup Ratio | 0.03 |
| Weight Decay | 0.01 |
| Batch Size | 2 |
| Gradient Accumulation Steps | 8 (effective batch size: 16) |
| Training Epochs | 3 |
| Max Sequence Length | 8192 |
| Max Gradient Norm | 0.5 |
| Precision | BFloat16 |
| Hardware | Single NVIDIA A100 40GB |
| Training Time | 30 hours |
The fine-tuned model shows significant improvements across all evaluation metrics compared to the base model:
| Metric | Base Model | Fine-tuned | Absolute Δ | Relative Δ |
|---|---|---|---|---|
| BLEU-4 | 0.0199 | 0.0246 | +0.0048 | +24.09% |
| ROUGE-L | 0.2089 | 0.2140 | +0.0051 | +2.44% |
| BERTScore F1 | 0.2751 | 0.2789 | +0.0039 | +1.40% |
| CLIPScore | 0.3247 | 0.3260 | +0.0013 | +0.41% |
pip install transformers torch peft pillow
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoProcessor
import torch
from PIL import Image
# Load base model and processor
base_model = AutoModelForCausalLM.from_pretrained(
"lmms-lab/llava-onevision-qwen2-0.5b-ov",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
processor = AutoProcessor.from_pretrained("lmms-lab/llava-onevision-qwen2-0.5b-ov")
# Load LoRA adapter
model = PeftModel.from_pretrained(
base_model,
"Dataseeds/LLaVA-OneVision-Qwen2-0.5b-ov-DSD-FineTune"
)
# Load and process image
image = Image.open("your_image.jpg")
prompt = "Describe this image in detail, focusing on the composition, lighting, and visual elements."
inputs = processor(prompt, image, return_tensors="pt").to(model.device)
# Generate description
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=512,
do_sample=True,
temperature=0.7,
top_p=0.9
)
description = processor.decode(outputs[0], skip_special_tokens=True)
print(description)
# Photography-specific prompts that work well with this model
prompts = [
"Analyze the photographic composition and lighting in this image.",
"Describe the technical aspects and visual mood of this photograph.",
"Provide a detailed scene description focusing on the subject and environment."
]
for prompt in prompts:
inputs = processor(prompt, image, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
description = processor.decode(outputs[0], skip_special_tokens=True)
print(f"Prompt: {prompt}")
print(f"Description: {description}
")
The model maintains the LLaVA-OneVision architecture with the following components:
The DataSeeds.AI Sample Dataset contains curated photography images with comprehensive annotations including:
The dataset focuses on enhancing the model's ability to:
If you use this model in your research or applications, please cite:
@article{abdoli2025peerranked,
title={Peer-Ranked Precision: Creating a Foundational Dataset for Fine-Tuning Vision Models from DataSeeds' Annotated Imagery},
author={Sajjad Abdoli and Freeman Lewin and Gediminas Vasiliauskas and Fabian Schonholz},
journal={arXiv preprint arXiv:2506.05673},
year={2025},
}
@misc{llava-onevision-dsd-finetune-2024,
title={LLaVA-OneVision Fine-tuned on DataSeeds.AI Dataset for Photography Scene Analysis},
author={DataSeeds.AI},
year={2024},
publisher={Hugging Face},
url={https://huggingface.co/Dataseeds/LLaVA-OneVision-Qwen2-0.5b-ov-DSD-FineTune},
note={LoRA fine-tuned model for enhanced photography description generation}
}
@article{li2024llavaonevision,
title={LLaVA-OneVision: Easy Visual Task Transfer},
author={Li, Bo and Zhang, Yuanhan and Guo, Dong and Zhang, Renrui and Li, Feng and Zhang, Hao and Zhang, Kaichen and Liu, Yanwei and Wang, Ziwei and Gao, Peng},
journal={arXiv preprint arXiv:2408.03326},
year={2024}
}
@article{hu2022lora,
title={LoRA: Low-Rank Adaptation of Large Language Models},
author={Hu, Edward J and Shen, Yelong and Wallis, Phillip and Allen-Zhu, Zeyuan and Li, Yuanzhi and Wang, Shean and Wang, Lu and Chen, Weizhu},
journal={arXiv preprint arXiv:2106.09685},
year={2021}
}
This model is released under the Apache 2.0 license, consistent with the base LLaVA-OneVision model licensing terms.
For questions, issues, or collaboration opportunities, please visit the model repository or contact the DataSeeds.AI team.