Views
No views yet
| Setup | LLM-judge |
|---|---|
| Uncompressed (0x) single-image, base Qwen3-VL-4B | 0.958 |
| Uncompressed (0x) multi-image (3), base Qwen3-VL-4B | 0.892 |
| This adapter @ 4x multi-image (3) | 0.868 |
Qwen/Qwen3-VL-4B-Instruct1/sqrt(4) via PIL LANCZOS).1from transformers import AutoProcessor, Qwen3VLForConditionalGeneration
2from peft import PeftModel
3import torch
4
5base = "Qwen/Qwen3-VL-4B-Instruct"
6adapter = "Chrisyichuan/qwen3vl-4b-wiki-screenshot-multi3-4x-lora"
7
8model = Qwen3VLForConditionalGeneration.from_pretrained(base, torch_dtype=torch.bfloat16).cuda()
9model = PeftModel.from_pretrained(model, adapter).merge_and_unload()
10processor = AutoProcessor.from_pretrained(base)
11
12# Three 4x-compressed images (one gold + two distractors, any order)
13messages = [{"role": "user", "content": [
14 {"type": "image", "image": img1},
15 {"type": "image", "image": img2},
16 {"type": "image", "image": img3},
17 {"type": "text", "text": your_question},
18]}]
19# ... standard Qwen3-VL inferenceChrisyichuan/qwen3vl-4b-wiki-screenshot-multi3-2x-lora, Chrisyichuan/qwen3vl-4b-wiki-screenshot-multi3-3x-lora.