Views
No views yet
1from transformers import AutoModelForVision2Seq, AutoProcessor
2from peft import PeftModel
3
4# Load base model
5base_model = AutoModelForVision2Seq.from_pretrained(
6 "Qwen/Qwen2.5-VL-32B",
7 trust_remote_code=True
8)
9
10# Load LoRA adapter
11model = PeftModel.from_pretrained(base_model, "yongxianwei/Qwen2.5-VL-32B-Grounding")
12processor = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-32B", trust_remote_code=True)
13
14# Inference
15# ... your inference code ...1@misc{qwen2.5-vl-visual grounding,
2 author = {Yongxian Wei},
3 title = {Qwen2.5-VL LoRA for Visual Grounding},
4 year = {2024},
5 publisher = {Hugging Face},
6 url = {https://huggingface.co/yongxianwei/Qwen2.5-VL-32B-Grounding}
7}