initial commit b753e4c
Alaa Aljabari commited on
How to use SinaLab/Qwen-2.5-VL-7B-Instruct-Image-Captioning with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-VL-7B-Instruct")
model = PeftModel.from_pretrained(base_model, "SinaLab/Qwen-2.5-VL-7B-Instruct-Image-Captioning")