LoRA adapter for
Qwen/Qwen2.5-VL-7B-Instruct, supervised fine-tuned on the
training split of
AirCopBench,
a multi-UAV collaborative aerial perception VQA benchmark.
Each question shows the same scene captured at the same moment by 2–6 UAV cameras
from different viewpoints, and asks a 4-way multiple-choice question (object grounding,
counting, matching, causal/collaboration assessment, etc.). The model answers with a
single option letter.
Parse failures: 0.
1import torch
2from transformers import AutoModelForImageTextToText, AutoProcessor
3from peft import PeftModel
4
5base = "Qwen/Qwen2.5-VL-7B-Instruct"
6model = AutoModelForImageTextToText.from_pretrained(base, dtype=torch.bfloat16, device_map="cuda")
7model = PeftModel.from_pretrained(model, "EasonFan/aircop-7b")
8processor = AutoProcessor.from_pretrained(base)
9
10messages = [{"role": "user", "content": [
11 {"type": "text", "text": "UAV1:"}, {"type": "image"},
12 {"type": "text", "text": "UAV2:"}, {"type": "image"},
13 {"type": "text", "text": "Question: ...\nOptions:\nA. ...\nB. ...\nC. ...\nD. ...\nAnswer with only the letter."},
14]}]
15# build inputs with processor.apply_chat_template + processor(...) and call model.generate()