| library_name: transformers | |
| tags: | |
| - qwen | |
| - vision-language | |
| - lora-merged | |
| license: other | |
| # Qwen2.5-VL 7B (LoRA merged) | |
| - Base: Qwen/Qwen2.5-VL-7B-Instruct | |
| - LoRA adapters merged into base weights. | |
| - Inference example: | |
| ```python | |
| from transformers import AutoProcessor | |
| from qwen_vl_utils import process_vision_info # if needed by qwen | |
| from transformers import Qwen2_5_VLForConditionalGeneration | |
| model = Qwen2_5_VLForConditionalGeneration.from_pretrained("mangsgi/azu", device_map="auto", torch_dtype="auto", trust_remote_code=True) | |
| processor = AutoProcessor.from_pretrained("mangsgi/azu", trust_remote_code=True) | |
| # build messages with image+text, then processor(...), model.generate(...) | |