Downloads · 30 days
5
1% of all-time downloads
prashanth058/qwen2.5-3b-vl-flickr-lora-vision
qwen2.5-3b-vl-flickr-lora-vision is a machine learning model from prashanth058. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
This is a LoRA adapter for vision-language models, trained to adapt vision tower and connector layers in addition to language model layers.
Downloads · 30 days
5
1% of all-time downloads
All-time downloads
432
Public
Repo size
4.8 GB
Likes
0
Public
Click a slice to open those files.
.safetensors166 MB · 91%
From the Hugging Face model README
This is a LoRA adapter for vision-language models, trained to adapt vision tower and connector layers in addition to language model layers.
from vllm import LLM
from vllm.lora.request import LoRARequest
# Load model with LoRA support
llm = LLM(
model="Qwen/Qwen2.5-VL-3B-Instruct",
enable_lora=True,
max_loras=1,
max_lora_rank=16,
)
# Generate with LoRA
lora_request = LoRARequest("adapter", 1, "prashanth058/qwen2.5-3b-vl-flickr-lora-vision")
outputs = llm.generate(
prompts=["<your prompt>"],
lora_request=lora_request,
)
from transformers import AutoModelForVision2Seq, AutoProcessor
from peft import PeftModel
# Load base model
model = AutoModelForVision2Seq.from_pretrained("Qwen/Qwen2.5-VL-3B-Instruct")
processor = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-3B-Instruct")
# Load adapter
model = PeftModel.from_pretrained(model, "prashanth058/qwen2.5-3b-vl-flickr-lora-vision")
# Generate
# ... (process your inputs)
outputs = model.generate(**inputs)
This adapter was trained to demonstrate vision layer adaptation capabilities in vLLM.
This adapter follows the license of the base model: Qwen/Qwen2.5-VL-3B-Instruct
If you use this adapter, please cite:
@misc{vision-lora-adapter,
author = {vLLM Team},
title = {Vision LoRA Adapter for Qwen/Qwen2.5-VL-3B-Instruct},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/prashanth058/qwen2.5-3b-vl-flickr-lora-vision}},
}